Main
|
Resume
|
Showreel
|
Blog
|
Script
|
Contact
connexion
go to footer
expand all
|
collapse all
languages
class
All
JScript|XSI
Python|XSI
JScript|WEB
Python|Maya
All
Memo
learning
DDD
php
tool
keyboard tooltips
rig
MultiCopy Skin
- tool - felixlecha
# MultiCopy Skin import maya.cmds as mc # select all obj to skin like at last the source object selection = mc.ls(sl=True) source_mesh = selection[-1] meshs_to_skin = selection[0:-1] # - Get skinCluster source_skinCluster = mc.ls(mc.listHistory(source_mesh, pdo=1, gl=1), type='skinCluster') [0] # - Get skin joint lJnt = mc.skinCluster( source_skinCluster, query=True, inf=True ) for item in meshs_to_skin: target_skinCluster = mc.skinCluster( lJnt, item, dr=4, tsb=True, nw=1 )[0] mc.copySkinWeights( ss= source_skinCluster, ds= target_skinCluster, nm= False, ia='closestJoint', sa='closestPoint' ) print "done !"