This command allows to configure mouse.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
enableScrollWheel (esw) | bool | ||
|
|||
mouseButtonTracking (mbt) | int | ||
|
|||
mouseButtonTrackingStatus (mbs) | bool | ||
returns the current number of mouse buttons being tracked.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
scrollWheelStatus (sws) | bool | ||
|
Derived from mel command maya.cmds.mouse
Example:
import pymel.core as pm
pm.mouse( enableScrollWheel=False )
mouseEnabled = pm.mouse(scrollWheelStatus=True)
pm.mouse( mouseButtonTracking=1 )
numberOfMouseButtons = pm.mouse(mouseButtonTrackingStatus=True)