Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes
"@Color": "1",与"@Color": 1,均无效
in General Discussion by cai x. (150 points)

1 Answer

+1 vote
 
Best answer

Hi, the property "OverrideColor" also should set to be True. So that the color setting will work.

"property": "OverrideColor",
"value": True

by Christopher Lou (460 points)
selected by cai x.
Error    11:27:44    WampInvokeError    WAMP CALL error 'ak.wwise.invalid_property' invoking 'ak.wwise.core.object.setProperty': 'Property cannot be set.'    Args:
{
    "object": "\\Actor-Mixer Hierarchy\\New Work Unit\\unit\\audio3",
    "property": "OverrideColor",
    "value": true
}
Override Color and Color Property can only be set with Wwise 2019.2.8 and above:
https://www.audiokinetic.com/fr/library/2019.2.8_7432/?source=SDK&id=releasenotes.html

Or, you can apply the following procedure:
https://www.audiokinetic.com/qa/6922/waapi-changing-color-not-working-overridecolor-property
That's weird. It did work in wwise 2019.2.5 or 2021.1.0 last week. But I can not modify OverrideColor value now, even in 2019.2.8.
And I also changed the IsVisible value in WObjects.xml.

https://www.audiokinetic.com/qa/6922/waapi-changing-color-not-working-overridecolor-property

But it seems to make the OverrideColor property be available on "All Properties" tab in Sound Property Editor. The error report in 2019.2.8:

2021-01-06T16:37:15 WaapiClientAutobahn (ERROR): ('ApplicationError(error=<ak.wwise.invalid_arguments>, args=[], '
 "kwargs={'message': 'Argument property  is unknown.', 'details': "
 "{'argumentName': 'property ', 'typeUri': "
 "'ak.wwise.schema_validation_failed', 'schemaKeyword': "
 "'additionalProperties', 'argumentPointer': '/property ', 'procedureUri': "
 "'ak.wwise.core.object.setProperty', 'schemaExpect': 'false', "
 '\'schemaPointer\': \'\', \'argumentValue\': \'"OverrideColor"\', '
 "'schemaDescription': ''}}, enc_algo=None, callee=None, callee_authid=None, "
 'callee_authrole=None, forward_for=None)')
Make sure there is no space after 'property '
I used this code for my python script and it worked:

def set_object_color_override(object_path):
    """
    Active ou désactive l'override de couleur pour un objet spécifié par son chemin.
    """
    args = {
        "object": object_path,
        "property": "OverrideColor",
        "value": True
    }
    client.call("ak.wwise.core.object.setProperty", args)

def set_object_color(object_path, color_index):
    """
    Définit la couleur d'un objet spécifié par son chemin.
    """
    args = {
        "object": object_path,
        "property": "Color",
        "value": 4  #Red color
    }
    client.call("ak.wwise.core.object.setProperty", args)
...