FORUMS: list search recent posts

Change the Y position of a layer on hitting markers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jk Patel
Change the Y position of a layer on hitting markers
on Dec 30, 2016 at 10:25:57 pm

Expression to change the Y position of a layer by a constant value (example 150 pixels) at every marker on the layer.


Return to posts index

Dan Ebberts
Re: Change the Y position of a layer on hitting markers
on Dec 30, 2016 at 11:57:34 pm

This should work:


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

value + [0, n*150]


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]