menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

0 votes
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.
dans General Discussion par Alex B. (200 points)
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 Réponse

+1 vote
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)
par Bernard R. (Audiokinetic) (35.8k points)
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
...