The brackets were causing Maya to misread the number of arguments you were trying to pass.
$Angle250Minimum = 2*(sinh(($Ligger250/2)/($StellingMinimumAfstandStraal + $StellingBreedte)));
I deleted those two red brackets and the error was gone.
Wow too fast again. the calculation is incorrect now. 
this is how the formula should look like. (colord the brackets to see better wich ones go together)
$Angle250Minimum = 2*(sinh(($Ligger250/2)/($StellingMinimumAfstandStraal + $StellingBreedte)));
ok i can drop the green ones but i place them so i can see clearly what is all used for the sinh calculation.
i think i just have to live with the fact that i have to redeclare some variables as floats again where needed.
by changing
Code:
$StellingMinimumAfstandStraal = `floatSliderGrp -q -value MinimumAfstand`;
to
Code:
float $StellingMinimumAfstandStraal = `floatSliderGrp -q -value MinimumAfstand`;
while $StellingMinimumAfstandStraal is already decleared at the beginning of the script as a float.
anyway, thanks for you time.
There are no stupid questions, only stupid answers.
© All grammar errors are Copyrighted to me 
Last edited by jouri; 20-11-2011 at 06:34 PM.