PDA

View Full Version : MEL script to toggle pick chooser for selection?


cgbeige
01-02-2009, 07:35 PM
I often have to open the app prefs to change this and I'm wondering if there is a simple command to toggle the pick chooser on/off. Or is there some sort of drill-down selection modifier that I'm not aware of?

mlefevre
01-02-2009, 10:44 PM
Hallo!

You could copy this code into your script editor, and middle mouse button drag it onto your shelf. Clicking the shelf button will subsequently toggle the 'Pick Chooser' on/off.


int $pickChoo = `selectPref -q -popupMenuSelection`;

if ($pickChoo == 0)
selectPref -popupMenuSelection true;

if ($pickChoo == 1)
selectPref -popupMenuSelection false;

Hope that helps.

-mlefevre

cgbeige
01-03-2009, 01:19 AM
will you marry me?

you should put that on highend3d - I'm sure a lot of people would find it useful

daisukem
01-03-2009, 05:15 AM
I often have to open the app prefs to change this and I'm wondering if there is a simple command to toggle the pick chooser on/off. Or is there some sort of drill-down selection modifier that I'm not aware of?

what's an app pref? how do I get to it?
Also what is the pick chooser?

>_< cheers.

cgbeige
01-03-2009, 05:22 AM
Application Preferences. The pick chooser lets you click on a bunch of objects and select one of them from a popup list. It's needed if you have a lot objects overlapping. But it's annoying to always have on if you don't need it. That's why I wanted this script.

CGTalk Moderation
01-03-2009, 05:22 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.