# Quick select Refresh button #MEL

**URL:** https://forum.highend3d.com/t/quick-select-refresh-button-mel/161535
**Category:** Maya
**Created:** [November 19, 2019, 9:14am UTC](https://forum.highend3d.com/t/quick-select-refresh-button-mel/161535 "2019-11-19T09:14:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jayantbhatt007](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/94ad74/32.png) [@jayantbhatt007](https://forum.highend3d.com/u/jayantbhatt007)
#### Post date: [November 19, 2019, 9:14am UTC](https://forum.highend3d.com/t/quick-select-refresh-button-mel/161535/1 "2019-11-19T09:14:29Z")

</div>

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?

## //\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*//

## // script written : Sudeepth Patinjarayil //

## // Works in : Autodesk Maya 8.0 //

## // Pourpose : Quick Selection Sets window //

## // Exicution : type selectionset\_list in command line //

## // Date : 08-15-2009 //

## //\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*//

## global proc selectionset\_list ()

## {

## if (`window -ex list_sel_set`){deleteUI -window list\_sel\_set;}

## 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`;

## frameLayout -l “”;

## columnLayout -adj true;

## text -l "Quick Selection Sets : ";

## textScrollList -w 100 -h 157 -allowMultiSelection false -sc “sel\_set” tsl\_sel\_list;

## string $char[] = `ls -sets `;

## for ($each in $char)

## {

## if (`sets -q -t $each` == “gCharacterSet”)

## {

## textScrollList -e -append $each tsl\_sel\_list;

## }

## }

## button -l “Create Quick Selection Set” -c “make\_set”;

## button -l “Refersh List” -c “relaod\_list”;

## button -l “Delete” -c “del()”;

## setParent..;

## showWindow list\_sel\_set;

## }

## global proc relaod\_list ()

## {

## textScrollList -e -ra tsl\_sel\_list;

## string $char[] = `ls -sets `;

## for ($each in $char)

## {

## if (`sets -q -t $each` == “gCharacterSet”)

## {

## textScrollList -e -append $each tsl\_sel\_list;

## }

## }

## }

## global proc make\_set ()

## {

## CreateQuickSelectSet;

## }

## global proc sel\_set ()

## {

## string $sel\_list\_selection[] = `textScrollList -q -si tsl_sel_list`;

## select -r $sel\_list\_selection;

## }

## proc del()

## {

## string $selSet[] = `ls -sets`;

## delete $selSet;

## }

---

<div class="post-metadata">

### Author: ![system](https://forum.highend3d.com/user_avatar/forum.highend3d.com/system/32/59311_2.png) [@system](https://forum.highend3d.com/u/system)
#### Post date: [April 2, 2022, 7:01pm UTC](https://forum.highend3d.com/t/quick-select-refresh-button-mel/161535/2 "2022-04-02T19:01:12Z")

</div>

This topic was automatically closed after 865 days. New replies are no longer allowed.
