-
Expressions question: creating control that displays a variable’s value
Hello,
For testing purposes I want to see what the value of a variable is that I’ve created in an expression.
For the position of layer 1 I’ve added the following expression:
x = random(0,1)*100;
position = [300+x, 200+x]
What I’m trying to do is add a slider box controller to the position property which will show me what the value of x is at any time in the timeline. It’s easy to find the position value, but when I try to add something like:
thisLayer.position.x
I get “Undefined value used in expression. Could be an out of range array subscript?”
I’m able to do this when writing scripts by using the alert() method to pop up little boxes with the value of x in it…can I do something similar with expressions?
Thanks
Nick