I have a problem. I am writing a Python-Maya script. I'm trying to extrude a list of objects to another list of objects, but I get the following error when I try to do it(the error is not the line where I start the for loop):
Error: line 1: TypeError: file <maya console> line 45: range() integer end argument expected, got list.
#
def extrude_():
for i in range(listOfCircles):
mc.select(listOfCurves[0], all=True)
mc.select(listOfCircles[0], all=True)
mc.extrude(listOfCurves[0]+str(i), listOfCircles[0]+str(i), et=2)
return
listOfCircles and listOfCurves are global variables, so I don't think I need to pass them to the function..