pymel.core.general.transformLimits

transformLimits(*args, **kwargs)

The transformLimits command allows us to set, edit, or query the limits of the transformation that can be applied to objects. We can also turn any limits off which may have been previously set. When an object is first created, all the transformation limits are off by default.Transformation limits allow us to control how much an object can be transformed. This is most useful for joints, although it can be used any place we would like to limit the movement of an object.Default values are:( -1, 1) for translation, ( -1, 1) for scaling, and (-45,45) for rotation. In query mode, return type is based on queried flag.

Flags:
  • enableRotationX : erx (bool, bool) [query]

    enable/disable the lower and upper x-rotation limitsWhen queried, it returns boolean boolean

  • enableRotationY : ery (bool, bool) [query]

    enable/disable the lower and upper y-rotation limitsWhen queried, it returns boolean boolean

  • enableRotationZ : erz (bool, bool) [query]

    enable/disable the lower and upper z-rotation limitsWhen queried, it returns boolean boolean

  • enableScaleX : esx (bool, bool) [query]

    enable/disable the lower and upper x-scale limitsWhen queried, it returns boolean boolean

  • enableScaleY : esy (bool, bool) [query]

    enable/disable the lower and upper y-scale limitsWhen queried, it returns boolean boolean

  • enableScaleZ : esz (bool, bool) [query]

    enable/disable the lower and upper z-scale limitsWhen queried, it returns boolean booleanFlag can have multiple arguments, passed either as a tuple or a list.

  • enableTranslationX : etx (bool, bool) [query]

    enable/disable the ower and upper x-translation limitsWhen queried, it returns boolean boolean

  • enableTranslationY : ety (bool, bool) [query]

    enable/disable the lower and upper y-translation limitsWhen queried, it returns boolean boolean

  • enableTranslationZ : etz (bool, bool) [query]

    enable/disable the lower and upper z-translation limitsWhen queried, it returns boolean boolean

  • remove : rm (bool) [create]

    turn all the limits off and reset them to their default values

  • rotationX : rx (float, float) [query]

    set the lower and upper x-rotation limitsWhen queried, it returns angle angle

  • rotationY : ry (float, float) [query]

    set the lower and upper y-rotation limitsWhen queried, it returns angle angle

  • rotationZ : rz (float, float) [query]

    set the lower and upper z-rotation limitsWhen queried, it returns angle angle

  • scaleX : sx (float, float) [query]

    set the lower and upper x-scale limitsWhen queried, it returns float float

  • scaleY : sy (float, float) [query]

    set the lower and upper y-scale limitsWhen queried, it returns float float

  • scaleZ : sz (float, float) [query]

    set the lower and upper z-scale limitsWhen queried, it returns float float

  • translationX : tx (float, float) [query]

    set the lower and upper x-translation limitsWhen queried, it returns linear linear

  • translationY : ty (float, float) [query]

    set the lower and upper y-translation limitsWhen queried, it returns linear linear

  • translationZ : tz (float, float) [query]

    set the lower and upper z-translation limitsWhen queried, it returns linear linear

Derived from mel command maya.cmds.transformLimits

Previous topic

pymel.core.general.transformCompare

Next topic

pymel.core.general.ungroup

Core

Core Modules

Other Modules

This Page