Created
April 26, 2017 10:16
-
-
Save r4inm4ker/a3e506142a3e887f1ef4eb8076c4c25d to your computer and use it in GitHub Desktop.
compare geometries topology in Maya
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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