bakeAnimation

Module with methods to bake the movement/channels of one object to another. Transform baking can be either in local or world space. This can be usefull to bake camera movement resulting from hierarchies into camera movement without hierarchies etc.


Usage

from helga.maya.animation.bakeAnimation import bakeAnimation
reload(bakeAnimation)

#Create instance
bakeAnimationInstance = bakeAnimation.BakeAnimation()
#Select object_a and object_b and execute bakeAnimationTransformOnly
#to bake the animation from object_a to object_b for the frames 1 - 100
bakeAnimationInstance.bakeAnimationTransformOnly(1, 100)

class helga.maya.animation.bakeAnimation.bakeAnimation.BakeAnimation[source]
bakeAnimation(animationStartTime=0, animationEndTime=0)[source]

Bake animation of two objects (or master - slave pairs). Bakes animation of all channels that are keyable and not locked. Also the channels need to be presents in both objects. The selection order is the same as with constraints:

  1. Master: Source of Movement
  2. Slave: Gets baked to movement of master
Parameters:
  • animationStartTime (int) – Beginning of sequence to bake
  • animationEndTime (int) – End of sequence to bake
bakeAnimationTransformOnly(animationStartTime=0, animationEndTime=0, localSpace=False)[source]

Bake animation of two objects but only bake channels that contribute to the transformation matrix (translate, rotate, scale). Shear is omitted since it has never been used in the history of animation. The selection order is the same as with constraints:

  1. Master: Source of Movement
  2. Slave: Gets baked to movement of master
Parameters:
  • animationStartTime (int) – Beginning of sequence to bake
  • animationEndTime (int) – End of sequence to bake
  • localSpace (bool) – If True, only the immediate values of the object are baked. If False bake complete transformation hierarchy (WorldSpace).
getSelection()[source]
setAnimationRange(startTime, endTime, startRange, endRange)[source]