I'm having an issue with passing a variable off to a second variable so that I can reset the slider/value of the first variable, print a number of frames, and then reload the slider with the original value. It seems the variables are so synced that it gets updated early, rendering the whole task useless. rl1 and Darks1Value are both global variables.
rl1 = Darks1Value; //Darks1Value is a slider that will be set to 0, then repopulated with its original value.
cp5.getController("rl1").setValue(Darks1Value); //rl1 is the temporary variable/slider to store the Darks1Value slider value
cp5.getController("Darks1Value").setValue(0); //resetting the slider to 0
println("Darks1Value is:"+rl1); //Darks1Value returns 0 - as it should
println("rl1 is:"+rl1);` //rl1 should return the original Darks1Value (eg. 100), yet returns 0
Any ideas on this one please? Many thanks.