Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Trigger scale with markers

  • Trigger scale with markers

    Posted by Jonathan Reyes on March 10, 2024 at 12:37 am

    I have a few (a lot) cubes that need to scale up and down at specific times. Multiple time on some.

    I want to be able to just move a In marker and Out marker.

    The Error says dimensions need to be two.

    I found this expression that work on Opacity…

    var In = thisLayer.marker.key(1).time;

    var Out = thisLayer.marker.key(2).time;

    var dur = 0.2;

    linear(time, In-dur, In, 0, 100);

    linear(time, Out, Out + dur, 100, 0);

     

    Can someone help

    Dan Ebberts
    replied 2 years, 1 month ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    March 10, 2024 at 1:08 am

    Try it this way:

    In = thisLayer.marker.key(1).time;
    Out = thisLayer.marker.key(2).time;
    dur = 0.2;
    s = time < (In +Out)/2 ? linear(time, In-dur, In, 0, 100) : linear(time, Out, Out + dur, 100, 0);
    [s,s]

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