pymel.core.general.inheritTransform

inheritTransform(*args, **kwargs)

This command toggles the inherit state of an object. If this flag is off the object will not inherit transformations from its parent. In other words transformations applied to the parent node will not affect the object and it will act as though it is under the world. If the -p flag is specified then the object’s transformation will be modified to compensate when changing the inherit flag so the object will not change its world-space location. In query mode, return type is based on queried flag.

Flags:
  • off : off (bool) []

  • on : on (bool) []

  • preserve : p (bool) [create,query]

    preserve the objects world-space position by modifying the object(s) transformation matrix. Flag can have multiple arguments, passed either as a tuple or a list.

  • toggle : tgl (bool) [create,query]

    toggle the inherit state for the given object(s) (default if no flags are given) -on turn on inherit state for the given object(s) -off turn off inherit state for the given object(s)

Derived from mel command maya.cmds.inheritTransform

Previous topic

pymel.core.general.hilite

Next topic

pymel.core.general.instance

Core

Core Modules

Other Modules

This Page