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. 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 in General Discussion by Saul G. (220 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 by Bernard R. (Audiokinetic) (26,590 points)
Thanks! That makes sense.
...