2013-02-19, 20:40
(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',)])