Ekenryd
11-24-2011, 09:37 PM
Hello
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"
-numberOfFields 1
-value1 1.000
"heightMultiplier_FFG";
float $height;
float $heightMultiplier = `floatFieldGrp -query "heightMultiplier_FFG"`;
$height = rand(0.75,1.1) * $heightMultiplier;
What am I not understanding here?
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"
-numberOfFields 1
-value1 1.000
"heightMultiplier_FFG";
float $height;
float $heightMultiplier = `floatFieldGrp -query "heightMultiplier_FFG"`;
$height = rand(0.75,1.1) * $heightMultiplier;
What am I not understanding here?
