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 25-02-2004, 12:59 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 shelf buttons

OK, I hope my miriad of questions isn't bothering anyone, but when I get the bug about learning something new, I keep trying things until something works. Since I don't have anyone at work that knows MEL scripting, I've come to you all.

I'm making an install script that whenever anyone in my office needs the new tools I make, they can run the script. It works, so I'm trying to make it smart and it will only add the buttons that a person doesn't already have. This is what I've tried that doesn't work.

if (!`contextInfo -ex showImagePlane`)
{
shelfButton
-enableCommandRepeat 1
-enable 1
-width 34
-height 34
-manage 1
-visible 1
-label "showImagePlane"
-image1 "showImagePlane.bmp"
-style "iconOnly"
-parent $selTab
-command "showImagePlane;\r\n";
}

Any know why it keeps installing the same buttons and how to get it to do what I want?

thanks again.
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.