2017-01-11, 23:22
So new question how does the blur effect work with color box... Can it show fanart blurred on the fly as soon as the item is highlighted?
<control type="image">
<aspectratio align="center">scale</aspectratio>
<texture background="true">$INFO[Window(home).Property(ImageFiltercfa)]</texture>
</control>
<onfocus>RunScript(script.colorbox,info=pixelate,id='"'$INFO[ListItem.Art(thumb)]"',pixels=10_SIZE,prefix=My_pixelled_thumb)</onfocus>
<onload>SetProperty(cfa_daemon_set,blur,home)</onload>
20:39:37.266 T:14380 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 10: '10_SIZE'
Traceback (most recent call last):
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 411, in <module>
ColorBoxMain()
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 26, in __init__
self._parse_argv()
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 376, in _parse_argv
self.pixels = int(arg[7:])
ValueError: invalid literal for int() with base 10: '10_SIZE'
-->End of Python script error report<--
20:40:01.465 T:2532 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnboundLocalError'>
Error Contents: local variable 'imagecolor' referenced before assignment
Traceback (most recent call last):
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 411, in <module>
ColorBoxMain()
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 31, in __init__
self._StartInfoActions()
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 295, in _StartInfoActions
HOME.setProperty(self.prefix + "ImageCColor", Complementary_Color(imagecolor))
UnboundLocalError: local variable 'imagecolor' referenced before assignment
-->End of Python script error report<--
20:42:10.238 T:13472 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 16: ''
Traceback (most recent call last):
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 411, in <module>
ColorBoxMain()
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 31, in __init__
self._StartInfoActions()
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\default.py", line 291, in _StartInfoActions
HOME.setProperty(self.prefix + "ImageCColor", Complementary_Color(imagecolor))
File "H:\Kodi_17_RC3\Kodi\portable_data\addons\script.colorbox\resources\lib\Utils.py", line 44, in Complementary_Color
comp = ['%02X' % (255 - int(a, 16)) for a in rgb]
ValueError: invalid literal for int() with base 16: ''
-->End of Python script error report<--[/code]