Max object for rotating a dial image?

dhjdhjdhj's icon

I'm creating a max patch to control a Moog MIDIMuRF. I'd like to use photorealistic images. I was able to use the pictsldr object for the filter sliders with no problem, using photoshop to extract the slider knob from the background etc.

However, it's not clear to me how to handle rotating dials. I was hoping for the equivalent of of pictsldr that could just rotate a PNG image but I can't find anything. Anyone know of such an object?

Thanks,
D

balam's icon
dhjdhjdhj's icon

I don't understand how that applies --- I was hoping to actually rotate a single PNG image.

bkshepard's icon

I don't think you can just rotate a single PNG image. With [pictctrl], you create a single image that has a succession of images of the dial at different angles. Then as you move the dial, the [pictctrl] object smoothly moves from one image to the next. Take a look at the dial in the [pictctrl] help window for an example. If you open the Inspector for that [pictctrl], you will find that it is using an Image File called "AS_knob2.pict" as it's source. Do a search for that file and you can open it with a graphic editor to see how it looks. It's a bit of a pain to create all the images, but it works quite well.

Medd's icon

I use Knobman to create the stitched images described above. It's a Windows app but I've used Wine Bottler to have it on hand at all times. It makes the process really straightforward.

balam's icon

that Knobman looks really good.
winebottler so far the best win emulator.

Roman Thilenius's icon

theoretically you should be able to use the [imovie] object to rotate a picture, but 1. that would be without any interpolation and 2. it is a mess to find out how to use the coefficients.

look into the jsui examples or stay with rendering it in photoshop.

-110