LarssonGU
hi guys, 

im setting up a reverse footlock, its just a tiny question i have here, I basically want to parent the locators under eachother, from the end of the list to the other, but it errors out and says 

 
I can sort of understand why but I don't know how to fix it. 

footLocatorNames = ['r_ballRoll_LOC',  'r_toeRoll_LOC', 'r_heelRoll_LOC', 'r_footRollIn_LOC', 'r_footRollOut_LOC']
 
            for number, item in enumerate(footLocatorNames):
                tempName = cmds.parent(item, footLocatorNames[number+1])


# Error: list index out of range

can anyone help me, so it doesnt error?

thanks!
 
Reply 0 0
LarssonGU
nevermind ><


footLocatorNames = ['r_ballRoll_LOC',  'r_toeRoll_LOC', 'r_heelRoll_LOC', 'r_footRollIn_LOC', 'r_footRollOut_LOC']
 
for number, item in enumerate(footLocatorNames):
    if item == footLocatorNames[4]:
        break 
    tempName = cmds.parent(item, footLocatorNames[number+1])



Reply 0 0
Reply