Character selection UI buidler?

any tutorial on making a character selection UI buidler which i can link to image files?
like i have a rendered image of my charcter, and i want to make a window that display that image and when i click on different parts of it, it will select the parts i need?

i'm sure i saw at least one page b4, but i can't can't find it now after 2 hours of searching....

can anyone help?

Hi,

What are the image files you want to use like?
If you mean to use an image file like Shelf Button, I think the UI that you want to create is easily achievable with use of "shelfButton" Mel Command.
e.g.)shelfButton -i1 "chara1.bmp" -c "select -r chara1";
I hope this thread helps you.

*Maya4.5 on NT ~takigawa

I think the one you saw was at:
http://www.ewertb.com/maya/mel/mel\_a64.html

If not, it's worth taking a look at.

--g

thanks this is exactly what i'm looking for!!!!!
thanksssss

another question is: ok this is a MEL which define a proc

how can I make maya source this MEL everytime at startup?

i'm a non=programmer but it's very simple to follow this script
and now i have the basic layout with buttons

but it didn't tell :
1) how to attach MEL to a button on the window
2) how to set the button size other than the default size
3) how to set the color OR use an image to represent that button, instead of a ugly grey button
4) i saw in ADV. skeleton UI window that it has an rectangle area that u can drag and drop shelves MEL item onto it, any idea how to do that?

thanks in advance

go to your scripts folder and look for userSetup.mel
if you don't have one just make it, write inside that all
the mel commands you want to make at startup.

example

source myScript.mel;
myScript.mel;

then you must save it as userSetup.mel

hope it helps

1) to attach a button to the window with complete control over where it is located, use a formLayout.
2) to set the button size use the -h and -w flags on creation of the button. ex: string $myButton = button -l "My Button" -h 35 -w 150;
3) if you are using Maya 4.5 you can set the background color of the button, you will need to look up how to do this in the docs, as I haven't done it yet. If you are using Maya 4.0x you can't change the color, but you could use a symbolButton to place an image on the button.
4) look up the "myshelf.mel" from Bryan Ewert. This is a floating shelf window.

thanks for the reply

i have more idea now

actually for 1) , ok now i got buttons, how i can assign functionality(should be MEL) to that button?

Use the -c flag. This attaches a command to be executed when the button is pressed.

ex:
string $mhEmitterHelpBut = button -l "Create Emitter Helper" -h 35 -w 150 -command "mhAddEmitterHelper";