I am trying to make variables with variables in their name. Is there any way to 
this? Or a better way. Right now I'm getting "# Error: can't assign to operator 
# SyntaxError: can't assign to operator #."

This is a simple case but it will get much longer and I'd rather not have to 
have a big list of variables.

"""

import maya.cmds as cmds
import string

fingers = ["index", "middle", "ring", "pinky", "thumb"]
allTheLetters = string.uppercase

for finger in fingers:
    for letter in range(4):
        "%s%s" % (finger, allTheLetters[letter]) = "%s%s_" % (finger, 
allTheLetters[letter])

"""

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/1e09d1f7-e7ab-4f36-a7db-21bfaf0fd3e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to