Go to: Synopsis. Return value. Python examples.

Synopsis

toolHasOptions( string )

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

toolHasOptions is undoable, NOT queryable, and NOT editable.

This command queries a tool to see if it has options. If it does, it returns true. Otherwise it returns false.

Return value

booleanTrue if the queried tool has options, otherwise false.

Python examples

import maya.cmds as cmds

if cmds.toolHasOptions('moveSuperContext'):
	print 'moveSuperContext tool has options'