Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewtConroy/b95e3c4af2458264589f7acb66f0f5cf to your computer and use it in GitHub Desktop.
Save AndrewtConroy/b95e3c4af2458264589f7acb66f0f5cf to your computer and use it in GitHub Desktop.
Match SkinWeights
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)
@AndrewtConroy
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment