PDA

View Full Version : texfieldgroup questions


Geuse
04-24-2009, 02:26 PM
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/showthread.php?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

CGTalk Moderation
04-24-2009, 02:26 PM
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.