Skip to main content
added 9 characters in body
Source Link

If anyone is still looking for a solution that wont blow up computation times, I found this workaround using environment variables which will store values outside of the script context.

The if statement will define the Env-Variable at frame 0 and afterwards increase and use the variable each frame. Note that x could be any value. In my case it was an audio amplitude effect slider value.

if ($.myEnvVariable == null){
    $.myEnvVariable = 0
} 
// x = value from slider
$.myEnvVariable = $.myEnvVariable + x
$.myEnvVariable

If anyone is still looking for a solution that wont blow up computation times, I found this workaround using environment variables which will store values outside of the script context.

The if statement will define the Env-Variable at frame 0 and afterwards increase and use the variable each frame. Note that x could be any value. In my case it was audio amplitude effect slider.

if ($.myEnvVariable == null){
    $.myEnvVariable = 0
} 
// x = value from slider
$.myEnvVariable = $.myEnvVariable + x
$.myEnvVariable

If anyone is still looking for a solution that wont blow up computation times, I found this workaround using environment variables which will store values outside of the script context.

The if statement will define the Env-Variable at frame 0 and afterwards increase and use the variable each frame. Note that x could be any value. In my case it was an audio amplitude effect slider value.

if ($.myEnvVariable == null){
    $.myEnvVariable = 0
} 
// x = value from slider
$.myEnvVariable = $.myEnvVariable + x
$.myEnvVariable
added 12 characters in body
Source Link

If anyone is still looking for a solution that wont blow up computation times, I found this workaround using environment variables which will store values outside of the effectscript context.

ThisThe if statement will define itthe Env-Variable at frame 0 and afterwards increase and use the variable each frame. Note that x is thecould be any value of an effect slider. (InIn my case it was audio amplitude) effect slider.

if ($.myEnvVariable == null){
    $.myEnvVariable = 0
} 
// x = value from slider
$.myEnvVariable = $.myEnvVariable + x
$.myEnvVariable

If anyone is still looking for a solution that wont blow up computation times, I found this workaround using environment variables which will store values outside of the effect context.

This if statement will define it at frame 0 and afterwards increase and use the variable each frame. Note that x is the value of an effect slider. (In my case it was audio amplitude)

if ($.myEnvVariable == null){
    $.myEnvVariable = 0
} 
// x = value from slider
$.myEnvVariable = $.myEnvVariable + x
$.myEnvVariable

If anyone is still looking for a solution that wont blow up computation times, I found this workaround using environment variables which will store values outside of the script context.

The if statement will define the Env-Variable at frame 0 and afterwards increase and use the variable each frame. Note that x could be any value. In my case it was audio amplitude effect slider.

if ($.myEnvVariable == null){
    $.myEnvVariable = 0
} 
// x = value from slider
$.myEnvVariable = $.myEnvVariable + x
$.myEnvVariable
Source Link

If anyone is still looking for a solution that wont blow up computation times, I found this workaround using environment variables which will store values outside of the effect context.

This if statement will define it at frame 0 and afterwards increase and use the variable each frame. Note that x is the value of an effect slider. (In my case it was audio amplitude)

if ($.myEnvVariable == null){
    $.myEnvVariable = 0
} 
// x = value from slider
$.myEnvVariable = $.myEnvVariable + x
$.myEnvVariable