Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions After Effects keeps warning of a problem but expression still works

  • After Effects keeps warning of a problem but expression still works

    Posted by Josh Smith on September 17, 2015 at 8:39 am

    I have an if expression where x position reaches a certain point then it starts a rotate. I have the positions dimensions separated on the layer using position. Everything works but it still gives warning “error at line 0” and that the problem’s “object of type Layer found where Number, Array or Property is needed”

    if
    (thisComp.layer(“5”).transform.xPosition<1391.0)
    -time*100

    Josh Smith replied 10 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 17, 2015 at 4:07 pm

    Your expression has to always provide a value, which yours doesn’t if xPosition is greater than 1391.

    Adding something like this to the end should fix it:

    else
    value

    Dan

  • Josh Smith

    September 17, 2015 at 4:19 pm

    Ah as simple as that! Thanks Dan

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