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

Synopsis

controller [-allControllers] [-children] [-group] [-index int] [-isController string] [-parent] [-pickWalkDown] [-pickWalkLeft] [-pickWalkRight] [-pickWalkUp] [-unparent]

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) createqueryedit
When this flag is queried, returns all dependNode attached to a controller in the scene.
-children(-cld) queryedit
Return true if the specified dependNode is a controller.
-group(-g) createqueryedit
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 createqueryedit
Returns true if the specified dependNode is a controller.
-parent(-p) createqueryedit
Set or query the parent controller of the selected controller node.
-pickWalkDown(-pwd) queryedit
Return the first child.
-pickWalkLeft(-pwl) queryedit
Return the previous sibling.
-pickWalkRight(-pwr) queryedit
Return the next sibling.
-pickWalkUp(-pwu) queryedit
Return the parent.
-unparent(-unp) queryedit
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 be used more than once in a command.

MEL examples

controller object