Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Whats the code for stopping an expression at a marker or certain time?

  • Whats the code for stopping an expression at a marker or certain time?

    Posted by Daniel Haskett on November 18, 2007 at 2:51 pm

    Hi there

    Basically say you have a layers position linked to another layers position using a simple expression. What do you put if you want the layer to stop using the expression at a certain marker or time? Thats possible right?

    Any help would be greatly appreciated!

    Cheers

    Dan

    Mike Clasby replied 18 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Mike Clasby

    November 18, 2007 at 6:53 pm

    Here’s the flip-side of Marker Trigger’s expression, or Marker Kills Expression:

    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time){
    n–;
    }
    }

    if (n == 0){

    wiggle (5,50)//your expression her

    }else{
    value;
    }

    I tested it on a wiggle expression, so drop your expression on that line, it can be multiline, but drop it there. This was a Dan expression, flipped.

    Also, here’s how to stop an expression at a certain time;

    https://forums.creativecow.net/readpost/227/8966

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