Forums > MaxMSP

Buttons!

December 25, 2010 | 8:56 am

Hello everyone again!
I was wondering if you can make custom buttons in max.
Not with custom images, but with custom shape! I mean, if a want a picture of a tree to be a button, but not the whole rectangle area containing the tree… just the tree!
Yes, you could trace the bounds of the image on the patch, and checking when the mouse is inside the picture…but, i thing it is a little bit…the wrong way!?
Nickolas.

p.s. and merry christmas!!


December 25, 2010 | 8:45 pm

I remember there was an example in one of the Max 4 Help Files, where there was a yellow smiley-face button, you clicked it and a bullet-hole appeared in the forehead. very cute. the point is that it was an image with an image mask, so only the visible (circular) part was clickable.

I think it’s[pictctrl], you can specify that it has an image mask, supply the mask in the proper format (see help file as it needs to be exact). Then you can click just the non-rectangular area.


December 26, 2010 | 2:39 pm

thank you both very much! i think the image mask will do fine!


Viewing 3 posts - 1 through 3 (of 3 total)