Go to: Synopsis. Return value. Python examples.
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
shapeCompare is undoable, NOT queryable, and NOT editable.Compares two shapes. If no shapes are specified in the command line, then the shapes from the active list are used.
|int||0 if successful, 1 if both shapes are not determined to be equal based on requested flags.|
import maya.cmds as cmds cmds.polySphere() cmds.polySphere() cmds.select( cl=True ) cmds.select( 'pSphere1', 'pSphere2', r=True ) cmds.shapeCompare()