Go to: Synopsis. Return value. Keywords. Flags. Python examples.
attrControlGrp([annotation=string], [attribute=name], [changeCommand=script], [enable=boolean], [handlesAttribute=name], [hideMapButton=boolean], [label=string], [preventOverride=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
attrControlGrp is NOT undoable, queryable, and editable.
This command creates a control of the type most appropriate for the specified
attribute, and associates the control with the attribute. Any change to the
control will cause a change in the attribute value, and any change to the
attribute value will be reflected in the control. Not all attribute types are
supported.
In query mode, return type is based on queried flag.
attribute, control
annotation, attribute, changeCommand, enable, handlesAttribute, hideMapButton, label, preventOverride
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.
|
import maya.cmds as cmds
cmds.window()
cmds.columnLayout()
cmds.attrControlGrp( attribute='defaultResolution.width' )
cmds.showWindow()