Skip to content

Instantly share code, notes, and snippets.

@r4inm4ker
Created April 26, 2017 10:16
Show Gist options
  • Save r4inm4ker/a3e506142a3e887f1ef4eb8076c4c25d to your computer and use it in GitHub Desktop.
Save r4inm4ker/a3e506142a3e887f1ef4eb8076c4c25d to your computer and use it in GitHub Desktop.
compare geometries topology in Maya
import maya.cmds as mc
from maya.api.OpenMaya import MGlobal
sel = mc.ls(sl=1)
ret = mc.polyCompare(sel,v=1,e=1,fd=1)
if ret != 0:
MGlobal.displayInfo("geos NOT match!")
else:
MGlobal.displayInfo("geos match!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment