I want an animation to play only once fully, from beginning the end, but not repeat. I've been looking around for a solution but I can't find anything. Thanks.
I'm also curious if it is possible to delay specific frames using the calc measure. (such as beginning or ending frame by X seconds or indefinitely)
- VR
It is currently April 27th, 2024, 6:10 pm
Question about MeasureAnimation
-
- Posts: 478
- Joined: February 26th, 2011, 10:22 pm
Question about MeasureAnimation
Droptop Four
Dropdown menu bar & app launcher for Windows & Rainmeter
Dropdown menu bar & app launcher for Windows & Rainmeter
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
Re: Question about MeasureAnimation
i guess the animation is done with a calc measure?
disabling this measure with an IfEqualAction should work.
disabling this measure with an IfEqualAction should work.
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Question about MeasureAnimation
What method are you using to create the animation?
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 478
- Joined: February 26th, 2011, 10:22 pm
Re: Question about MeasureAnimation
I'm using this example code atm, which was found on the Rainmeter manual.
Here is my animation: (Its a little jittery online)
The beginning and last frame need a delay of 1 second, otherwise the effect is shot. The other solution is obviously the have duplicate frames at the beginning and end, but I'd rather not waste space.
Code: Select all
;=================================================
; Rainmeter configuration file
; Updated October 4, 2012
;
; Note - You will need to get ImageMagick from:
; http://www.imagemagick.org/script/binary-releases.php?ImageMagick=ricm49nmhtgaut61n97h3fmt92#windows
; Get the last one on the list, the latest "Portable / Static" 16bit version.
; Convert your .gif image to a "Bitmap" with the following in a cmd.exe command prompt window:
; C:\PathToImageMagick\convert.exe +append C:\PathToGif\YourGif.gif C:\PathToDesiredOutput\YourBitmap.png
;
;=================================================
[Rainmeter]
Update=100
[Metadata]
Name=GIFBitmap
Author=kenz0
Information=Displays a "Bitmap" made from a .gif file using ImageMagick to convert a .gif to a multi-frame bitmap image. || Instructions: See .ini file for how to get and use ImageMagick
Version=March 8, 2010
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[MeasureAnimation]
Measure=CALC
Formula=Counter % 12
[MeterAnimation]
Meter=BITMAP
MeasureName=MeasureAnimation
BitmapImage=#@#ImagesBitmap\shark_bitmap.png
BitmapFrames=12
BitmapExtend=1
The beginning and last frame need a delay of 1 second, otherwise the effect is shot. The other solution is obviously the have duplicate frames at the beginning and end, but I'd rather not waste space.
Droptop Four
Dropdown menu bar & app launcher for Windows & Rainmeter
Dropdown menu bar & app launcher for Windows & Rainmeter
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Question about MeasureAnimation
Code: Select all
[MeasureAnimation]
Measure=CALC
Formula=MeasureAnimation+(MeasureAnimation<12)
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 478
- Joined: February 26th, 2011, 10:22 pm
Re: Question about MeasureAnimation
Ah! Genius! That will stop the animation after 12 frames, but what if I want to just delay the beginning or ending frame?
Here is my current solution: Anyone have anything better?
Here is my current solution: Anyone have anything better?
Code: Select all
;=================================================
; Rainmeter configuration file
; Updated October 4, 2012
;
; Note - You will need to get ImageMagick from:
; http://www.imagemagick.org/script/binary-releases.php?ImageMagick=ricm49nmhtgaut61n97h3fmt92#windows
; Get the last one on the list, the latest "Portable / Static" 16bit version.
; Convert your .gif image to a "Bitmap" with the following in a cmd.exe command prompt window:
; C:\PathToImageMagick\convert.exe +append C:\PathToGif\YourGif.gif C:\PathToDesiredOutput\YourBitmap.png
;
;=================================================
[Rainmeter]
Update=100
[Metadata]
Name=GIFBitmap
Author=kenz0
Information=Displays a "Bitmap" made from a .gif file using ImageMagick to convert a .gif to a multi-frame bitmap image. || Instructions: See .ini file for how to get and use ImageMagick
Version=March 8, 2010
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[MeasureAnimation1]
Measure=CALC
Formula=Counter % 10
IfEqualValue=9
IfEqualAction=[!EnableMeasure MeasureAnimation2][!DisableMeasure #CURRENTSECTION#]
[MeasureAnimation2]
Measure=CALC
Formula=MeasureAnimation2+(MeasureAnimation2<12)
Disabled=1
IfEqualValue=21
IfEqualAction=[!EnableMeasure MeasureAnimation1][!DisableMeasure #CURRENTSECTION#]
[MeterAnimation]
Meter=BITMAP
MeasureName=MeasureAnimation2
BitmapImage=#@#ImagesBitmap\shark_bitmap.png
BitmapFrames=12
BitmapExtend=1
Droptop Four
Dropdown menu bar & app launcher for Windows & Rainmeter
Dropdown menu bar & app launcher for Windows & Rainmeter