Thanks for testing it out. Something weird does happens after collapsing faces using the list of ints, but calling updateSurface() fixes it. Not sure what exactly is going on here, but I am glad this works at least. Thanks!
On Monday, February 18, 2019 at 8:37:19 PM UTC-5, Michael Boon wrote: > > 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/b686d84f-dd8e-49ef-bf44-c0132b9440d6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.