Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Can I use setProperty change AudioFileSource and Event Target

0 votes
I used ak.wwise.core.object.setProperty , but I don't know can I use it to change the AudioFileSource and Event Target
asked Jan 11, 2021 in General Discussion by chandon w. (160 points)

1 Answer

0 votes
 
Best answer
Hello,

To set the Event Target, you need to use: ak.wwise.core.object.setReference, with reference="Target", on a Action object.
Refer to: https://www.audiokinetic.com/fr/library/edge/?source=SDK&id=ak_wwise_core_object_setreference.html

The AudioFileSource can not be changed setProperty. In order to change audio source, you need to use ak.wwise.core.audio.import.
Refer to: https://www.audiokinetic.com/fr/library/edge/?source=SDK&id=waapi_import.html
answered Jan 11, 2021 by Bernard R. (Audiokinetic) (35,090 points)
selected Jan 13, 2021 by chandon w.
I try to use ak.wwise.core.object.setReference and set reference as "Target",but wwise return Object can't have this reference
I set event as object. Should object be set to other here?
Make sure you set the Target on the Action, not the Event directly. Each Event in Wwise is a list of Actions, and the Actions are the objects that have the Target.
I understand and solved this problem, thank you very much
...