Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Disconnected UV edges after boolean operation with Python

Disconnected UV edges after boolean operation with Python

Anonymous
Not applicable
422 Views
0 Replies
Message 1 of 1

Disconnected UV edges after boolean operation with Python

Anonymous
Not applicable

Hey all,

 

I'm wondering about the best way to solve this problem. When you perform a boolean operation via Python (MEL works fine, for some reason) the UV edges around the boolean operation get disconnected. This happens in Maya 2015 and 2016, and using PyMel or cmds. I haven't tested it with OpenMaya.

 

You can observe this yourself by selecting 2 objects and running either the Python or MEL lines below.

import pymel.core as pm
import maya.mel as mel
sel = pm.ls(sl=True)

# Python
result = cmds.polyBoolOp(sel[0].nodeName(), sel[1].nodeName(), op = 2, ch = 1, preserveColor=0, classification=1, n='boolMesh' )

# MEL
mel.eval( "polyCBoolOp -op 2 -ch 1 -preserveColor 0 -classification 1 -name %s %s %s;" % ( 'boolMesh', sel[0].nodeName(),  sel[1].nodeName() ) )

Seems pretty odd that this happens. Am I missing something?

 

Thanks!

0 Likes
423 Views
0 Replies
Replies (0)