Forums > MaxMSP

simple svg buttons

June 21, 2013 | 1:38 am

I was trying to make a simple picture button from an svg and can’t see an easy way to do it.

pictctrl is a pain and looks bad when you zoom and an size adjustments require a round trip to photoshop. An svg button could be resized at will just like other UI objects. Ideally it would also be very configurable in the inspector (everything solid in the svg could be colored using "textcolor", everything transparent would show through to "bgcolor", a border could be specified as well as hover and mouseDown colors for all the above).

JSUI and the svg_render functions of jit.mgraphics are too much work for a simple button or interface graphic.

It seems that this would be easy to implement as several of the M4L live.xx objects let you use svg files. I like the look and workflow of these UI elements so much that even though I don’t have M4L I keep using them in my patches. But even with the M4L UI objects I don’t see a simple svg button, just a version of umenu and tab that take svgs.

Also the Max authoring interface makes extensive use of svgs. I wanted to quickly re-purpose reload.svg for a button in my interface. I think Max should provide a folder full of SVGs for using in UIs that are easily configured with the inspector, as well as make it easy to add your own.

Does this already exist and I’m missing it? I did some forum searches and found several requests for simlar functionality and some of the above-mentioned workarounds, but no satisfying solution.

-bob


Viewing 1 post (of 1 total)