How to get a PNG Knob Filmstrip into UI
-
Hello, I'm trying to experiment with knobs from Knobman. I loaded a knob to thei mage below, but it's not changing the knob in the UI after compiling. The file is a PNG file and it's inside the project folder. What am I missing? Thank you!
-
@pgaudioworks Set the numStrips property
-
@d-healey what's the correct number to put in here?
Btw, I'm a patron of yours now. Looking forward to learning lots!
-
what's the correct number to put in here?
The number of frames you have in your image.
Here's how to do it for a button. Same thing applies:
-
@d-healey exactly what I needed. Thank you David!
-
@pgaudioworks One trick I have learned if you download UI knobs and they do not come labeled with # of frames. Is to look at the pixel size of the image and divide height by the width. Just how David made his knobs in the video. Great work!
Example: Filmstrip size is 43x2752 2752/43 = 64 frames
Most prob knew that one, but it has allowed me to use some more options.