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: script.toolbox - Hitcher - 2015-05-22

(2015-05-22, 00:17)phil65 Wrote: btw did you guys try "Skin.SetPath(NAME_OF_STRING,addons://sources/video/)" or something similar?
The problem I had using SetPath is having to specify where it opens isn't any good if the user wants something different.
(2015-05-22, 00:39)marcelveldt Wrote: @phil65, if you need any help; For some of the requests here I already did some coding in my skin's helper script, so I can share this with you for the toolbox script in order to other skinners can benefit from it if you want.

Looking at the request to provide the content's path to set a widget. This might be something to be added to the skinshortcuts scripts ?
Most of the code is already in there, I think it's an easy change and can add it in if you want. That way you can provide both your own defined widgets from skinshortcuts or let the user choose from a library path/location.
Adding it to skin shortcuts would be perfect as I tried running it using s button to just select a shortcut but it adds the ActivateWindow part as well.
(2015-05-22, 06:58)phil65 Wrote: would be possible. Something like script.toolbox(info=getpercentage,string=NAME_OF_STRING,total=TOTAL_AMOUNT,part=PART_AMOUNT)?
Would it also be possible to get percent remaining from ListItem.PercentPlayed?


RE: script.toolbox - sualfred - 2015-05-22

Quote:Adding it to skin shortcuts would be perfect as I tried running it using s button to just select a shortcut but it adds the ActivateWindow part as well.

+1
Like it's done with the playlist widgets just with an simplified additional node selector dialog right after choosing something like "Custom Content Path".
That would be perfect.


RE: script.toolbox - phil65 - 2015-05-22

(2015-05-22, 19:17)Hitcher Wrote: Would it also be possible to get percent remaining from ListItem.PercentPlayed?

I cannot only assign stuff to window properties, not to already-existing listitems.


RE: script.toolbox - Hitcher - 2015-05-26

(2015-05-22, 00:39)marcelveldt Wrote: @phil65, if you need any help; For some of the requests here I already did some coding in my skin's helper script, so I can share this with you for the toolbox script in order to other skinners can benefit from it if you want.

Looking at the request to provide the content's path to set a widget. This might be something to be added to the skinshortcuts scripts ?
Most of the code is already in there, I think it's an easy change and can add it in if you want. That way you can provide both your own defined widgets from skinshortcuts or let the user choose from a library path/location.

Any more thoughts on this?

Ideally I'd like to use the 'Just Select' method -

Code:
Just Select Shortcuts
---------------------

If you don't want to take advantage of the scripts menu management functions, you can still use the script to display available shortcuts to the user. The shortcut the user selects is then passed back to the skin for you to manage.

When using this method, you specify which skin strings you want the script to set - you can then access these as normal via Skin.String.

To use the script in this way, put the following in an onclick:

RunScript(script.skinshortcuts,type=shortcuts&custom=[True/False]&showNone=[True/False]&skinLabel=[skinLabel]&skinAction=[skinAction]&skinType=[skinType]&skinThumbnail=[skinThumbnail])

custom=[True/False] - Whether you wish to allow the user to type their own custom command. If ommitted this will default to False. [OPTIONAL]
showNone=[True/False] - Whether you wish to show a 'None' option to reset skin labels. If ommitted this will default to False. [OPTIONAL]
[skinLabel] - The skin string the script will write the label of the selected shortcut to. [OPTIONAL]
[skinAction] - the skin string the script will write the action of the selected shortcut to. [OPTIONAL]
[skinType] - The skin string the script will write the type of the selected shortcut to. [OPTIONAL]
[skinThumbnail] - The skin string the script will write the thumbnail of the selected shortcut to. [OPTIONAL]

But with an additional skin string [skinList] which works in the same way as the Favourites script -

Code:
CustomFavourite1.List (the absolute path without the 'Activate.Window()' part. can be used to fill a container with listitems)

Thanks.


RE: script.toolbox - braz - 2015-05-26

U m ikh


RE: script.toolbox - phil65 - 2015-05-26

(2015-05-26, 13:18)braz Wrote: U m ikh

Huh


RE: script.toolbox - braz - 2015-05-26

(2015-05-26, 13:52)phil65 Wrote:
(2015-05-26, 13:18)braz Wrote: U m ikh

Huh
Haha, phantom post, phone was in my pocket. Traveling right now...


RE: script.toolbox - Wanilton - 2015-05-26

Now available in official helix repository

http://mirrors.xbmc.org/addons/helix/script.toolbox/

thanks


RE: script.toolbox - mikeSiLVO - 2015-06-27

Hi phil,

I am hoping you can help me with an issue. I am not sure what to do because I can't figure out a way to test any ideas for a solution.
I am trying to add a blurred background option to DialogVideoInfo and a user posted a video that I can't replicate.
I do have rare moments where i see a very brief flash which may be the same issue but my system might be to fast to see what they see Huh

The video is here

The link to DialogVideoInfo is here

Thank you.


RE: script.toolbox - phil65 - 2015-06-27

(2015-06-27, 19:29)mikesilvo164 Wrote: Hi phil,

I am hoping you can help me with an issue. I am not sure what to do because I can't figure out a way to test any ideas for a solution.
I am trying to add a blurred background option to DialogVideoInfo and a user posted a video that I can't replicate.
I do have rare moments where i see a very brief flash which may be the same issue but my system might be to fast to see what they see Huh

The video is here

The link to DialogVideoInfo is here

Thank you.

that feature depends on cpu speed, correct. I would clear the window property on Dialog onload or onunload, add a fadetime tag to the blurred image and make the animations slower.


RE: script.toolbox - mikeSiLVO - 2015-06-27

(2015-06-27, 19:56)phil65 Wrote: that feature depends on cpu speed, correct. I would clear the window property on Dialog onload or onunload, add a fadetime tag to the blurred image and make the animations slower.

Thanks phil!

Just to make sure I am understanding correctly should I clear the property using onload and unload or will one work just as well? I have this now <onunload>ClearProperty(ImageFilter,home)</onunload> should I also add an onload?

Thanks again Smile


RE: script.toolbox - phil65 - 2015-06-27

should be fine just putting it in onunload.


RE: script.toolbox - janeczku - 2015-07-01

Looks like PIL is broken (again) in Kodi 15.0 Isengard beta 2 on Android:

Quote:23:22:58 T:1577542688 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: The _imaging C module is not installed
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.toolbox/default.py", line 230, in <module>
Main()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.toolbox/default.py", line 37, in __init__
image, imagecolor = Filter_Image(self.image_now, self.radius)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.toolbox/resources/lib/Utils.py", line 161, in Filter_Image
img.thumbnail((200, 200), Image.ANTIALIAS)
File "/data/data/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/Image.py", line 1559, in thumbnail
self.load()
File "/data/data/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/ImageFile.py", line 164, in load
self.load_prepare()
File "/data/data/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/PngImagePlugin.py", line 381, in load_prepare
ImageFile.ImageFile.load_prepare(self)
File "/data/data/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/ImageFile.py", line 231, in load_prepare
self.im = Image.core.new(self.mode, self.size)
File "/data/data/org.xbmc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL/Image.py", line 37, in __getattr__
raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
-->End of Python script error report<--
23:22:58 T:1356381096 DEBUG: ------ Window Init (DialogKaiToast.xml) ------



RE: script.toolbox - sualfred - 2015-07-05

@phil65:
If got issues with commas in $LOCALIZE strings in the textviewer dialog. Is there any way to parse them?


RE: script.toolbox - Hitcher - 2015-07-05

(2015-07-05, 08:56)sualfred Wrote: @phil65:
If got issues with commas in $LOCALIZE strings in the textviewer dialog. Is there any way to parse them?

Code:
text='"$VAR[Plot]"'



This forum uses Lukasz Tkacz MyBB addons.