Inclinometer addon developement - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Inclinometer addon developement (/showthread.php?tid=255832) |
Inclinometer addon developement - Kamion - 2016-01-09 Hi, I am developing inclinometer addon. I am using MPU-6050 Six-Axis Gyro + Accelerometer. I have a simple working addon made in python (background, bach and home button) and in the background of this addon there is code that return radians or degrees of MPU-6050. And now I have a problem: How can I rotate image inside kodi addon?? Or do I need to start from scratch and make my addon in .xml so I can use <animation> tag and effect rotatex and rotatey? I am a begginer, please help me. I really want to make this inclinometer addon. RE: Inclinometer addon developement - ronie - 2016-01-09 have you tried this: http://mirrors.xbmc.org/docs/python-docs/16.x-jarvis/xbmcgui.html#ControlImage-setAnimations RE: Inclinometer addon developement - Kamion - 2016-01-10 Is this the correct syntax? self.obrnix=self.addControl(xbmcgui.ControlImage(self.w/2 - 143/2, 80, 143, 57, mediaPath + "xobrni.png",30)) self.obrnix.setAnimations([('focus', 'effect=rotatex end=90,247,220,56 time=0',)]) RE: Inclinometer addon developement - Kamion - 2016-01-11 Nobody? RE: Inclinometer addon developement - Kamion - 2016-01-16 How do I turn this: Code: <animation effect="rotate" end="30" center="360,288" time="200">Focus</animation> into this: Code: .setAnimations() Please help me. RE: Inclinometer addon developement - Kamion - 2016-03-06 I can not belive this, is there really no function that rotates image in kodi?? RE: Inclinometer addon developement - Kamion - 2016-03-13 This is my code to rotate image constantly for 360deg. Code: self.imageRotate = xbmcgui.ControlImage (x, y, w, h, "image.png") |