| Item | Quantity | Price |
|---|
| Your cart is empty. Check out our collection of 3d models! |
Prices in:
Clear Cart
Home » Forums » Maya Boards » MEL » question on querying my UI Topic 192 of 7506
textField -query -text $address;
| Item | Quantity | Price |
|---|
| Total | $0.00 (USD) | ||
| Your cart is empty. Check out our collection of 3d models! | |||
Prices in:
Clear Cart
| Name | Downloads |
|---|---|
TrueGlass |
846,090 |
detachSeparate.mel |
837,168 |
The Andy Rig |
618,068 |
Sergio |
467,284 |
LWOImpR4-R5_043 |
431,551 |
Tiny |
339,611 |
Smedge .6 |
208,192 |
Ocean Shader |
183,764 |
silver shader |
179,890 |
At The Sea |
163,209 |
| Name | Contributions | Posts |
|---|---|---|
| humster3d | 2220 | 2 |
| squir | 1329 | 0 |
| Pupuhol | 967 | 0 |
| KanhtArt | 857 | 0 |
| GuamWork | 854 | 0 |
| admin | 778 | 21232 |
| rose studio | 655 | 0 |
| stefano tartarotti | 616 | 0 |
| VKModels | 455 | 1 |
| fileadmin | 424 | 0 |
I'm a noob at Ui's. I can't figure out how to query certain things. For instance the below script is directly from the Maya help for "textFields".... I can't figure out how print the address, or perhaps the name field. I've been searching online for explanations but none seem to work for me. I'm sure its simple. I've been successful in querying numbers, but when ever i have a field with text in it I get lost.
If someone could query the address field in this example properly for me, I'm sure i could figure it out from there. Thanks in advance!
///////////
// Create a window with a some fields for entering text.
//
string $window = `window`;
rowColumnLayout -numberOfColumns 2 -columnAttach 1 "right" 0
-columnWidth 1 100 -columnWidth 2 250;
text -label "Name";
string $name = `textField`;
text -label "Address";
string $address = `textField`;
text -label "Phone Number";
string $phoneNumber = `textField`;
text -label "Email";
string $email = `textField`;
// Attach commands to pass focus to the next field if the Enter
// key is pressed. Hitting just the Return key will keep focus
// in the current field.
//
textField -edit -enterCommand ("setFocus " + $address) $name;
textField -edit -enterCommand ("setFocus " + $phoneNumber) $address;
textField -edit -enterCommand ("setFocus " + $email) $phoneNumber;
textField -edit -enterCommand ("setFocus " + $name) $email;
showWindow $window;
///////////////