Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Why is this expression not working?

  • Why is this expression not working?

    Posted by David Cabestany on July 5, 2016 at 10:07 pm

    I’m using the expression below.

    It works ok, but as you can see I have no need for variable “y”, however if I remove it the expression breaks and gives an error stating expression result must be of dimension 2, not 1.

    I know the answer is simple: Do not remove y, but I’m a bit OCD and I like to have clean code.

    Any ideas?

    Best,
    D.

    topVal=100
    fadeDur = 1;
    if (time < (inPoint+outPoint)/2)
    x=ease(time,inPoint,inPoint+fadeDur,0,topVal)
    else
    x=ease(time,outPoint-fadeDur,outPoint,topVal,0)
    y=100;
    [x,x];

    David Cabestany replied 10 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 5, 2016 at 10:15 pm

    I think you just need to add a semicolon to the line above the one you’re taking out.

    Dan

  • David Cabestany

    July 5, 2016 at 10:29 pm

    Yep, that was it.
    Thanks Dan.

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