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) |
RE: script.colorbox - filigran - 2017-08-20 It's probably me not thinking right, and being confused from reading threads and code, but I cant figure this script out. There are lots of onloads and settings. What settings do I really need to do what I want? I just want something simple: I want a colordiffuse for an image to change in a panels focusedlayout, based on another image inside the same panels focusedlayout (ListItem.Art(thumb) or ListItem.Art(fanart), depending on if it's an episode or a movie). I gathered I need an onload in startup.xml, but which one(s)? Based on your replies, I gather 7977, or SEVEN, is what I want. So, I would guess in startup.xml I need: PHP Code: <onload condition="System.HasAddon(script.colorbox)">RunScript(script.colorbox,daemon=True)</onload> Do I need the AlarmClock and various other settings? In my Home.xml I have this: PHP Code: <control type="panel" id="301"> This produces one color: ImageColorSeven is always FFffffff ... I got it working once, sort of, by adding all lines I could find, producing just a mess of code. It gave me almost the desired behavior, but it didn't always choose the right color. For say 10 items, it would display a color from the image in 8 cases, but two of them would just be whatever was selected as the color from the image before... does that make sense? I tried removing lines here and there, to see which lines did what.. but I couldn't make sense of it. If I look at skin.adonic, it seems there's no example of it using a color from an image? It uses the effects (blur, pixelation etc), but no color changing images. aPEX does, but it seems outdated based on the contents of this thread. And, like someone else said, it uses so much of colorbox it's unclear what lines you actually need to just do one thing. Thanks for your help, and a really useful script! RE: script.colorbox - Angelinas - 2017-08-20 I Try simple test use for FIVE: I use in musicvisualisation for colordifuse "Time",frame for album cover and name of song userdata\addon_data\script.colorbox\ text part is from colors.txt images for this have title f5e85be8f894591c17c2a9f34da47c43 And color for this image is in colors.txt Window(home).Property(ImageColorFIVE) ff272217 Window(home).Property(ImageCColorFIVE) FF171c27 But on kodi image is different For next changing of image all working as should....problem with color loading apeir from time to time I change "Get_Colors" from phil65 toolbox.script...and resultats are better.... See what can you doo about color. RE: script.colorbox - Jeroen - 2017-08-20 (2017-08-19, 12:23)badaas Wrote: Thanks again @jm! Sorry for all the changes, but it gives you all much more flexibilty and less obscure option names etc. Plus stops things being hardcoded into colorbox!No worries, sleep deprivation at work on my part lol. Your work is appreciated RE: script.colorbox - badaas - 2017-08-20 (2017-08-20, 11:00)Angelinas Wrote: I Try simple test use for FIVE: Did you read this https://forum.kodi.tv/showthread.php?tid=318626&pid=2633892#pid2633892 Set the two colours to 'main:' 'comp:' to use as is, hopefully this is discrepancy. RE: script.colorbox - Angelinas - 2017-08-20 Yeap...read....but not working for Five.. Always is fffffff and blur doesent work Images for FIVE is wrong mine ID for five is poster and in userdata\addon_data\script.colorbox\ images for this is fanart ?!? I rely dont understand....I insted of Code: <onload>SetProperty(FIVE_daemon_set,blur,home)</onload> Code: <onload condition="System.HasAddon(script.colorbox)">SetProperty(FIVE_daemon_fire,"var=main,set=$INFO[Skin.String(colorbox_main)]| Code: <onload>Skin.SetString(colorbox_main,main:hls*0.0;0.1;0.0)</onload> Before changes Five was working.If I remove all new onload and write old Code: <onload>SetProperty(FIVE_daemon_set,blur,home)</onload> RE: script.colorbox - badaas - 2017-08-20 You set everything via NINE, and why you setting daemon_fire?? This is wrong Code: System.HasAddon(script.colorbox)">SetProperty(FIVE_daemon_fire, All id's in daemon use same quality/size etc. You don't set each one separately. Need sleep will check back tomorrow. RE: script.colorbox - badaas - 2017-08-20 @ filigran I'll help tomorrow now. Need zzzzzzz, RE: script.colorbox - badaas - 2017-08-21 @ Angelinas try: Code: <onload>SetProperty(FIVE_daemon_set,blur,home)</onload> RE: script.colorbox - badaas - 2017-08-21 @filigran try: Startup.xml: Code: <onload>SetProperty(SEVEN_daemon_set,True,home)</onload> On Home.xml somewhere: Code: <control type="multiimage" id="7977"> Code: <control type="panel" id="301"> Code: <variable name="HomeContPic"> OR you can leave out the Container(301), as it will default to current focused item. This should get you started. RE: script.colorbox - Angelinas - 2017-08-21 (2017-08-21, 17:58)badaas Wrote: @ Angelinas try:Just try...And working like charm..... All color are real color, evan blur image working,,,, Great work.... RE: script.colorbox - badaas - 2017-08-21 (2017-08-21, 19:25)Angelinas Wrote:(2017-08-21, 17:58)badaas Wrote: @ Angelinas try:Just try...And working like charm..... Phew! Enjoy This is more subtle color scheme Code: <onload>Skin.SetString(colorbox_main,main:)</onload> RE: script.colorbox - badaas - 2017-08-21 2.0.4.1 * small fix for image:// files not being cached by kodi (this will mean for now if you use a lot plugin or resources for images, if you delete cache images will have to be remade, ie. http sourced content [I will fix this later]) * you can set vars 'lgint' & 'lgsteps' for color gradient change (steps and interval between steps in ms; defaults are lgint=10, lgsteps=50, so 50*10ms) @ https://github.com/BADMS/script.colorbox RE: script.colorbox - filigran - 2017-08-23 (2017-08-21, 17:59)badaas Wrote: @filigran try: Tested it, but it didn't work. I added PHP Code: <onload>RunScript(script.colorbox,daemon=True)</onload> Hm.. guess the embedding doesn't work. Anyhoo, the link is above. RE: script.colorbox - badaas - 2017-08-23 Ok, turn on kodi-settings-system-logging-enabel debug logging, see if any errors in kodi.log Also, delete userdata/addon_data/script.colorbox/ RE: script.colorbox - filigran - 2017-08-23 Figured it out! My bad; the episode didn't exist. I moved it recently, but never synced my library on the PC. So there was no image for colorbox to get information from. So, working great! Thanks for the help, and keep up the great work! |