Kodi Community Forum
Spinning "Movie Wheel" Animation Possible? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Spinning "Movie Wheel" Animation Possible? (/showthread.php?tid=289328)



Spinning "Movie Wheel" Animation Possible? - SleepyP - 2016-09-02

I apologize if this post is in the wrong section, as I'm not super clear on how to delineate between "add-ons" and "skins". I've been a long time Kodi user, done some skin hacking, and have worked with Python outside of Kodi, but I've never built an add-on before.

My concern is that I don't want to get too far down the rabbit hole if the animation system in Kodi ultimately can't do what I need it to do to make my add-on work.

I'm wanting to build a "spin the wheel" movie selector add-on. The graphical elements would consist of a main "wheel" graphic, some lines to divide it up into sections, and the main poster image for each movie which is "on the wheel". I'm not sure if its possible to just like build a control group and then just rotate the whole thing. Attempting to animate all the components individually would be a nightmare.

The other issue is, is it possible to have the speed of rotation slow down gradually? I'd want to have the wheel's turning speed slow down at a non-linear rate.

Thanks


RE: Spinning "Movie Wheel" Animation Possible? - ronie - 2016-09-02

(2016-09-02, 20:50)SleepyP Wrote: Attempting to animate all the components individually would be a nightmare.

yup, but that's how it's done i'm afraid ;-)

have a look at the Revolve skin, it has all kinds of rotating effects. perhaps you could use some of their code as a starting point.

docs about animations and stuff:
http://kodi.wiki/view/Animating_Your_Skin
http://kodi.wiki/view/Tweeners


RE: Spinning "Movie Wheel" Animation Possible? - SleepyP - 2016-09-02

I was afraid of that! I'll give Revolve a look. Like said, I may be able to adapt my concept into something that's doable in Kodi. Thanks for the pointers!