-
Object of type Layer found where a Number, Array, or Property needed
Hi all!
I set up a wiggle expression on an object rotation. I want to set up the condition that whenever this object goes back to 0°, a random number gets generated. The expression I wrote is:
R= thisComp.layer(“triangle B”).transform.rotation;
if(R == 0){
Math.round(random(3));
}When I apply it to the other object, I get this error message: “After Effects warning: Object of type Layer found where a Number, Array, or Property is needed. Expression disabled.”
But it actually works when I apply it to an empty text layer: the result is displayed properly.
Any idea where that could come from?
Sorry, there were no replies found.