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()
faces = cmds.getAttr(chip[0] + ".inputComponents")
cmds.select(
sphere + "." + faces[0],
sphere + "." + faces[1],
sphere + "." + faces[2]
)
Normally, components affected by polygon modifications - like soft modification, skinning, extrude etc - are stored in an invisible objectSet node, which I was looking for at first. But as it didn’t have any, I knew it must have been stored internally. In this case, it looks to be a compound string attribute.
--
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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/82dcc486-a108-40b0-9267-0aa1f5d6b2ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.