SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 30-09-2006, 04:45 AM   #1
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default radio buttons

I'm trying to figure out how to use radio buttons. I've got it part of the way in the attached script, but can't get it to query the label.

Can that be done?

Thanks
Attached Files
File Type: mel radiomenu3.mel (620 Bytes, 16 views)
Dann is offline   Reply With Quote
Old 30-09-2006, 05:39 AM   #2
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I've had a quick look and I can't get it to return the label name either. I did get it to return the selected one though:

string $radioValue3 = `radioButtonGrp -q -sl radioOptions`;

It's weird though, it looks like it should work the way you had it.




A
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 30-09-2006, 11:26 AM   #3
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Yeah, I had it working that way too. I'm thinking maybe radio buttons can only retun numeric values. S'ok, I'm just going to work around it.

int $radioValue = `radioButtonGrp -q -sl radioOptions`;
string $radioAction;

if ($radioValue == 1)
{ $radioAction = "Field Of Pain"; }
else
{ $radioAction = "All Other Boxes"; }

print ("Running the procedure on " + $radioAction +"\n");

Thanks for looking though. Nice to know it wasn't just me. :p
Dann is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

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

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.