Also I'm using pymel for this.
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to python_inside_maya+unsubscr...@googlegroups.com.
To view t
I'm not sure I understand what you want to achieve, but can't you use the
python version instead of the mel one ?
a = cmds.polyChipOff(dup=False)
b = cmds.polySeparate(your_mesh)
this way, you get a proper return value in a and b that you can work with.
What do you need to do exactly ?
--
You
Den fredag 22 december 2017 kl. 19:56:18 UTC+1 skrev vince touache:
> I'm not sure I understand what you want to achieve, but can't you use the
> python version instead of the mel one ?
> a = cmds.polyChipOff(dup=False)
> b = cmds.polySeparate(your_mesh)
>
> this way, you get a proper return valu
Alternately, and especially since speed seems to be a concern, what you can do
is to re-write your own extract/duplicate command with python api. This is
what I use instead of maya commands, it takes about 50lines to can get all the
infos you need to create a new polygon. And, surprisingly, re-
See the inputComponents attribute of the polyChip node.
cmds.getAttr("polyChip1.inputComponents")# Result: [u'f[202]',
u'f[239]', u'f[241]'] #
*Example*
sphere, _ = cmds.polySphere()
cmds.select(
sphere + ".f[202]",
sphere + ".f[239]",
sphere + ".f[241]"
)
chip = cmds.polyChipOff()