simple svg buttons

    Jun 21 2013 | 8: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.

    • Jan 04 2015 | 4:50 pm
      This is an old thread, but I just had the same question and found the answer, so for the sake of the forum archives: Use the live.text object. It has an option to use images rather than text, and it supports .svg files.
    • Jul 16 2017 | 8:16 pm
      old thread still serving use. Thanks Dan for the response! Would it be possible to stream the svg numbers into live.text without saving? This is how SVGs work on the web if not mistaken.
    • Jul 16 2017 | 11:53 pm
      I don't believe that's possible, at least from what I know...