This command enables or disables the control passed as argument.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
value (v) | bool | ||
If true, this command disables the control. If false, this command enables the control. Default value is true (disable) Flag can have multiple arguments, passed either as a tuple or a list. |
Derived from mel command maya.cmds.disable
Example:
import pymel.core as pm
pm.window()
pm.formLayout()
pm.button( 'fred' )
pm.showWindow()
pm.disable( 'fred' ) # dims the button
pm.disable( 'fred', v=False ) # un-dims it