[Maya-Python] Re: See which faces are affected by polyChipOff?

2017-11-30 Thread Erik Spellerberg
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

[Maya-Python] Re: See which faces are affected by polyChipOff?

2017-12-22 Thread fruityfrank
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

[Maya-Python] Re: See which faces are affected by polyChipOff?

2017-12-24 Thread Erik . Spellerberg
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

[Maya-Python] Re: See which faces are affected by polyChipOff?

2017-12-25 Thread fruityfrank
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-

Re: [Maya-Python] Re: See which faces are affected by polyChipOff?

2017-12-25 Thread Marcus Ottosson
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()