Home Coding, Scripting, Shaders

quick select Refresh button #MEL

polycounter lvl 8
Offline / Send Message
Pinned
jayantbhatt007 polycounter lvl 8

Hi I'm trying to  modify very old sript which I found on highend 3d. It's working fine but that refresh button is very annoying, evertime I have to press refresh button If I do any changes in the quick set settings?

 

 

<p>//**********************************************************************************//<br>// script written : Sudeepth Patinjarayil //<br>// Works in : Autodesk Maya 8.0 //<br>// Pourpose : Quick Selection Sets window //<br>// Exicution : type selectionset_list in command line //<br>// Date : 08-15-2009 //<br>//********************************************************************************//</p><p>global proc selectionset_list ()<br>{<br>if (`window -ex list_sel_set`){deleteUI -window list_sel_set;}<br>string $sel_list_win = `window -te 42 -le 161 -title "Selection Sets" -wh 169 269 -tb 1 -tlb 1 -mnb 0 -mxb 0 -s 0 list_sel_set`;<br>frameLayout -l "";<br>columnLayout -adj true;<br>text -l "Quick Selection Sets : ";<br>textScrollList -w 100 -h 157 -allowMultiSelection false -sc "sel_set" tsl_sel_list;<br>string $char[] = `ls -sets `;<br>for ($each in $char)<br>{<br>if (`sets -q -t $each` == "gCharacterSet")<br>{<br>textScrollList -e -append $each tsl_sel_list;<br>}<br>}<br>button -l "Create Quick Selection Set" -c "make_set";<br>button -l "Refersh List" -c "relaod_list";<br>button -l "Delete" -c "del()";<br>setParent..;<br>showWindow list_sel_set;<br>}</p><p>global proc relaod_list ()<br>{<br>textScrollList -e -ra tsl_sel_list;<br>string $char[] = `ls -sets `;<br>for ($each in $char)<br>{<br>if (`sets -q -t $each` == "gCharacterSet")<br>{<br>textScrollList -e -append $each tsl_sel_list;<br>}<br>}</p><p>}</p><p>global proc make_set ()<br>{<br>CreateQuickSelectSet;<br>}</p><p>global proc sel_set ()<br>{<br>string $sel_list_selection[] = `textScrollList -q -si tsl_sel_list`;<br>select -r $sel_list_selection;<br>}</p><p><br>proc del()<br>{<br>string $selSet[] = `ls -sets`;<br>delete $selSet;<br><span>}</span></p>

Sign In or Register to comment.