texfieldgroup questions

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 04 April 2009   #1
texfieldgroup questions

Hi, I'm trying to write a UI and wanted to add some textfields with associated button to load in the selected objects. I found this thread which is closed http://forums.cgsociety.org/showthr...p?f=89&t=369792 but I had some additional questions so that's why I started this one.

What I wonder is if I intend to create 5 textfieldsgroups on top of each other should I just copy this code 4 times or can I reuse the variables and make it cleaner and nicer?
I assume I must give each textfield a different name to be able to query their text so I guess I can't do much about that. So beginning with Line 5, I need to copy the code and then create 4 additional stringNames to put at the top below the first "string $controllerNameTextField;"



string $controllerNameTextField;
                  string $controllerNameButtonCommand[] = `ls -sl`;
                  string $replacement = $controllerNameButtonCommand[0];
                  
                      $controllerNameTextField = `textFieldButtonGrp
                      -label "Foot Control Name"
                      -text $replacement
                      -buttonLabel "set"`;
   
                     textFieldButtonGrp -edit -buttonCommand $replacement $controllerNameTextField; 


thanks
 
Old 04 April 2009   #2
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 12:44 PM.


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