View Full Version : having trouble understanding textFieldGrp

02 February 2008, 01:06 AM
I'm trying to simple send the input in the textFieldGrp to a procedure, that needs to run as soon as the string is typed. and/or make a button that would change it.

textFieldGrp -cc "$bname = #1; makeWall($bname, $lngth, $wdth, $hght);";

intSliderGrp -field 1 -min 1 -max 20 -v 1 -cc "$lngth = #1; makeWall($bname, $lngth, $wdth, $hght);";

the intSlideGrp works like a charm, and am looking for the same result to my textFieldGrp. If someone could explain to me how the #1 works i would be very thankful. btw this is my first script so excuse me knowledge ;)

02 February 2008, 01:37 AM
-label "Group 1"
-text "Editable"

If you want "Editable" to be sent to the procedure, then type as follows:

textFieldGrp -q -text textFieldName;

What this is doing is it's querying (-q) the text that's in the text field. TextFieldName is just the internal name I gave it.

CGTalk Moderation
02 February 2008, 01:37 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.