pymel.core.modeling.polyCompare

polyCompare(*args, **kwargs)

Compares two Polygonal Geometry objects with a fine control on what to compare. If no objects are specified in the command line, then the objects from the active list are used. Default behaviour is to compare all flags. Use MEL script polyCompareTwoObjects.mel to get formatted output from this command.

Flags:

Long Name / Short Name Argument Types Properties
colorSetIndices / ic bool ../../../_images/create.gif
  Compare poly1, poly2 for matching Color Indices.
colorSets / c bool ../../../_images/create.gif
  Compare poly1, poly2 for matching Color Sets.
edges / e bool ../../../_images/create.gif
  Compare poly1, poly2 for matching Edges.
faceDesc / fd bool ../../../_images/create.gif
  Compare poly1, poly2 for matching Face Descriptions. Face descriptions describe the topology of a face, for example number and orientation of edges, number of topology of any holes in the face etc.
userNormals / un bool ../../../_images/create.gif
  Compare poly1, poly2 for matching User Normals.
uvSetIndices / iuv bool ../../../_images/create.gif
  Compare poly1, poly2 for matching UV Indices.
uvSets / uv bool ../../../_images/create.gif
  Compare poly1, poly2 for matching UV Sets.
vertices / v bool ../../../_images/create.gif
  Compare poly1, poly2 for matching Vertices. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.polyCompare

Example:

import pymel.core as pm

pm.polySphere()
pm.polySphere()
pm.select( cl=True )
pm.select( 'pSphere1', 'pSphere2', r=True )
pm.polyCompare()