I'm looking for something similar. Although, I'm not sure you need a hold frame at the end since the keyframe that is created at the end will already hold unless you put more keys after it, but then you most likely wanted an animated effect anyway.
The problem I have is that the last keyframe is usually one keyframe After the the composition length, resulting in nothing but an extended timeline. I put together, with the help of some of the folks over at creative cow, an expression that solves the basic issue:
Code:
if (time >= (thisLayer.timeRemap.key(numKeys).time)){
value - thisComp.frameDuration;
}else{
value;
}
What that does is change the last keyframe to one less frame than is says so it actually holds the last Frame of the composition instead of holding After the last frame, which doesn't make any sense to me at all.
I'd really like a script though, that adds the time remap, and creates the correct keyframes from the start without using an expression. The manual way to fix it, of course, is to go back one frame from the last and insert a keyframe, then just delete the last (original) keyframe.
Anyone up for creating this?