On Sat, Feb 16, 2019, 11:39 PM brand <branchu...@gmail.com wrote: > I'm having trouble understanding what is defined as a sequence of Ints. > > The 2.0 documentation is pretty straight forward to me since most > parameters have a link to what is needed, and I can dig deeper. When I came > across MFnMesh.collapseFaces(), there was no link for the parameter, so I > didn't know what it meant by sequence of ints. > > I am new to python, so I maybe overlooking this. I searched on GitHub and > blogs and saw some people use MIntArray, but not sure if that is what a > sequence actually is in this context. >
Have you tried just passing a list or a tuple? mesh.collapseFaces([id1, id2, ...]) Sequence types: https://docs.python.org/2.7/library/stdtypes.html#sequence-types-str-unicode-list-tuple-bytearray-buffer-xrange > The code I got right now gives no errors, and I managed to make the face > collapse one time, followed by 10 crashes. > > https://pastebin.com/0nnD76DM > > Thanks !! > > -- > 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 this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/8f5637a2-6fd4-4db3-b73c-52a32968c41f%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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 this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3fwvMzx6fgnRzBhKB5QUDN5d0M%2B9i3vx62L%3DDb-KBoZQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.