Copy skincluster to many
unknown
plain_text
9 months ago
435 B
8
Indexable
def copy_skin(selection):
skincluster = [x for x in mc.findDeformers(selection[0]) if mc.objectType(x) == "skinCluster"]
inf = mc.skinCluster(skincluster, q=1, inf=1)
for i in selection[1:]:
mc.skinCluster(i, inf, tsb=1)
mc.copySkinWeights(selection[0], i, noMirror=1, surfaceAssociation="closestPoint", influenceAssociation="oneToOne")
selection = mc.ls(sl=True)
copy_skin(selection)
Editor is loading...
Leave a Comment