Go to: Synopsis. Return value. Python examples.
isTrue(
<condition name>
)
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
isTrue is undoable, queryable, and editable.
This commmand returns the state of the named condition. If the condition is true, it returns 1. Otherwise it returns 0.None
In query mode, return type is based on queried flag.
import maya.cmds as cmds cmds.isTrue( 'SomethingSelected' ) # Result: 1 #