menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

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?

 

 

 

分类:General Discussion | 用户: Saul G. (290 分)

1个回答

0 投票
Cant get this to work either. Any solution?
用户: Eduardo B. (270 分)
...