Reply To: Enable and disable tracks by script

Forums 💬 Slate Sequencer ⚙️ Support Enable and disable tracks by script Reply To: Enable and disable tracks by script

#20211
haytam95
Participant

    Hi Gavalakis

    I couldn’t make work any of the solutions.

    – _masterVolume is protected and doesn’t have any way to access it.

    – Then I tried to setup an audio mixer and change it’s “Attenuation – Volume” but it doens’t seems to work. It barelly reduces the sound of it.

    I could hack it, by creating a way to access the _masterVolume property and re-apply the SetAndApplySettings method, so probably if I create my own Audio Track extending from the original, with that accessor i could fix the problem.

    public float MasterVolume

    {

    get => _masterVolume;

    set {

    _masterVolume = value;

    SetAndApplySettings();

    }

    }

     

    Or maybe I’m just complicating the solution, have any idea?