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. Contact Sales if your project requires a support plan.

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,140 points)
Thanks! That makes sense.
...