Skip to content

Instantly share code, notes, and snippets.

@internetimagery
Created November 24, 2015 10:21
Show Gist options
  • Save internetimagery/6ec1bc63063600452c95 to your computer and use it in GitHub Desktop.
Save internetimagery/6ec1bc63063600452c95 to your computer and use it in GitHub Desktop.
Turning Mayas twin list output into a dictionary
import maya.cmds as cmds
sel = cmds.ls(sl=True)
conn = iter(cmds.listConnections(sel, c=True))
conn = dict(zip(conn, conn))
print conn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment