That should be easy enough to implement right? Just find the velocityAtTime at the time of the last keyframe and use that to offset the value. Adding that difference to the value at the final keyframe gives us k + where k is the value at the last keyframe. So if it is applied to a position property and the property is moving on the x axis 10 pixels per second and -50 pixels per second on the y axis, at n seconds after the last keyframe the value will have changed by. LoopOut(continue), when applied to a property will continue to change the property at the velocity it has at the last keyframe. So I had to write my own implementation of loopOut(). That meant I had to use valueAtTime, but I wanted the property to continue after the last keyframe, as if I had used loopOut(continue). I wanted to add an offset, and a multiplier to the value of a property so that I could duplicate the layer and have the property change at a different speed, and starting at a different time, all controlled by scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |