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.

Bug: WAAPI gives me wrong project path

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?
 
 
asked Apr 28, 2019 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.

answered Apr 29, 2019 by Bernard R. (Audiokinetic) (35,090 points)
Thanks! That makes sense.
...