So first off I can't express to you all how rookie I am at scripting. I have been an artist for a while and I wanted to get inito some light scripting to help me on my day to day. So here is my first question.
Say I wanted to setAttr for say Translate X = 5 for evey light in my scene. I figure I need to create a list from a selection.... no? But I am having trouble with the syntax.
cmds.select ("spotLight")
cmds.ls(selection=True)
lights = cmds.ls(selection=True)
print light
## This is where I get tripped up.
for count in range(len(lights)):
cmds.setAttr ('?.translateX', 5)
Also it looks like both the DAG and Shape are selected. Will this mess anything up?
Any suggestions would rock!