Kodi Community Forum
Release script.toolbox - 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.toolbox (/showthread.php?tid=207618)

Pages: 1 2 3 4 5 6 7 8 9 10 11


RE: Suggestion: Script to expose python functions to skinners - woodside - 2014-11-11

(2014-11-11, 21:18)Hitcher Wrote: $ESCINFO works for me with close brackets.

Only problem I have now is this error on my Fire TV -

Code:
No module named PIL

which seems to be this -

https://github.com/xbmc/xbmc/pull/5218

Must have been an editing error on my part. $ESCINFO works fine.... sorry.


RE: Suggestion: Script to expose python functions to skinners - Hitcher - 2014-11-14

(2014-11-11, 20:13)phil65 Wrote: right. Then use '$ESCINFO[]' (including quotation marks). (will add some lines to the script to filter out those quotation marks then)
(2014-11-11, 21:28)phil65 Wrote:
(2014-11-11, 21:18)Hitcher Wrote: $ESCINFO works for me with close brackets.

Only problem I have now is this error on my Fire TV -

Code:
No module named PIL

which seems to be this -

https://github.com/xbmc/xbmc/pull/5218

correct. will add exception handling for that error so that the script works on android (except image effects for now though)

Friendly bump. Wink


RE: Suggestion: Script to expose python functions to skinners - phil65 - 2014-11-14

(2014-11-14, 17:48)Hitcher Wrote:
(2014-11-11, 20:13)phil65 Wrote: right. Then use '$ESCINFO[]' (including quotation marks). (will add some lines to the script to filter out those quotation marks then)
(2014-11-11, 21:28)phil65 Wrote:
(2014-11-11, 21:18)Hitcher Wrote: $ESCINFO works for me with close brackets.

Only problem I have now is this error on my Fire TV -

Code:
No module named PIL

which seems to be this -

https://github.com/xbmc/xbmc/pull/5218

correct. will add exception handling for that error so that the script works on android (except image effects for now though)

Friendly bump. Wink

Should work now.


RE: Suggestion: Script to expose python functions to skinners - Hitcher - 2014-11-14

Thanks but now it's getting this error.

Code:
-->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: name 'log' is not defined
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.toolbox/default.py", line 18, in <module>
from Utils import *
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.toolbox/resources/lib/Utils.py", line 14, in <module>
log("No PIL available")
NameError: name 'log' is not defined
-->End of Python script error report<--



RE: Suggestion: Script to expose python functions to skinners - phil65 - 2014-11-14

ok, sorry, didnt test before. try again.


RE: Suggestion: Script to expose python functions to skinners - Hitcher - 2014-11-14

Different one. Wink

Code:
-->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: name 'ImageFilter' is not defined
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.toolbox/default.py", line 18, in <module>
from Utils import *
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.toolbox/resources/lib/Utils.py", line 553, in <module>
class MyGaussianBlur(ImageFilter.Filter):
NameError: name 'ImageFilter' is not defined
-->End of Python script error report<--



RE: Suggestion: Script to expose python functions to skinners - phil65 - 2014-11-14

ok, will have to restructure stuff a bit then first.


RE: Suggestion: Script to expose python functions to skinners - Hitcher - 2014-11-14

No worries, thanks.


RE: Suggestion: Script to expose python functions to skinners - phil65 - 2014-11-14

try again.


RE: Suggestion: Script to expose python functions to skinners - Hitcher - 2014-11-14

Perfect, many thanks.


RE: Suggestion: Script to expose python functions to skinners - Hitcher - 2015-01-14

Phil, I know you're busy with the extended info script but I wondered whether it's possible to add the ability to open the video info dialog with this script?

ie

PHP Code:
<onclick>RunScript(script.toolbox,info=dialogvideoinfo,dbid=$INFO[ListItem.DBID])</onclick

Many thanks.


RE: Suggestion: Script to expose python functions to skinners - phil65 - 2015-01-14

(2015-01-14, 14:59)Hitcher Wrote: Phil, I know you're busy with the extended info script but I wondered whether it's possible to add the ability to open the video info dialog with this script?

ie

PHP Code:
<onclick>RunScript(script.toolbox,info=dialogvideoinfo,dbid=$INFO[ListItem.DBID])</onclick

Many thanks.

Nope not possible, but you can open extendedinfo infodialog with RunScript(script.extendedinfo,info=extendedinfo,dbid=$INFO[ListItem.DBID]) for example.


RE: Suggestion: Script to expose python functions to skinners - Jeroen - 2015-01-14

Just got into looking into this. Really useful stuff, this will allow me to drop several custom windows. Any estimate on how far we are from availability on the Kodi repo?


RE: Suggestion: Script to expose python functions to skinners - phil65 - 2015-01-14

(2015-01-14, 15:29)Jeroen Wrote: Just got into looking into this. Really useful stuff, this will allow me to drop several custom windows. Any estimate on how far we are from availability on the Kodi repo?

several weeks because I will be out for two weeks because of holidays beginning next monday.


RE: Suggestion: Script to expose python functions to skinners - Jeroen - 2015-01-14

(2015-01-14, 15:47)phil65 Wrote:
(2015-01-14, 15:29)Jeroen Wrote: Just got into looking into this. Really useful stuff, this will allow me to drop several custom windows. Any estimate on how far we are from availability on the Kodi repo?

several weeks because I will be out for two weeks because of holidays beginning next monday.

Great, enjoy your holiday Smile