I'm terrible at python and need your help with two questions
#17
(2013-02-19, 03:55)doobiest Wrote: EDIT: I figured it out. It's just by coincidence that it worked on my other windows 7 box. I already had a folder of c:\tmp created with proper permissions for a completely unrelated reason. I only had to create that folder on the other computer for it to work. Ideally I should have it going to a path that isn't dependent on manual creation. Others I had tried it failed with write perms. What is the proper path to temp files for a script?

addons should save their stuff in their own userdata/addon_data/script.foo folder.
you could use something like:
Code:
import xbmcvfs

__addon__   = xbmcaddon.Addon()
__addonid__ = __addon__.getAddonInfo('id')

path = xbmc.translatePath('special://profile/addon_data/%s' % __addonid__)
if not xbmcvfs.exists(path):
    xbmcvfs.mkdir(path)

as for adding transparency to an image, you can simply add a fade animation:
Code:
self.image.setAnimations([('conditional', 'effect=fade start=50 end=50 time=0 condition=true',)])
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply


Messages In This Thread
RE: I'm terrible at python and need your help with two questions - by ronie - 2013-02-19, 20:40
Logout Mark Read Team Forum Stats Members Help
I'm terrible at python and need your help with two questions0