Thursday, December 20, 2012

Copy Key Script [Animation]

This simple script I made copies your current key and pastes it onto the next key on the timeline. It replicates the 'middle mouse + drag + S' process we all hate. 



I'd recommend assigning it to an easily reached hotkey (I use 'Y').

Here's the code:

timeSliderCopyKey; //copies key
currentTime `findKeyframe -ts`; //finds next frame
timeSliderPasteKey false; //pastes onto frame

I use this script constantly when I animate. Many workflows, especially ones that involve keeping your shot in spline for most of the process, involve extensive use of copying and pasting keys to 'bookend' your pose as if it were in stepped tangents. To me, this process is too laborious to allow for the experimentation you want be doing during blocking. But with this script on a hotkey, this workflow is fast and adaptable - especially when combined with your 'select all' hotkey. And if that's not a workflow that appeals to you, this script will  probably stillprove worthy of your keyboard real estate.


If you want the code to copy a key to the previous key, here's that too:

timeSliderCopyKey;
PreviousKey;
timeSliderPasteKey false

No comments:

Post a Comment