mapping pictslider to nodes

dblondin's icon

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?

Andrew Benson's icon

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.

AB

dblondin's icon

Cool, thanks. Got it working.