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.

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 4 days ago 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 4 days ago by Bernard R. (Audiokinetic) (30,640 points)
selected 2 days ago 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
...