pymel.core.system.mouse¶
- mouse(*args, **kwargs)¶
This command allows to configure mouse.
Flags:
Long Name / Short Name Argument Types Properties enableScrollWheel / esw bool Enable or disable scroll wheel support. mouseButtonTracking / mbt int Set the number (1, 2 or 3) of mouse buttons to track.Note: this is only supported on Macintosh mouseButtonTrackingStatus / mbs bool returns the current number of mouse buttons being tracked. scrollWheelStatus / sws bool returns the current status of scroll wheel support. Flag can have multiple arguments, passed either as a tuple or a list. 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)