pymel.core.animation.controller

controller(*args, **kwargs)

Commands for managing animation sources

Flags:

Long Name / Short Name Argument Types Properties
allControllers / ac bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  When this flag is queried, returns all dependNode attached to a controller in the scene.
children / cld bool ../../../_images/query.gif ../../../_images/edit.gif
  Return true if the specified dependNode is a controller.
group / g bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Create a controller that is not associated with any object. This new controller will be the parent of all the selected objects.
index / idx int ../../../_images/query.gif ../../../_images/edit.gif
  In query mode, returns the index of the controller in the parent controller’s list of children. In edit mode, reorder the parent controller’s children connections so that the current controller is assigned the given index.
isController / ic unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Returns true if the specified dependNode is a controller.
parent / p bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Set or query the parent controller of the selected controller node.
pickWalkDown / pwd bool ../../../_images/query.gif ../../../_images/edit.gif
  Return the first child.
pickWalkLeft / pwl bool ../../../_images/query.gif ../../../_images/edit.gif
  Return the previous sibling.
pickWalkRight / pwr bool ../../../_images/query.gif ../../../_images/edit.gif
  Return the next sibling.
pickWalkUp / pwu bool ../../../_images/query.gif ../../../_images/edit.gif
  Return the parent.
unparent / unp bool ../../../_images/query.gif ../../../_images/edit.gif
  Unparent all selected controller objects from their respective parent. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.controller

Example:

::

import pymel.core as pm

pm.controller(“object”)