Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. Contact Sales if your project requires a support plan.

Bug: WAAPI object query with id array gives me a plain None if all but one are valid ids.

0 votes

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?

 

 

 

asked May 6 in General Discussion by Saul G. (110 points)

Please sign-in or register to answer this question.

...