Hi Tomas,
1. Yes, Ideally I’d like to control the scaling animation from within a pre-comp and time-remap it.
2. Correct, Animation In on first marker, Animation out at last keyframe. I’ve been plugging away at the animation in code and I’m a bit stuck. So far I’ve got:
m = thisComp.layer(1).marker.key(1);
animationDurationInFrames = 10;
frameRate = 23.976;
animationDurationSeconds = animationDurationInFrames/frameRate;
mTime = m.time;
animStart = mTime-animationDurationSeconds;
if (time >= mTime) {
animationDurationSeconds
}else if(time <= animStart){
0
}else{
time-animStart
}
At this point the circle just pops on at the first marker. I can’t get it to animate on at the marker. As for triggering the out animation on the last key frame, I’m guessing I’d use numKeys? But I have no idea how I’d get it to return the last keyframe on a given layer.
Eric