pymel.core.windows.disable

disable(*args, **kwargs)

This command enables or disables the control passed as argument.

Flags:
Long name (short name) Argument Types Properties
value (v) bool ../../../_images/create.gif
 

If true, this command disables the control. If false, this command enables the control. Default value is true (disable)Flag can appear in Create mode of commandFlag 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

Previous topic

pymel.core.windows.dimWhen

Next topic

pymel.core.windows.dockControl

Core

Core Modules

Other Modules

This Page