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....
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.
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?
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.
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.