Dany Gee wrote: ↑July 15th, 2022, 8:27 pm
You have the contents of the ini file in my original post and the lua contents in the first post.
You literally don't need anything else besides some local pics to test.
The lua code in the first post cross-fades 2 lines of text read by a second lua script from a text file.
But your code only has 1 image meter bound to the Quote plugin. It cannot cross fade a single image, you need 2 images to use the cross-fade action of the script.
One solution might be a scheme to handle a fade out the current image and fade in the next image obtained since you only have 1 image source (Quote plugin).
Or 2 image meters, one displaying the initial Quote plugin value and the second image meter a different Quote plugin value, then 2 Fade measures that can that control the fade of each image.
Thanks a lot! @eclectic-tech
Exactly what I was expecting.
You nicely explained everything and suggested two sleek solutions.
For now I went for the single image fade out - it does the job pretty well.
I will maybe later try out the second option.
You do not have the required permissions to view the files attached to this post.
SYSTEM: Windows 11 Pro 64bit|MOBO: ASUS Z170 Deluxe|CPU: i7-6700K @ 4.3Ghz|GPU: Asus GTX1080 Strix|RAM: 64GB Gskill Trident Z RGB (2400Mhz CL15)
See there is no lua script file, no need for it. The ChangeInterval is the time for which an image is kept visible. If needed, the code can be altered to get the transition only on click, or whatever else. A great advantage of this code is that it uses the default Update=1000 option on the [Rainmeter] section, but has to be further improved.
If you are interested in this code and need further assistance, please let me know.
Dany Gee wrote: ↑July 18th, 2022, 6:39 pm
Your config is also very neat!
Thanks!
Dany Gee wrote: ↑July 18th, 2022, 6:39 pm
And the end effect is pleasing enough.
You can alter how the effect is working (for instance its speed) by altering the Wait parameter on the ActionList1 and ActionList2 options of the [MeasureAlpha] measure. The ActionList1 looks like this in my example: ActionList1=Repeat FadeIn,40,10. The red colored 40 is the Wait parameter I'm talking about (expressed in milliseconds). It is how long the plugin waits between two consecutive executions of ActionList1. If you increase this value, you get slowing down the effect, decreasing it speeds the effect up. Play a little bit with these values, to get the effect as you want / like. And obviously same applies for ActionList2 as well. In any case I recommend you to use the same values, if you change one, change the other as well (with the same amount).
Dany Gee wrote: ↑July 19th, 2022, 7:36 am@balala
Could you please add the fade out effect to also activate on click on the photo?
For a poor programmer like me this task is already impossible
Definitely possible, however before starting to work I have a question. Do you want the transition take place only on click? I mean that in my code the transition take place after certain period (which can be set with the ChangeInterval variable). Should this be removed and get the image transition only on click, or the periodical transition should be kept and the click controlled transition should be added?
Dany Gee wrote: ↑July 19th, 2022, 10:16 am
Click controlled transition should be added
THANK YOU IN ADVANCE!
Give this variant of balala's code a try.
I added a MeasureClick to control the transition.
I also modified the MeasureTimer to update the next image after 2 seconds (originally was done halfway through the interval).
Added a TotalSteps variable to allow controlling the speed of the transition; higher value equals a slower transition.
When clicked to initiate a transition, the timer measure is reset.