easing remapped time between markers
Posted: November 16th, 2008, 5:10 am
First of all sorry for my poor experience about expressions.
I have done a modification of Dan Ebberts's expression "Trigerring animation with markers) for use the time of the markers from another comp layer but I am always getting an error "this property has no keyframe number xx"
What I am doing wrong?. Is there any way the expression to stop looking for more markers than the layer has got. Thanks in advance
action =comp("time_remap").layer("White Solid 1");
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time >= time){
n--;{
if (n > marker.numKeys) n = 0;}
}
}
if (n == 0){
0
}else{
m = marker.key(n);
m1 = marker.key(n+1);
myComment = m.comment;
myComment1 = m1.comment;
c= action.marker.key(myComment).time;
c1=action.marker.key(myComment1).time;
d=marker.key(myComment).time;
d1=marker.key(myComment1).time;
ease(time,d,d1,c,c1);
}
I have done a modification of Dan Ebberts's expression "Trigerring animation with markers) for use the time of the markers from another comp layer but I am always getting an error "this property has no keyframe number xx"
What I am doing wrong?. Is there any way the expression to stop looking for more markers than the layer has got. Thanks in advance
action =comp("time_remap").layer("White Solid 1");
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time >= time){
n--;{
if (n > marker.numKeys) n = 0;}
}
}
if (n == 0){
0
}else{
m = marker.key(n);
m1 = marker.key(n+1);
myComment = m.comment;
myComment1 = m1.comment;
c= action.marker.key(myComment).time;
c1=action.marker.key(myComment1).time;
d=marker.key(myComment).time;
d1=marker.key(myComment1).time;
ease(time,d,d1,c,c1);
}