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?