Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 25-02-2004, 01: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

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.