mapping pictslider to nodes

Mar 2, 2012 at 10:23pm

mapping pictslider to nodes

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 2, 2012 at 10:51pm

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 2, 2012 at 11:00pm

Cool, thanks. Got it working.


You must be logged in to reply to this topic.