I'm having a hard time and get this error when trying to operate.
Error: TypeError: file line 57: unsupported operand type(s) for /: 'float' and 'list'
What am i missing here so i can make an option for users to select a certain amount of joint chains to be distributed into a circle?
def DistributeRad_Chain(): # this is the command option to distribute the chains in a circle if desired
radius= cmds.floatSliderGrp("Radius", query= True, value= True)
sel= cmds.ls(sl= True)
if not sel:
print ('No chain was selected! You need to select 2 chains to start!')
return
angleBetween = 6.28/ sel
currentAngle = 0.0
for i in range(sel):
currentAngle = angleBetween * i
cmds.move(math.sin(currentAngle)*radius, 0, math.cos(currentAngle)*radius, absolute=True)