Cannot convert data of type float[] to type float ---- Annoying!


#1

What is wrong with this line of code?

Maya 2020 gives me this error. By the way, the script works just fine on Maya 2014.

Error: line 361: Cannot convert data of type float[] to type float.

/----------------------------------------

    float $szeA = `getAttr ($sel[1]+".tx")`;
    float $szeB = `getAttr ($sel[2]+".tx")`;
    float $fkRad = ($szeA+$szeB)/8;
    float $ikRad = ($szeA+$szeB)/6;
    float $secRad = ($szeA+$szeB)/12;
    float $movSze =($szeA+$szeB)/4;

/-----------------------------------------