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

Bug: WAAPI object query using name doesn't work with array input, contrary to the API doc.

0 votes

From the api doc of ak.wwise.core.object.get, I can see that the query arg "name" is an array. 

So I expect that I can feed it a list of names. But the following code fails with 

('ApplicationError(error=<ak.wwise.query.unknown_object>, args=[], '
 "kwargs={'message': 'from name object is unknown', 'details': "
 "{'procedureUri': 'ak.wwise.core.object.get'}}, enc_algo=None, callee=None, "
 'callee_authid=None, callee_authrole=None, forward_for=None)')

Code:

try:
    # Connecting to Waapi using default URL
    with WaapiClient() as client:
        names = ['First', 'Second']
        object_get_args = {
            "from": {
                "name": ["SoundBank:First", "SoundBank:Second"]
            },
            "options": {
                "return": ["id", "name", "type"]
            }
        }
        result = client.call("ak.wwise.core.object.get", object_get_args)
        pprint(result)
except CannotConnectToWaapiException:
    print("Could not connect to Waapi: Is Wwise running and Wwise Authoring API enabled?")

It works if one of the names are removed.

Should I trust the doc or did I read it wrong?

 

 

 

asked May 6, 2019 in General Discussion by Saul G. (290 points)

1 Answer

0 votes
Cant get this to work either. Any solution?
answered Apr 7, 2020 by Eduardo B. (270 points)
...