Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

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

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?

 

 

 

문의 2019 5월 6 General Discussion Saul G. (290 포인트) 로 부터

Please sign-in or register to answer this question.

...