Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

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

0 votes
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?
asked Nov 10, 2020 in Feature Requests by Frédéric A. (160 points)

1 Answer

+1 vote

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

answered Nov 10, 2020 by Bernard R. (Audiokinetic) (30,640 points)
By the way, the fix for WObjects.xml has been scheduled for Wwise 2019.2.8.
...