I don't know which algorithm precisely maya is using, but you can start by trying basic algorithms. E.g. for a given vertex, query the surrounding vertices, do an average of their weights, and that'll give you the new weight. Check out different algorithms (laplacian/gaussian/inverse distance weighting/etc) and see what works for you.
Le dimanche 7 juin 2020 00:08:46 UTC-4, Francesco a écrit : > > Hi all! > > I am trying to flood smooth on a blendshape with the use of python but I > can't figure out how to do it. I know how to manually set a value for each > point cmds.setAttr("blendShape1.inputTarget[0].baseWeights[0]", 0), but I > want to get the same behavior of hitting flood with smooth enabled. Anyone > knows how I would be able to accomplish that? > > Thanks! > -Francesco > -- 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/0d9e62d8-2397-4444-8d9e-d6c01192cc80o%40googlegroups.com.