Kodi Community Forum
Release script.colorbox - 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)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: Release script.colorbox (/showthread.php?tid=318626)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


RE: script.colorbox - badaas - 2017-08-23

+1 Big Grin


RE: script.colorbox - badaas - 2017-08-25

2.0.4.2
* chaining ops is complete, please report errors (NOTE: pixelate, posterize in fact all ops are now affected by quality setting, so they will look different, ie. pixelate quality will affect pixelsize, lower quality use smaller pixels)


So you can now get some strange fx, ad infinitum (and CPU meltdown limits) - gratuitous gallery follows ..

Code:
SetProperty(cfa_daemon_set,pixelate-shiftblock,home)

Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image


RE: script.colorbox - Angelinas - 2017-08-25

Working version Have error...dont know why...
Code:
20:24:01.306 T:2396   ERROR: Exception in thread Thread-64:
                                            Traceback (most recent call last):
                                              File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 801, in __bootstrap_inner
                                                self.run()
                                              File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 754, in run
                                                self.__target(*self.__args, **self.__kwargs)
                                              File "C:\Users\TEST\AppData\Roaming\Kodi\addons\script.colorbox\resources\lib\Utils.py", line 603, in Color_Only
                                                cimagecolor = Color_Modify(maincolor, cmaincolor, color_comp)
                                              File "C:\Users\TEST\AppData\Roaming\Kodi\addons\script.colorbox\resources\lib\Utils.py", line 634, in Color_Modify
                                                for ccarg in get_cm_color[1].strip().split('@'):
                                            IndexError: list index out of range

One question more...I set button for changing Focus effect
I set like yours button from adonic
<control type="button" id="11115">
I add to write in skin.string values
Code:
<onclick>Skin.SetString(FIVE_daemon_set,$INFO[Window(home).Property(FIVE_daemon_set)])</onclick>

And in startup.xml I change when I open Kodi colorbox load from my last settings "Focus effect"
Code:
<onload>SetProperty(FIVE_daemon_set,$INFO[Skin.String(FIVE_daemon_set)],home)</onload>

Isue is that when I open select dialog values for this dont change until I open again same button.
Look like that reload is set when openining dialog , not when change values.
Velues for colorbox_quality, colorbox_blursize, colorbox_bitsize...are ok
Image


RE: script.colorbox - badaas - 2017-08-26

Enable dubug, settings-system-logging.

The effect change button will need to fire the daemon somehow, it checks for image changes not settings changes.
So something like:

AlarmClock() with a delay <onclick>

Code:
            <onclick>AlarmClock(nms1,SetProperty(FIVE_daemon_fire,True,home),00:01,true)</onclick>



RE: script.colorbox - badaas - 2017-08-26

2.0.4.3
* rename cache files to avoid cache madness


RE: script.colorbox - badaas - 2017-08-26

Schoolday

There is an 'updating' property, useful if processing takes a while. It will equal '0' if updating, replace 'FIVE' appropriately.

Code:
String.IsEqual(Window(home).Property(Daemon_FIVE_ImageUpdating), 0)

My default colorbox icon is:

Image

@ https://raw.githubusercontent.com/BADMS/skin.adonic/master/extras/spinners/Colorbox.png


RE: script.colorbox - foghat - 2017-08-27

Hi updated to Kodi 17.4 on my Shield and now get a colorbox script error when kodi starts. Am using 2.0.4.

https://pastebin.com/3qcVnnbJ


RE: script.colorbox - badaas - 2017-08-28

Settings-system-logging, enable debug please.


Also, delete all the .pyo files in script.colorbox, reboot.


RE: script.colorbox - badaas - 2017-08-28

Initially this is a Kodi problem, missing libs/sources etc., ask in the relevant forum for this build.

Code:
from PIL import Image, ImageOps, ImageEnhance, ImageDraw, ImageStat, ImageFilter
                                              File "/data/user/0/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/Image.py", line 66, in <module>
                                                from PIL import _imaging as core
                                              File "/data/user/0/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/_imaging.py", line 7, in <module>
                                                __bootstrap__()
                                              File "/data/user/0/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/_imaging.py", line 6, in __bootstrap__
                                                imp.load_dynamic(__name__,__file__)
                                            ImportError: dlopen failed: library "./_imaging.so" not found



RE: script.colorbox - badaas - 2017-08-28

Schoolday

This isn't working as well as I like, unfortunately, the two properties involved from kodi aren't updated until you return to tvshows shows level! - I will try make a workaround eventually.
On entering 'tvshows' you will have 'Window(home).Property(Show_Percentage)', 0-100% of episodes watched of focused show.

Code:
def Show_Percentage():
    try:
        stot = int(xbmc.getInfoLabel('ListItem.Property(TotalEpisodes)'))
        wtot = int(xbmc.getInfoLabel('ListItem.Property(WatchedEpisodes)'))
        getcontext().prec = 6
        perc = "{:.0f}".format(100 / Decimal(stot) * Decimal(wtot))
        HOME.setProperty("Show_Percentage", perc)
    except:
        return



RE: script.colorbox - foghat - 2017-08-28

(2017-08-28, 12:35)badaas Wrote: Settings-system-logging, enable debug please.


Also, delete all the .pyo files in script.colorbox, reboot.

Will do this when I get home.

(2017-08-28, 14:14)badaas Wrote: Initially this is a Kodi problem, missing libs/sources etc., ask in the relevant forum for this build.

Code:
from PIL import Image, ImageOps, ImageEnhance, ImageDraw, ImageStat, ImageFilter
                                              File "/data/user/0/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/Image.py", line 66, in <module>
                                                from PIL import _imaging as core
                                              File "/data/user/0/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/_imaging.py", line 7, in <module>
                                                __bootstrap__()
                                              File "/data/user/0/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/_imaging.py", line 6, in __bootstrap__
                                                imp.load_dynamic(__name__,__file__)
                                            ImportError: dlopen failed: library "./_imaging.so" not found

If this truly is an issue with the officially released 17.4 build, that is probably something you'd want to follow-up on, no? I am not going to be able to speak intelligently to (or even likely understand) any responses that may be produced.


RE: script.colorbox - badaas - 2017-08-28

They've most likely forgotten to include something.
It is 32bit 17.4 yes?


RE: script.colorbox - foghat - 2017-08-28

(2017-08-28, 16:54)badaas Wrote: They've most likely forgotten to include something.
It is 32bit 17.4 yes?

I am not really sure. I am using an Nvidia Shield and just downloaded 17.4 via the google play store.

EDIT: from the log I posted:

11:19:39.271 T:138215982160 NOTICE: Starting Kodi (17.4 Git:20170822-80a0e63). Platform: Android ARM 64-bit
11:19:39.271 T:138215982160 NOTICE: Using Release Kodi x64 build


RE: script.colorbox - badaas - 2017-08-28

Kodi doesnt suport 64 bit PIL, no go.


RE: script.colorbox - foghat - 2017-08-28

(2017-08-28, 20:25)badaas Wrote: Kodi doesnt suport 64 bit PIL, no go.

I am not sure what you mean by PIL? Has something fundamentally changed between 17.3 and 17.4? As Colorbox was not generating any errors on 64bit version 17.3 and was working for me in the Horizon skin.

Would a debug log still be useful?