Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions x movement using marks

  • x movement using marks

    Posted by Marcelo Cabral on March 14, 2013 at 4:22 pm

    Hi
    I am using this expression which moves a 3D layer in the z position.
    As you will see this expression us the inPoint and the outPoit to start and stop the movement. What I am looking for is the way this script works using mark in other layer called CONTROL. I mean first mark will remplace the inPonit and the second mark will remplace the outPoint.
    Any help will really help me because today is the deadline project

    zmove=-300;
    pos1=value;pos2=add(value,[0,0,zmove]);
    linear(time,inPoint,outPoint,pos1,pos2)

    Dan Ebberts replied 13 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    March 14, 2013 at 5:10 pm

    Something like this:


    m = thisComp.layer("CONTROL").marker;
    zmove=-300;
    if (m.numKeys > 1){
    t1 = m.key(1).time;
    t2 = m.key(2).time;
    z = linear(time,t1,t2,0,zmove);
    value + [0,0,z]
    }else
    value

    Dan

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