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.

WAAPI & Wwise 2017.2.10 : is it possible?

0 votes
Hello,

Can WAAPI's current version run with Wwise 2017.2.10?
I made sure to enable WAAPI in the user settings with a valid allowed origin but, each time I try a simple WAAPI script (in Python 3.6+) my console freezes.
If I open the same project with Wwise latest version it works.

Thank you,

Julien
asked May 13 in General Discussion by Julien R. (130 points)
retagged May 14 by Julien R.

1 Answer

0 votes
 
Best answer

yes, it should. 

First make sure you have the following user preferences:

Enable WAAPI: True
Allowed Origins: #unknown,#file
WAMP Port: 8080
HTTP Port: 8090

For instance, this python script should run with the latest waapi python client and Wwise 2017.2.10:

from waapi import WaapiClient
import pprint

# Connect (default URL)
client = WaapiClient()

# Return all targets
args = {
    "from": {"path": ['\\Actor-Mixer Hierarchy']},
    "transform": [
        {"select": ['children']}
    ]
}

options = {
    "return": ['name']
}
result = client.call("ak.wwise.core.object.get", args, options=options)
pprint.pprint(result)
answered May 14 by Bernard R. (Audiokinetic) (29,760 points)
edited May 25 by Bernard R. (Audiokinetic)
Thank you for your answer.

Yet the script still hangs when it reaches client = WaapiClient().
It works fine with wwise 2018.1.6 and wwise 2019.1.6.

Sadly I have to stick to 2017.2.10 for now.
Can you verify you have the following preferences:

Allowed Origins: #unknown,#file
WAMP Port: 8080
HTTP Port: 8090
My allowed origin was incorrect : I had 127.0.0.1,::1.
It works now.

Thank you very much for your help!
...