rjAnchorTransform package

Module contents

Anchor transforms in Maya.

https://github.com/robertjoosten/rjAnchorTransform/raw/master/README.gif

Link to Video

Installation

Copy the rjAnchorTransform folder to your Maya scripts directory

C:/Users/<USER>/Documents/maya/scripts

Usage

Command Line

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

Display UI

import rjAnchorTransform.ui 
rjAnchorTransform.ui.show()

Note

Anchor a transform to world 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.

Animation Demo Credits

rig: Harry Gladwin-Geoghegan animation: Jonathan Symmonds

Code

rjAnchorTransform.anchorSelection(start, end)

Anchor the selected transform for the parsed time range. Uses the anchorTransform() function. The selected transforms will be checked to see if all attribute channels are open for key frame if this is not the case a dialog box will ask for the users permission to continue.

Parameters:
  • start (int) – Start time value
  • end (int) – End time value
rjAnchorTransform.anchorTransform(transform, start, end)

Anchor a transform for the parsed time range, ideal to fix sliding feet. Function will take into account the in and out tangents in case the transform is already animated.

Parameters:
  • transform (str) – Path to transform
  • start (int) – Start time value
  • end (int) – End time value