pymel.core.animation.controller¶
- controller(*args, **kwargs)¶
Commands for managing animation sources
Flags:
Long Name / Short Name Argument Types Properties allControllers / ac bool
When this flag is queried, returns all dependNode attached to a controller in the scene. children / cld bool
Return true if the specified dependNode is a controller. group / g bool
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
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
Returns true if the specified dependNode is a controller. parent / p bool
Set or query the parent controller of the selected controller node. pickWalkDown / pwd bool
Return the first child. pickWalkLeft / pwl bool
Return the previous sibling. pickWalkRight / pwr bool
Return the next sibling. pickWalkUp / pwu bool
Return the parent. unparent / unp bool
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”)