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?
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.
Cool, thanks. Got it working.
Log in to reply
SUBSCRIBE TO OUR NEWSLETTER
C74 RSS Feed | © Copyright Cycling '74