Your Ad Here

Go to: Synopsis. Return value. Python examples.

Synopsis

shapeCompare( [shape1 shape2] )

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

shapeCompare is undoable, queryable, and editable.

Compares two shapes. If no shapes are specified in the command line, then the shapes from the active list are used.

Return value


0 if successful, 1 if shape1 and shape2 are not determined to be equal based on requested flags.

Python examples

import maya.cmds as cmds

cmds.polySphere()
cmds.polySphere()
cmds.select( cl=True )
cmds.select( 'pSphere1', 'pSphere2', r=True )
cmds.shapeCompare()

  

Return to Autodesk Index


Your Ad Here