rjAnchorTransform package

Module contents

Anchor transforms in Maya.


Link to Video


Copy the rjAnchorTransform folder to your Maya scripts directory



Command Line

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

Display UI

import rjAnchorTransform.ui 


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


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.

  • 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.

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