if(thisComp.layer["C_Patin_G"].effect["IK Bas_G"]["Clockwise"]=true) { x=-100; } else { x=100; }
i'm using duik, reverse kinematics, , want scale property of layer x=-100% , y=100% if ik effect set clockwise
and x=100% , y=100% if not...
what wrong expression?
if(thiscomp.layer["c_patin_g"].effect["ik bas_g"]["clockwise"]=true) { x=-100; } else { x=100; }
you need use logical ==, not = (which meant assign new value, , wouldnt work in case).
if (thiscomp.layer["c_patin_g"].effect["ik bas_g"]["clockwise"].value==true) { x=-100; } else { x=100; };
x;
More discussions in After Effects Expressions
adobe
Comments
Post a Comment