Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

controller([allControllers=boolean], [children=boolean], [group=boolean], [index=int], [isController=string], [parent=boolean], [pickWalkDown=boolean], [pickWalkLeft=boolean], [pickWalkRight=boolean], [pickWalkUp=boolean], [unparent=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

controller is undoable, queryable, and editable.

Commands for managing animation sources

Return value

stringCommand result

In query mode, return type is based on queried flag.

Keywords

controller

Flags

allControllers, children, group, index, isController, parent, pickWalkDown, pickWalkLeft, pickWalkRight, pickWalkUp, unparent
Long name (short name) Argument types Properties
allControllers(ac) boolean createquery
When this flag is queried, returns all dependNode attached to a controller in the scene.
children(cld) boolean query
Return true if the specified dependNode is a controller.
group(g) boolean createquery
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 queryedit
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) string createquery
Returns true if the specified dependNode is a controller.
parent(p) boolean createqueryedit
Set or query the parent controller of the selected controller node.
pickWalkDown(pwd) boolean query
Return the first child.
pickWalkLeft(pwl) boolean query
Return the previous sibling.
pickWalkRight(pwr) boolean query
Return the next sibling.
pickWalkUp(pwu) boolean query
Return the parent.
unparent(unp) boolean edit
Unparent all selected controller objects from their respective parent.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.controller("object")