Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1584

Help: Rainmeter Skins • Re: Chameleon to change skin color based on wallpaper engine wallpaper and not windows background

$
0
0
Yeah, the GIF behavior is normal and expected: neither Rainmeter nor the Chameleon plugin can use anything other than the first frame in a GIF.

Damn, you're right, your OP code indeed would have worked if you already had Wallpaper Engine changing the wallpaper in the background. My bad, I totally missed that. :oops:

That being said, my code isn't all for nothing, since you'll need to do things exclusively from Rainmeter (no Wallpaper Engine needed) anyway, if you want Chameleon to work with multiframe GIFs.

The approach will take some time and effort from your part which I'm not sure you'll consider worthwhile, and it basically involves extracting all the individual frames from all your GIFs beforehand, and then just iterate through all the resulted plain / static images (both those extracted from the GIFs and your other non GIF ones) in the code I presented, see here two methods to approach it (I recommend the 1st one, since the 2nd will most likely create bitmaps with a resolution too large in this case):
https://docs.rainmeter.net/tips/animated-gif-files/

Of course, the images extracted from the GIFs will have to be "played" as wallpapers at a much higher frequency than the other ones in order to simulate the former GIF animation, but that should be possible by dynamically altering the UpdateDivider value (aka the ChangeInterval variable) in the [Wallpaper] measure. The result will most likely be quite CPU intensive, and you'll have to decide if you really want to go this route... :???:

For the record, Rainmeter can actually play GIFs or MP4s at a perfectly acceptable CPU usage through the WebView plugin by khanhas and a few lines of HTML code in a local webpage, but obviously that doesn't change the fact that the Chameleon plugin itself only works with plain (aka static) images:
https://forum.rainmeter.net/viewtopic.php?t=39233
I thought of a work around:

Convert my mp4 live wallpapers to gif online (those which are project.json or .pkg files I'll screen record and convert to gif) and then use your proposed solution to set the wallpapers in rainmeter in exactly in the same order as present in the wallpaper engine playlist so when there will be live wallpapers rainmeter will have set the first frame in the background and due to which chameleon will redraw the colors and it will work as expected and as desired.

What do you think of it ?

Statistics: Posted by Taher — Today, 11:51 am



Viewing all articles
Browse latest Browse all 1584

Trending Articles