Home:ALL Converter>TypeError: unsupported operand

TypeError: unsupported operand

Ask Time:2019-11-18T06:19:17         Author:Megan Lucas

Json Formatter

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)

Author:Megan Lucas,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/58905756/typeerror-unsupported-operand
yy