def renameDeformerSet(): nodes = pm.ls( type = ( "blendShape", "cluster", "wrap", "ffd", "softMod", "nonLinear", "sculpt", "wire", "jiggle" ) ) for node in nodes: set = node.outputs( type = "objectSet") set.rename( node.type() + "_" + node.name() )
martedì 19 novembre 2013
domenica 17 novembre 2013
After all this time I'm back with a little work. Hi!
This script comes in handy when we work with the blendshapes. Sometimes it can happen that we no longer have the shape but only the blendshape node ( it happens when the save file must be small ).
With the extract function, you can extract all the shapes with their in-between shapes. The script will automatically put inside in a group and the names of the shapes will be the same attribute name they have in the blendshape node. The names of the inbetween shapes will be, for example, jawOpen_inb25, jawOpen_inb50, jawOpen_inb85 ( value 0.25, 0.50, 0.85 ).
With the button "Connect", we can reconnect the blendshapes to the old base mesh. We may add, modify or correct the mesh inside the group.
thanks to Leonardo Viti modeler