Forums > MaxMSP

Feature request — polygon transparent buttons

October 12, 2007 | 2:33 am

If there’s something I’m missing here, please enlighten. I was just working with Flash and even though I greatly prefer Max for most things, the ability to draw hotspots of any shape is certainly useful…

I realize one can use a mousestate with the correct parameters and some comparators, but that’s more work and not nearly as intuitive as drawing hotspot shapes.

Along those lines, it would be great for the transparent button to have an indication on rollover and rollout — a fifth outlet with 1 and 0 ?

–CJ


December 22, 2007 | 5:39 pm

You could use the JavaScript object within MaxMSP to do complex shapes like that.

With is you could create the shapes by giving it XY coordinates manually, or create your own drawing system if you needed a hand drawn control.


December 22, 2007 | 9:27 pm

an example ?


December 22, 2007 | 9:42 pm

Quote: Kyred wrote on Sat, 22 December 2007 14:27
—————————————————-
> an example ?
—————————————————-

Check out the "JavascriptInMax.pdf" that comes with MaxMSP documentation. In there is a section on "jsui, Sketch and OpenGL" that will get in depth.

For a live example open the jsui.help file. In there are plenty of complex examples of how to draw and updated drawings via jsui. Send the message "open" to any of those objects and it will show you the JS code.

Good luck, hope this helps.


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