Go to: Synopsis. Return value. Flags. Python examples.
mouse([enableScrollWheel=boolean], [mouseButtonTracking=int], [mouseButtonTrackingStatus=boolean], [scrollWheelStatus=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
mouse is undoable, NOT queryable, and NOT editable.
This command allows to configure mouse.
int | When -scrollWheelStatus flag is used, will return 1 if scroll wheel support enabled, otherwise 0.
When -mouseButtonTrackingStatus flag is used, will return the number of mouse buttons being tracked. |
enableScrollWheel, mouseButtonTracking, mouseButtonTrackingStatus, scrollWheelStatus
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.mouse( enableScrollWheel=False )
mouseEnabled = cmds.mouse(scrollWheelStatus=True)
cmds.mouse( mouseButtonTracking=1 )
numberOfMouseButtons = cmds.mouse(mouseButtonTrackingStatus=True)