Sunday, January 17, 2010

Anim Bake Manager

I found myself baking animation to objects for various reasons. Most commonly I would use it in situations to avoid circular dependencies, or to bake bones to simulated objects, as well as other miscellaneous situations.

At first I just did it in a few lines of code and adjusted it as needed, eventually I made a simple interface for it. Once others started needing to use this method for various situations, I decided to make a version that was a bit more robust. I also wanted to simplify the process and make it easier to manage and update existing objects if and when the animation changed.

When the "Create" button is pressed it will create point helpers for each selected object, and key their transforms to match the target object within the specified frame range. The main listbox displays all of the point helpers created by the script. These are not name dependent and the names can be changed to whatever you like, but by default it uses the selected objects name with the prefix of "abm_"

The listbox underneath will display the target object for whichever abm helper is selected in the list. If the target is deleted from the scene it will display "Target Missing" Having a target object is not a requirement because the animation was baked when the helper was created. The reason script stores the targets so you can easily refresh if the animation has changed. Double clicking in any of the items will select it in the viewport.

Pressing the refresh button will re-bake any of selected helpers in the listbox, within the specified frame range. Refreshing will also clean up any abm helpers that were deleted from the scene. The retarget button allows for you to change the target object of the abm helper selected in the list. This is useful if you delete the target object or you want to swap target objects mid animation.

The "manual" option takes a specified object and matches and keys its transforms to the specified target object.

I have had a number of instances where I have found this useful, if you are interested you can check it out here:

**download temporarily removed**

0 comments: