texfieldgroup questions

Become a member of the CGSociety

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

Thread Tools Display Modes
  04 April 2009
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; 

  04 April 2009
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
Society of Digital Artists

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

All times are GMT. The time now is 02:16 PM.

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