Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Can anyone tell me what is wrong with this expression?

  • Can anyone tell me what is wrong with this expression?

    Posted by David Cabestany on September 15, 2016 at 9:35 pm

    I’m having a little triangle follow the growth of a line, pretty much a simple arrow.
    The triangle has orient along path turned on and I rotated it 90 degrees so the tip points correctly, but on the first frame it looks wrong, so I added the 1st expression below, and that took care of the first frame issue.

    However the last frame, where the line growth gets to 100% has the same issue again, so I edited my expression to look like the second one, but then I get the following error:

    Anyone knows why I can’t add a second condition to my statement using the > symbol?

    Thanks in advance.

    Quick edit, the website is not allowing me to put the < sign on the expression field, that's why it looks like a&lt; or something like that. a=thisComp.layer("linea").content("Trim Paths 1").end;
    if
    (a&lt;=.0001)
    {
    0
    }
    else
    90
    ——
    a=thisComp.layer("linea").content("Trim Paths 1").end;
    if
    (a&lt;=.0001 && >100);
    {
    0
    }
    else
    90

    David Cabestany replied 9 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 15, 2016 at 9:48 pm

    Like this I’m guessing:

    a=thisComp.layer(“linea”).content(“Trim Paths 1”).end;
    if (a<=.0001 || a >100) 0 else 90

    Dan

  • David Cabestany

    September 15, 2016 at 10:41 pm

    Thanks a lot Dan.

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