Carriage Return, or newline to message box

    Jul 26 2013 | 11:21 am
    I have a multislider with the bars running from left to right. I want to have the output values in a column just to the left of the multislider with each successive value beginning on a new line. This is so the respective sliders each have their numeric value (ints) immediately to the left of the root of the sliders.
    I've done quite an exhaustive search of the forums and cycling74 site, and came up with "close, but no cigar." I tried the 10->itoa, but message doesn't know what to do with it. Does anyone know how I might lace the newline between all the slider values to produce this list ?
    It seems like doing it with JS may be only appropriate way, but either way, I don't know what the character is which would still allow the message box to cr between all the values.

    • Jul 26 2013 | 7:45 pm
      I'm sure you were looking for a less brute force approach, but text handling in Max is pretty rudimentary.
    • Jul 28 2013 | 9:19 pm
      Do you need to set the size of your [multislider] to something weird? If not you could use a [message] box to display the values (setting the background to transparent) and then a [sprintf %.2f %.2f %.2f] to set the number of decimal places you want and the number of sliders you have.
    • Jul 28 2013 | 9:49 pm
      Using only int values, but they could be 1, 2, or 3 digits. I was trying to find a way to insert a newline character after each number. I've been unsuccessful. So, 100 sliders in a multislider (again, horizontally oriented) have basically labels next to each slider like labels for the current values for each slider.
      @Chris : I'm about to see what your patch does. Thanks.
      and thank you as well, Luke.
    • Jul 28 2013 | 10:43 pm
      @Chris : I set your solution up. . . oh my gosh ! Brute force is right !! :-O I try to keep my # of objects to a minimum, so I don't think I'll use that method
      @ Luke : I'd still like to find a better way . . . is the message\sprintf the only other way ? I haven't tried it yet, but while I try that.