Hey guys and gals,
I am wrote a script that creates a hirarch of groups and want to add a UI that lets the user enter a name for the groups. I don’t understand how to geht the test out of my textfield though. The name of the thextfield is passed on the the second procedure correctly but i allway get an error. I am sure the solution is quite simple, I can’t figure it out myself though. I’d appreciate if someone coule help me.
global proc jl_groupHirarchyUi ()
$win = “jl_groupHirarchyUI”;
window -exists $win)
window -title “Named Group Hirarchy” $win;
columnLayout -adj true;
//save name of textfield to variable
textFieldGrp -l "Character Name:" -text "Editable";
//create button with function $button = `button -l "Go" -c ("checkText\" "+$textFieldName+"\"")`; showWindow $win;
global proc checkText (string $cN)
// get the results
$cN is: " + $cN + "
textFieldGrp -q -tx $cN;
//execute procedure that creates group hirarchy $cmd = ("jl_groupHirarchy"); evalEcho $cmd;