Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scripted animation triggered by the comp marker

  • Scripted animation triggered by the comp marker

    Posted by Chadi Nassrallah on September 5, 2015 at 12:37 pm

    Hello guys,
    I’m new into expressions, and I would like to write an expression that combines two expression into one.
    I’m using this expression to animate the position easeOut(t, 0, 1, [x,y], [x1,y1]), but I want to trigger this animation to start by passing by comp marker with a comment Start and then invert my animation by a comp marker comment end.
    Why I’m using this expression easeOut(t, 0, 1, [x,y], [x1,y1]) because I need to link the [x,y] to a null position so I will be able to control my starting position manually.
    Thank you for your help
    Chadi

    Chadi Nassrallah replied 10 years, 8 months ago 3 Members · 2 Replies
  • 2 Replies
  • Miguel De mendoza

    September 7, 2015 at 4:29 pm

    Start here: https://motionscript.com/design-guide/marker-sync.html. If you want to use interpolation functions many times, check this: https://forums.creativecow.net/thread/227/30494.
    If you only want to make one linear on one property controlled by markers you can write this:

    t1 = marker.key(1).time; // If the marker is on other layer : comp("xxx").layer("xxx").marker....
    t2 = marker.key(2).time;
    startPoint = [x, y];
    endPoint = [x1, y1];
    linear(time, t1, t2, startPoint, endPoint );

  • Chadi Nassrallah

    September 19, 2015 at 12:07 pm

    Thank you for your help,
    The expression works fine but i’m still trying to figure out how to use the interpolation many times. i checked the links you sent me but its quit advance to my expression experience.
    What i’m trying to achieve is applying this interpolation expression to position property of a layer to move from position1 to position2 triggered by Marker1 till Marker2 and hold till marker3 to move from position2 to position3 until marker4.

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