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
  06 June 2013
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;
 
  06 June 2013
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
 
  06 June 2013
i tried different variations.
Do you know how to expand the script or duplicte the scriptCtx for a second "select a mesh"-button?
 
  06 June 2013
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
 
  07 July 2013
Yes, thats is what i am searching for.
Do you know how to solve this?
 
  07 July 2013
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
 
  07 July 2013
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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
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 04:07 AM.


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