Created
June 16, 2016 16:42
-
-
Save AndrewtConroy/b95e3c4af2458264589f7acb66f0f5cf to your computer and use it in GitHub Desktop.
Match SkinWeights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import maya.cmds as cmds | |
import maya.mel as mel | |
selected = cmds.ls(sl=1) | |
skinnedMesh = selected[0] | |
skinCluster = mel.eval('findRelatedSkinCluster ' + skinnedMesh) | |
skinnedJoints = cmds.skinCluster(skinCluster,query=True,inf=True) | |
cmds.select(skinnedJoints) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Select a skinned object.
Execute command
Command will select all skinned joints found under that object's skin cluster.
Once joints are selected, you can add them as an influence to another object. This will allow the source skinned object's weights to be copied over to the target object.