MEL - combining polygons giving name?

MEL - combining polygons giving name?

Anonymous
Not applicable
527 Views
1 Reply
Message 1 of 2

MEL - combining polygons giving name?

Anonymous
Not applicable
This is in python
So I am dynamically creating faces using polyCreateFacet function and then combining all the polygons using mel.eval('CombinePolygon').

Apparently mel.eval is supposed to return the name of the mesh I just created but it doesn't. So I was wondering if there is a way to combine these polygons while at the same time giving the new polygon a name.
0 Likes
528 Views
1 Reply
Reply (1)
Message 2 of 2

lee.dunham
Collaborator
Collaborator
looks like your using the wrong command, and im not sure if eval ever returns results from the command its evaluating, more likely whether its successful or not.
try polyUnite instead:
import maya.cmds as mc
mc.polyUnite(ch=1)


EDIT: this thread will also want re-directing to the python thread.
0 Likes