Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

multiTouch([gestures=boolean], [trackpad=uint])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

multiTouch is undoable, queryable, and NOT editable.

Used to interact with the Gestura (multi-touch) library.

Return value

None

In query mode, return type is based on queried flag.

Flags

gestures, trackpad
Long name (short name) Argument types Properties
gestures(g) boolean createquery
Enables/Disables multi touch gestures.
trackpad(t) uint createquery
Sets the trackpad mode. Values can be:
  • 1 - Cursor Control only
  • 2 - Multi-touch Gestures Only
  • 3 - Cursor and Multi-touch
Note: this is a "Mac" only flag.

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.

Python examples

import maya.cmds as cmds

# Enable multi-touch gestures.
cmds.multiTouch(gestures=True)

# To query whether multi-touch gestures are enabled or not:
cmds.multiTouch(q=True, gestures=True)

# Set the trackpad mode to 'Cursor and Multi-touch'.
cmds.multiTouch(trackpad=3)

# To query the trackpad mode:
cmds.multiTouch(q=True, trackpad=True)