2017-08-20, 00:26
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:
anything else?
Do I need the AlarmClock and various other settings?
In my Home.xml I have this:
I had to add the width/height to the multiimage, otherwise it would just overlay the entire screen.
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!
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>
<onload>SetProperty(SEVEN_daemon_set,True,home)</onload>
Do I need the AlarmClock and various other settings?
In my Home.xml I have this:
PHP Code:
<control type="panel" id="301">
...
<focusedlayout ...>
<control type="multiimage" id="7977">
<left>-2160</left>
<width>1</width>
<height>1</height>
<imagepath background="true">$INFO[ListItem.Art(thumb)]</imagepath>
</control>
<control type="image">
<texture>texture.png</texture>
<colordiffuse>$INFO[Window(home).Property(ImageColorSEVEN)]</colordiffuse>
</control>
</focusedlayout>
...
</control>
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!