MEL GUI - select-object-buttons

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 06 June 2013   #1
MEL GUI - select-object-buttons

Hi!

i have the following code.
I tried to insert a second button (so each button can select one mesh) with the scriptCtx but all i get is an error.

Can anyone help me?

 window;
columnLayout;
button -c "setToolTo selectedMesh" mySelectObjectButton;
 
showWindow;
 
scriptCtx
-title "selectedMesh"
-totalSelectionSets 1
-finalCommandScript "button -e -label $Selection1[0] mySelectObjectButton"
-cumulativeLists true
-setNoSelectionPrompt "Select an object"
-setAutoToggleSelection true
-setSelectionCount 1
-setAutoComplete true
-allObjects true
selectedMesh;
 
Old 06 June 2013   #2
it'd help if you showed the specific code that got the error and or mentioned the specific error that you got.
__________________
blah blah blah
 
Old 06 June 2013   #3
i tried different variations.
Do you know how to expand the script or duplicte the scriptCtx for a second "select a mesh"-button?
 
Old 06 June 2013   #4
Originally Posted by fmasur: i tried different variations.
Do you know how to expand the script or duplicte the scriptCtx for a second "select a mesh"-button?


Is this what you are trying to do?

window;
columnLayout;
button -c "setToolTo selectedMesh" mySelectObjectButton;
 button -c "setToolTo selectedMesh" mySelectObjectButton2;
 
showWindow;
 
scriptCtx
-title "selectedMesh"
-totalSelectionSets 1
-finalCommandScript "button -e -label $Selection1[0] mySelectObjectButton"
-cumulativeLists true
-setNoSelectionPrompt "Select an object"
-setAutoToggleSelection true
-setSelectionCount 1
-setAutoComplete true
-allObjects true
selectedMesh;
__________________
blah blah blah
 
Old 07 July 2013   #5
Yes, thats is what i am searching for.
Do you know how to solve this?
 
Old 07 July 2013   #6
Originally Posted by fmasur: Yes, thats is what i am searching for.
Do you know how to solve this?


well does the code I pasted there not work for you?
__________________
blah blah blah
 
Old 07 July 2013   #7
Thread automatically closed

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.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:55 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.