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

UI not refreshing after running Waapi script

0 投票
Hi all, I'm having an issue where occasionally I'll run a Waapi script and the UI won't refresh and I won't see my changes even if it correctly does what I scripted it to do. For example, if I generate play events from a selected object, it will not show the events generated until I close Wwise and reopen. After that it will work fine until it breaks again, usually in around 5-10 uses of the script. Also, I have noticed that when this happens, the asterisk next to the project name indicating that there are unsaved changes also won't go away after I save. If it matters, I've been using python as my language for the scripts.

Is there any way to force Wwise to refresh the UI when using a script? Would be nice to have start and stop UI refresh functions similar to how the undo blocks works if we don't have those already. This is functionality that I've seen used in reaper scripts that would be a nice addition to the API.
最新提问 1月 24, 2022 分类:General Discussion | 用户: Alex B. (200 分)
To gather the full context, it'd be useful to fill in a Bug Report https://www.audiokinetic.com/library/edge/?source=InstallGuide&id=reporting_bugs

1个回答

+1 投票
Please note would normally automatically refresh when doing operations in WAAPI.

If it does not refresh, I see two possible reasons:
- non matching calls to ak.wwise.core.undo.beginGroup and ak.wwise.core.undo.endGroup, which could make Wwise think you are not finished with the operations, post-postponing the updates for later.
- a bug in Wwise (which case, we would like to see the script, and specifically which function you call)
最新回答 1月 25, 2022 用户: Bernard R. (Audiokinetic) (35,110 分)
As far as I'm aware the begin/end group calls are working properly as they are functionally working to actually undo/redo properly. I might be mistaken and not properly using them however as I'm pretty green to Waapi.

What is the best way to send my script over?
You can post a pastebin link if it's just a single script.
If you have a github account, you can also use the "gist" feature: https://gist.github.com/
https://pastebin.com/uvTNyqct

Here's the script. It's quite inconsistent with it not updating but it does happen pretty frequently.

I also was on 2021.1.5 and just upgraded to .6 so I've yet to test and see if the new update has made things easier
...