(2017-06-11, 18:14)Jeroen Wrote: What does prefix actually do? This script could really use some at least basic documentation
In my Home.xml:
PHP Code:
<onload>RunScript(script.colorbox,info=blur,id=$VAR[window:Background],prefix=home,blursize=1,quality=8)</onload>
I have a multiimage control using the VAR to load background images based on preferences
But I get an error message and the log show this
Prefix assigns a unique identifier, so it can be reused, ie. above example will give you
$INFO[Window(home).Property(
home.ImageFilter)]
$INFO[Window(home).Property(
home.Image)]
$INFO[Window(home).Property(
home.ImageColor)]
$INFO[Window(home).Property(
home.ImageCColor)]
For multiimage use set what effect to use via:
Code:
SetProperty(FIVE_daemon_set,blur,home)
Ok, so in skin.adonic MyVideoNav.xml at top I have this:
Code:
<control type="multiimage" id="7975">
<left>-2160</left>
<imagepath background="true">$VAR[ThumbVar]</imagepath>
</control>
This will give you:
$INFO[Window(home).Property(ImageFilterFIVE)]
processed image
$INFO[Window(home).Property(ImageFIVE)]
original image
$INFO[Window(home).Property(ImageColorFIVE)]
overall color
$INFO[Window(home).Property(ImageCColorFIVE)]
complimentary color
That is the basics, if you check Startup.xml you can see how to change various values to use.
You can fire the daemon again using a property to reprocess same image if lost etc.
Use RunScript to process images manually.
Most all is used in skin.adonic.