martedì 19 novembre 2013

pymel: Rename deformer set

This script allows you to rename the names of the deformer set in relationship editor. The set takes the name of the node deformation linked. In this way, the list is more readable and clean. Bye!
def renameDeformerSet():
    nodes = pm.ls( type = ( "blendShape", "cluster", "wrap", "ffd", "softMod", "nonLinear", "sculpt", "wire", "jiggle" ) )
    for node in nodes:
        set = node.outputs( type = "objectSet")[0]
        set.rename( node.type() + "_" + node.name() )


Nessun commento:

Posta un commento