CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 04-24-2009, 01:26 PM   #1
Geuse
Expert
 
Geuse's Avatar
portfolio
Dag
Sweden
 
Join Date: Apr 2006
Posts: 521
Send a message via MSN to Geuse
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;"



Code:
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-24-2009, 01:26 PM   #2
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:51 AM.


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