Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes

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?
 
 
in General Discussion by Saul G. (290 points)

1 Answer

+1 vote

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.

by Bernard R. (Audiokinetic) (35.8k points)
Thanks! That makes sense.
...