Reply To: Enable and disable tracks by script

Slate Forums Support Enable and disable tracks by script Reply To: Enable and disable tracks by script

#2134
haytam95
Participant

That would be great Gavalakis, thanks!

Hm. I am not sure why setting the mixer volume did not work for you.

This is what I did:

– Created an Audio Mixer Group.

– Exposed the param “Attenuation” in it, as “Volume”.

– Added the Audio Mixer Group to the track.

– From my code retrieved the Audio Mixer Group reference from the Track and set the value using .SetFloat(“Volume”, myFloatVariable);

(I’m not great at playing with sounds, perhaps I made a silly mistake and exposed the incorrect parameter now that I’m thinking of it…).

I think that expose the method “SetVolume” however, will be a nice way to quickly change that without needing to play around with audio mixers.