from waapi import WaapiClient
with WaapiClient() as client:
# NOTE: client will automatically disconnect at the end of the scope
query = {
"from": {"id": ['{8C1E28D2-566C-4D29-B544-2610D577A12C}']},
"options": {"return": ["id", "name", "type", "soundbank:bnkFilePath"]}
}
result = client.call("ak.wwise.core.object.get", query)
print('WAAPI result: {}'.format(result))
On my machine, soundbank:bnkFilePath turns out to be:
'C:\\\\Audiokinetic\\\\Wwise_2019.1.1.6977\\\\SDK\\\\samples\\\\IntegrationDemo\\\\WwiseProject\\\\GeneratedSoundBanks\\\\Windows\\\\Human.bnk'
which is unexpected: It should be
'C:\\\\Audiokinetic\\\\Wwise_2019.1.1.6977\\\\SDK\\\\samples\\\\IntegrationDemo\\\\WwiseProject\\\\GeneratedSoundBanks\\\\Windows\\\\<Language>\\\\Human.bnk'
If no current language specified, IMHO, this had better return a list of paths, each corresponding to a valid language of the project.
Similarly, if a SoundBank has mixed localized and non-localized content, one would expect the query to return the paths to all existing BNK files.
Hope this helps.