menu
 

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

0 投票

Surprise again! The following code looks for a bunch of object by ids, and only one of them is bad.

I expect to get a bunch of valid results and only one None, but all I got is a None instead. 

The code:

try:
    # Connecting to Waapi using default URL
    with WaapiClient() as client:
        ids = ["{34E29C56-2840-4BF2-B24B-8133922A37EE}", "{F9142786-33D8-467A-9CFF-42B2AE23EBA7}", "fake"]
        object_get_args = {
            "from": {
                "id": ids
            },
            "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?")

gives me a None.

If I remove "fake", then it works.

Why?

 

 

 

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

Please sign-in or register to answer this question.

...