-
Expression Translation
ok here is my question,
I wanna create an expression relative to the one belove to use in after effects and this is the code base on different but similar code base of after effects:Actmove = 0;
if (effect(“XFaceR”)(“X”) >= 45)
{Actmove=1;}
else if ((effect(“XFaceR”)(“X”) <= -22)
{Actmove=0;}Rvalue=0;
if (Actmove=1) {Rvalue = time*slidercontrolValue;}
else {Rvalue = time*(slidercontrolValue+slidervalue2);}value+Rvalue;
——————————————————————–Actmove is a Variable
(effect(“XFaceR”)(“X”)) where (XFaceR) is the Layers Name and (X) is the X value of that layer.
slidercontrolValue = a Silder Control that will be place in a Null Object so i can keyframe it or do other things with it.
——————————————————————–
now how to get something similar to use in After Effects? I have try this way but no luck..
Thanks in advance.