I personally wouldn't worry about trying to get the reverse effect because lowering the value works perfectly fine, so that's not a big deal. My biggest concern is trying to keep the animation on screen for infinity at a realistic speed. The "butterfly second try" rar file that you uploaded had a realistic speed (it had a "snap" to it) but then it disappears from screen. If only there is a way to keep the animation on screen all the time with the "snappy-ness".balala wrote:Herein lies the power of the ActionTimer plugin, which is a very-very good and (at least for me) useful plugin. Many thanks to the developer.
You're right. When I wrote the code, I missed that in this case the Speed is not exactly a speed, but exactly opposite something: increasing it will decrease the speed and decreasing it will increase the speed. I'll try to find a good solution to this issue and will come back with it.
Sorry for this inattention of mine...
The following code is the code from the "Butterfly second try" that you created earlier in this thread.
I tried changing this:
IfCondition=((Timer=30)||(Timer=120)||(Timer=150))
to this:
IfCondition=((Timer=5)||(Timer=5)||(Timer=5))
But the animation only plays once and stops. I thought this meant the animations plays at time 0 (when you first load the sking), then 5 seconds later, plays the animation again, then 5 seconds later, plays the animation one more time, then 5 seconds later, it'll play a third time. But it only plays the animation once, and never plays again.
What would I have to do to have the animation keep playing even if it disappears from screen? Meaning, how would I get it to....
play, disappear only for 1 second,
play, disappear only for 1 second,
play, disappear only for 1 second,
play, disappear only for 1 second,
play, disappear only for 1 second,
and infinity.
So I basically deleted the "butterfly second try" code and copied and pasted the above code, saved and refresh rainmeter. Unfortunately, this animation played out exactly like the 1st Butterfly try that you made earlier in the thread where the butterfly seems to be in slow motion. Yes, the animation stays playing on screen (good) but unfortunately the speed doesn't have that "snap" to it.balala wrote:Code: Select all
[Rainmeter] Update=75 BackgroundMode=2 SolidColor=0,0,0,1 DynamicWindowSize=1 [Variables] [Timer] Measure=Calc Formula=(( Timer + 1 ) % 100 ) [MeterButterflies] Meter=Image ImageName=#@#tmp-[Timer].png X=0 Y=0 DynamicVariables=1
This would have been perfect (perfect speed), but as you said the animation is blocked eventually. Then are we basically back to square one. the animation is in "slow motion" relatively speaking or the animation can have "snap" but has to disappear eventually.balala wrote: [*]replace the ActionList1 and One options of the [MeasureSlider] measure with the following ones:and remove the [!HideMeter "MeterButterflies"] bang from the IfTrueAction option of the [MeasureEnd] measure.Code: Select all
[MeasureSlider] ... ActionList1=Repeat One,#Speed#,100000000 One=[!SetVariable Frame "((#Frame#+1)%100)"]#U#
Advantage: less resource usage, because the ActionTimer plugin is in use.
Disadvantage: although the 100000000 value in the ActionList1 option of the [MeasureSlider] measure is large enough, after a while it will be reached and that will block the animation.[/list]
Even if the animation disappears (butterfly second try code) from screen but has "snap" how do I make it so the animation keeps playing even if it has to disappear?
I can use this to do it for rain instead of animals because rain can disappear and doesn't look funny.
The IfCondition= ((Timer=30)(Timer=120)(Timer=150)), seems to only play the animation once and stops, then wait too long, then plays and stop, then wait too long, and plays and stop. Then completely stop altogether. How do I shorten the wait time and have the animation loop keep playing forever?
The following is someone's code that I used for a raindrop falling.
Code: Select all
; Note - You will need to get and install ImageMagick from:
; http://www.imagemagick.org/script/binary-releases.php
; Convert your .gif image to a "Bitmap" with the following in a cmd.exe command prompt window:
; convert -coalesce "C:\PathToInput\InputName.gif" "C:\PathToOutput\OutputName.png"
[Rainmeter]
Update=20
[Metadata]
Name=GIFFrames
Author=Rainmeter Team
Information=Displays a deconstructed .gif file (individual frames) as if it was a .gif file || Instructions: See .ini file for how to get and use ImageMagick
Version=Jan 16, 2016
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[ImageNumberCalc]
Measure=Calc
Formula=Counter % 19
[ImageMeter]
Meter=Image
W=200
H=400
x=1700
y=730
ImageName=#@#ImagesFrames\Frame[ImageNumberCalc].png
AntiAlias=1
DynamicVariables=1
I guess I could use the "butterfly second try" code to make the rain drops, snow falling, weather effects animation, falling quicker and disappear in between as well. But my question is how do I make it so the animation plays, disappear (only for 1 second), plays, disappear (only for 1 second), plays, disappear (only for 1 second), etc. etc. for infinity? Because changing the IfCondition= ((Timer=1)(Timer=1)(Timer=1)) doesn't really do anything. The animation just plays once and doesn't play again.
If I could simply get the "butterfly second code" to play in a loop (even if that means the animation disappears after it plays), but it only disappears for a short while (maybe 1 second to 2 second), but the animation will keep playing forever. Right now, the "butterfly second code" plays maybe once and just stops completely altogether if I change the IfCondition=Timer
"Butterfly second try code"
What numbers would I have to change so the animation plays, disappear for 1 second, then play, disappear for 1 second, then play, disappear for 1 second, and infinity, keeps going like that. That'll work and look great for my rain drop because this will allow me to adjust the speed of the rain drop. The rain drop disappearing will look perfectly fine as well.
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
OnRefreshAction=[!CommandMeasure MeasureSlider "Execute 1"][!ShowMeter "MeterButterflies"][!Redraw]
[Variables]
Frame=0
Speed=50
U=[!UpdateMeasure "MeasureSlider"][!UpdateMeasure "MeasureEnd"][!UpdateMeter "MeterButterflies"][!UpdateMeter "MeterFrame"][!Redraw]
[Timer]
Measure=Calc
Formula=( Timer + 1 )
IfCondition=((Timer=5)||(Timer=5)||(Timer=5))
IfTrueAction=[!CommandMeasure MeasureSlider "Execute 1"][!ShowMeter "MeterButterflies"][!Redraw]
[MeasureSlider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat One,#Speed#,10000
One=[!SetVariable Frame "(#Frame#+1)"]#U#
DynamicVariables=1
[MeasureEnd]
Measure=Calc
Formula=#Frame#
IfCondition=(MeasureEnd=100)
IfTrueAction=[!CommandMeasure MeasureSlider "Stop 1"][!SetVariable Frame "0"][!UpdateMeasure "MeasureSlider"][!UpdateMeasure "MeasureEnd"][!HideMeter "MeterButterflies"][!Redraw]
DynamicVariables=1
UpdateDivider=-1
[MeterButterflies]
Meter=Image
ImageName=#@#tmp-#Frame#.png
X=0
Y=0
DynamicVariables=1
[MeterFrame]
Meter=STRING
MEasureName=Timer
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=%1#CRLF##Frame#
DynamicVariables=1
Hidden=1