AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

Bug: WAAPI gives me wrong project path

0 支持

While making Integration Demo the only open Wwise project, with this code, 

try:
    with WaapiClient() as waapi:
        query = {
            'from': {'ofType': ["Project"]},
            'options': {'return': ['id', 'name', 'type', 'path']}
        }
        result = waapi.call('ak.wwise.core.object.get', query)
except CannotConnectToWaapiException:
    raise RuntimeError('WAAPI query failed with error: {}. Aborted'.format(CannotConnectToWaapiException))
The path I got with 
result['return'][0]['path']
is not the actual project path on the file system, but more like where my code is located.
 
Is this a bug?
 
 
Saul G. (290 ポイント) 2019 4/28 質問 General Discussion

回答 1

+1 支持

The answer is here:
https://www.audiokinetic.com/qa/5000/is-there-a-way-to-get-the-projects-path-with-waapi

Explanation: 'path' returns the path inside the Wwise project, while 'filePath' returns the operating system file path.

Bernard R. (Audiokinetic) (35,110 ポイント) 2019 4/29 回答
Thanks! That makes sense.
...