AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

Is there a way to access the Object Color in Code?

–1 支持
We are looking to use the Object Color in Wwise to have a quick view of the State of our VO Lines. We want to be able to match the Object Color of the VO Files State at the Import.

Example : Robot VO will be tag as Red, Temp as Yellow, and Final at Green...

Is there an actual way to do that without doing it manually in wwise?
Frédéric A. (220 ポイント) 2020 11/10 質問 Feature Requests

回答 1

0 支持

Yes, but it requires some hacking and/or programming skills

  • Edit: [INSTALL_DIR]\Authoring\Data\WObjects\WObjects.xml     
  • Search for "OverrideColor"
  • Change the IsVisible to "true", like this:
<Property Name="OverrideColor" Type="bool" IsVisible="true" DisplayName="Override Color">
    <DefaultValue>false</DefaultValue>
</Property>
  • Restart Wwise
Then, use the Tab Delimited Import or WAAPI ak.wwise.core.audio.import:

Tab Delimited (https://www.audiokinetic.com/library/edge/?source=Help&id=importing_media_files_from_tab_delimited_text_file)

Import a TSV that set the Color and OverrideColor properties: (replace the arrow by actual TAB character)

Audio File→Object Path→Object Type→@Color→@OverrideColor
D:\wave\cues\1.wav→\Actor-Mixer Hierarchy\Default Work Unit\1→Sound→10→true
D:\wave\cues\2.wav→\Actor-Mixer Hierarchy\Default Work Unit\2→Sound→7→true
D:\wave\cues\3.wav→\Actor-Mixer Hierarchy\Default Work Unit\3→Sound→0→false

WAAPI Import

Getting started with WAAPI:
https://www.audiokinetic.com/library/edge/?source=SDK&id=waapi_gettingstarted.html

Importing Audio File with WAAPI:
https://www.audiokinetic.com/library/edge/?source=SDK&id=waapi_import.html

Also look at this example to retrieve the colors from WAAPI. 
https://gist.github.com/decasteljau/0555a2afe97914658820ebd1bc4af6d4

Bernard R. (Audiokinetic) (35,110 ポイント) 2020 11/10 回答
By the way, the fix for WObjects.xml has been scheduled for Wwise 2019.2.8.
...