Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Object of type Layer found where a Number, Array, or Property needed

  • Object of type Layer found where a Number, Array, or Property needed

    Posted by Simon Francois on September 11, 2020 at 12:04 am

    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?

     

    replied 5 years, 12 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy