Your Ad Here

Go to: Synopsis. Return value. Python examples.

Synopsis

toolHasOptions( [tool name] )

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

toolHasOptions is undoable, queryable, and editable.

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

Return value


boolean

Python examples

import maya.cmds as cmds

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

  

Return to Autodesk Index


Your Ad Here