mapping pictslider to nodes

    Mar 02 2012 | 10:23 pm
    I'm trying to get the knob in nodes to control the one in pictslider so it shares the same visual position. But I'm not having any luck converting the coordinate system. Does anyone know the best way to approach this?

    • Mar 02 2012 | 10:51 pm
      The nodes object uses normalized coordinates [0.....1.] across the x and y dimensions. Left top is 0.,0. and bottom right is 1.,1.
      The default range for pictslider is 0-127, with 127 at the top and 0 at bottom. So, in order for the locations to match, you need to scale the values and then flip on the y axis.
    • Mar 02 2012 | 11:00 pm
      Cool, thanks. Got it working.