CODE
{string $window = window
;
columnLayout;
floatFieldGrp -numberOfFields 3
-label "Scale" -extraLabel "cm"
-value1 0.3 -value2 0.5 -value3 0.1
floatGroup;
showWindow $window;
$value = floatFieldGrp -q -v floatGroup
;
print ($value);
}
This is an example from the MEL Docs...I added the $value attribute and the print line, but this will give you the results from all float fields within the group. Open the script editor, paste this in, and execute. In the return line, you'll see it printed three values... 0.3, 0.5 and 0.1. Which, are the corresponding values to the first, second and third float field.
So, now the values can be called or put into other equations as follows:
$value[0] = 0.3
$value[1] = 0.5
$value[2] = 0.1
Or, to return specific floatField values only, instead of all 3, just change the above $value attribute to read as follows:
To return the first group:
CODE
$value = floatFieldGrp -q -value1 floatGroup
;
To return the second group:
CODE
$value = floatFieldGrp -q -value2 floatGroup
;
etc...