This command allows to configure mouse.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
enableScrollWheel (esw) | bool | ||
|
|||
mouseButtonTracking (mbt) | int | ||
|
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
import maya.cmds as cmds
pm.mouse( enableScrollWheel=False )
mouseEnabled = pm.mouse(scrollWheelStatus=True)
pm.mouse( mouseButtonTracking=1 )
numberOfMouseButtons = pm.mouse(mouseButtonTrackingStatus=True)