ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Markers and Time Remap expression

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Agatha Yu
Markers and Time Remap expression
on Oct 2, 2013 at 1:53:58 am

Hi I am looking to call the marker "click" from the pre-comp "bean" in my main composition "stage". I added the expression below to bean inside the time-remap property, where "Actions" is a null panel. I added a marker "click" to that null panel at the time I want to call the click snippet, but it didn't work. What am I doing wrong?

Thanks :)


Action = comp("stage").layer("Actions");
N = 0;
if(marker.numKeys > 0){
N = marker.nearestKey(time).index;
if(marker.key(N).time > time){N--;}
}
if (N == 0){ 0 } else {
M = marker.key(N);
myComment = M.comment;
T = time - M.time;
try{
actMarker = Action.marker.key(myComment);
if(Action.marker.numKeys > actMarker.index){
tMax = Action.marker.key(actMarker.index+1).time - actMarker.time;
}else{
tMax = Action.outPoint - actMarker.time;
}
T = Math.min(T, tMax);
actMarker.time + T;
}catch (err){
0
}
}


Return to posts index

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