-
fix time-remap last keyframe blank problem
I first posted a question over in basic because I thought I was just missing something, but was actually doing it right I am told.
I often create a time remap to extend the end of a composition. But then I have to go back one frame from the out point and add another keyframe, then delete the last one, because the default keyframe ends up being blank.
I made a script to solve this, but I’m sure it could be better.
First problem is I didn’t know how to do <= (less than or equal to), so I just subtracted on frame using thisComp.frameDuration. I'd like the key(2) part to really say, the last key. I'm not sure how to accomplish that. I'm not clear on what that means also, because I didn't think I would be able to add keys in the middle and still have it work, but it looks to keep working even if there are 5 keys there. Below is the expression I used. I hope you guys can give me some help.if (time < (thisLayer.timeRemap.key(2).time - thisComp.frameDuration)){ value }else{ value - thisComp.frameDuration }