Image buttons.

I'm trying to create image buttons for a rollout I'm creating and I'm not getting the correct results based on what the help file is saying.

I'm just trying to make a simple image button with a mask and its not coming out right at all. Its not taking into account the mask I have it targeting. Its just a black and white image 16bit bmp file.
Its not affecting the image at all.
Does it matter what color the background of the diffuse image is?
I have tried several different image types and formats but nothing is working.
I'm assuming something got changed in the newer versions of max. The help file does not seem to explain it very well.
And the few times it almost started to work it had a very spotty look.
Do I need to be using certain colors as well to make the diffuse?
I'm not sure if it's suppose to be a bitmap or png and then 8 bit or 16, and if it matters where the image is saved. Also if it matters what color the background is on the diffuse part of the thumbnail.

checkButton chk_test checked:true images:#("image.bmp", "mask.bmp", 7, 7, 7, 7, 7)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
othoap's picture

Button templete

joker,

I notice your spacing was not even. Each button image should be spaced every 16 pixels.
I hope this helps. If not send me the art.

AttachmentSize
buttons2_16.zip 19.52 KB
maxscriptbtnart01.jpg 180.18 KB
miauu's picture

I use only max2009 and all

I use only max2009 and all images for toolbar buttons are .bmp(color images and alphas).
One suggestion - go to maxroot/ui/icons and get, for example, Xrefs_a.bmp and Xrefs_i.bmp. Open them in photoshop and draw your new icons. Replace the original Xrefs_a.bmp and Xrefs_i.bmp(make backup befor doing that) and use them in your code.

Sory for my english.

JokerMartini's picture

Didn't work

Even when I did that it didn't work.....?

Whats the file types and modes I need to save the images out as. And does it matter where I have the images.

And what color does the background need to be on the diffuse image.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

miauu's picture

The mask is wrong. The white

The mask is wrong. The white area must be black and the black must be white.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.