pymel.core.modeling.polyCompare

static modeling.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. Flag can have multiple arguments, passed either as a tuple or a list.
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.

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()

Previous topic

pymel.core.modeling.polyColorSet

Next topic

pymel.core.modeling.polyCone

Core

Core Modules

Other Modules

This Page