How to animate custom rotary controllers?


#1

Hello.
I am a complete newbie on this so be prepared… :wink:

I want to design my own UI elements in Photoshop or c4d to use them with juce or jucer.

I am thinking of custum rotary controllers for example.

If i export the animated motion as an image sequence from Cinema 4D
How would i turn my pictures into motion in Jucer or Juce ?

in other words:
How would i get Jucer to step through my image sequence depending on how far the user turns the rotary on screen?

Any hints would be greatly appreciated…
cheers,
dk.


#2

well your component would have to load a bunch of Image objects for the frames, and draw whichever one is correct for the value.

You’d probably want to do a custom component for it, although you could also use the Slider class if you gave it a custom LookAndFeel which drew the images instead of the normal rotary slider graphics.


#3

thanks. that clears up a lot.

Could you give me some example code, or is there a tutorial covering it somewhere?

thanks.
dk.


#4

Haven’t got an example for exactly what you’re doing, but it’s really pretty basic stuff. All the elements of what you need to do, like loading images, drawing them, responding to mouse clicks, etc are done in the juce demo and jucer.


#5

allright ill look in there…
thanks for putting me on the right track…


#6