Created
November 24, 2015 10:21
-
-
Save internetimagery/6ec1bc63063600452c95 to your computer and use it in GitHub Desktop.
Turning Mayas twin list output into a dictionary
This file contains hidden or 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(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