Skip to content

Instantly share code, notes, and snippets.

@tokejepsen
Created November 12, 2013 19:17
Show Gist options
  • Save tokejepsen/7436988 to your computer and use it in GitHub Desktop.
Save tokejepsen/7436988 to your computer and use it in GitHub Desktop.
blendshape swap
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