Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.41 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.41 KB

maya-anchor-transform

Anchor transforms to world or object space in Maya.

Click for video

Installation

  • Extract the content of the .rar file anywhere on disk.
  • Drag the anchorTransform.mel file in Maya to permanently install the script.

Usage

A button on the MiscTools shelf will be created that will allow easy access to the ui, this way the user doesn't need to worry about any of the code. If user wishes to not use the shelf button the following commands can be used.

Command line:

transform = "cube"
driver = None
start = 1001
end = 1010

import anchorTransform
anchorTransform.anchorTransform(transform, driver, start, end)

Display UI:

import anchorTransform.ui
anchorTransform.ui.show()  

Note

Anchor a transform to world or object space for a specific time range. Can be used to fix sliding feet on a walk cycle. The script uses the Maya API to calculate local transforms to be key framed, by doing this there is no need to loop over the animation greatly speeding up the work flow. Existing in and out tangents will be copied when new key frames are inserted. Once all keys are set an euler filter is applied to the animation curves connected to the rotate attributes.