-
Trigger animation based on hold keyframe?
I’ve got a highlighter I use in my videos, which uses layer markers to animate opactiy, but I also have to set a position property with a hold keyframe to have the highlight appear in the right place.
fadetime = 0.5;
dur = 2;
if(marker.numKeys > 0){
m = marker.nearestKey(time).index;
if(marker.key(m).time > time) {
m--;
}
if(m > 0){
mt = marker.key(m).time;
if(time < mt+dur){
linear(time, mt, mt+fadetime, 0, 100);
} else {
linear(time, mt+dur, mt+dur+fadetime, 100, 0);
}
} else {
0
}
} else { 0
}I’m wondering if there’s a way to trigger the animation based on the change of position keyframe value instead of the layer marker. It’s hardly an onerous task, but I’m curious if it’s possible.