在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票
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
分类:General Discussion | 用户: Julien R. (130 分)
标签修改 用户:Julien R.

1个回答

0 投票
 
已采纳

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)
用户: Bernard R. (Audiokinetic) (35.8k 分)
修改于 用户: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!
...