I just tried that function on a test sphere, using a list of integers. It works for me but it doesn't redraw in the viewport; I had to call updateSurface() afterwards to see the changes.
I wasn't able to get it to crash on my sphere. Eventually, it would either do nothing, or give an error "# RuntimeError: (kInvalidParameter): Index not in valid range #" depending on the index or indices I was trying to collapse. The numPolygons attribute and getVertices() method don't return updated numbers though, even after updateSurface. I suspect it would be easy to get a crash in other code after using collapseFaces. On Sunday, 17 February 2019 06:08:53 UTC+11, brand wrote: > > Hey Justin, > > I tried hard coding a list and tuple just for a test, and it just gives me > a fatal error every time. > > list_test = [1] > mesh.collapseFaces(list_test) > > After reading the docs, it does say a list is a sequence type so that > makes it clear, but just not sure why I am getting crashes. > -- 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/3e077e5e-a09c-446a-aafc-0a6222c61a6d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.