It is currently September 29th, 2024, 7:23 pm

Expanding Images

General topics related to Rainmeter.
User avatar
Fuzzybat23
Posts: 44
Joined: May 10th, 2013, 1:21 am

Expanding Images

Post by Fuzzybat23 »

In a nutshell, I'm trying to animate a png so that it grows in height. Here's the code snippet.

Code: Select all

[App_Grow]
Measure=Calc
Formula=App_Grow + 1
IfEqualValue=40
IfEqualAction=[!DisableMeasure App_Grow][!HideMeter App_Bar_Grow][!ShowMeter App_Bar]
Disabled=1

[App_Bar]
Meter=Image
ImageName=Graphics/App Bar.png
x=0
y=200
w=20
h=40
LeftMouseUpAction=[!EnableMeasure App_Grow][!HideMeter App_Bar][!ShowMeter App_Bar_Grow]

[App_Bar_Grow]
Meter=Image
ImageName=Graphics/App Bar.png
x=0
y=200
w=20
h=[App_Grow]
DynamicVariables=1
Hidden=1
It's just a test script. Click the image, the image dissapears and the main animation measure and image are both activated. The measure counts from 0 to 40. If it were a sequence of images, of course I'd use App Bar[App_Grow].png, but I'm trying to do this with one image so instead I put the measure call in the height field: h=[App_Grow]
All it does is make the image dissapear, delays for however long 40 ticks with (update set to 50) is, then display the image again. No animation of the image expanding from a thin line to the full image. I'd love some insight into this, thanks!
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5534
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Expanding Images

Post by eclectic-tech »

Add DynamicWindowSize=1 to the [Rainmeter] section of your skin.