Iīm trying to get the value from my float field and use it in an equation, but it doesnīt work. If I query it directly in my equation I get "// Error: Cannot use data of type no type in a scalar operation. // ". Why is it "no typ"? If I use a float field, shouldnīt it return a float?
I tried making it like this and all I get is 0 in $heightMultiplier. Donīt mind the structure of the code, just copied the important parts.
floatFieldGrp -label "Height Multiplier"
float $heightMultiplier = `floatFieldGrp -query "heightMultiplier_FFG"`;
$height = rand(0.75,1.1) * $heightMultiplier;
What am I not understanding here?