Created
November 12, 2013 19:17
-
-
Save tokejepsen/7436988 to your computer and use it in GitHub Desktop.
blendshape swap
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 | |
sel=cmds.ls(selection=True) | |
src=sel[0] | |
trg=sel[-1] | |
for plug in cmds.listConnections(src+'.worldMesh[0]',plugs=True): | |
cmds.connectAttr(trg+'.worldMesh[0]',plug,force=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment