-
Expression error trying to rotate z using index
I’ve been trying to figure out why I’m getting an error but I’m stumped. I’m trying to use the index to rotate a 3D layer’s z-rotation, but I get a “Class ‘global’ has no property or method named ‘t'” error. BTW, the expression works as expected on the first 5 layers in the comp.
Any help would be greatly appreciated.
Thanks,
Jack
num=(index/5 % 1);
if (num==.2) t=-60;
if (num==.4) t=60;
if (num==.6) t=-120;
if (num==.8) t=120;
if (num==.0) t=0;
[t]