It is currently May 3rd, 2024, 10:44 am

Animations and ini file.

Get help with creating, editing & fixing problems with skins
azz3317
Posts: 10
Joined: April 23rd, 2012, 7:43 pm

Animations and ini file.

Post by azz3317 »

I have 3 questions:

1. Like the tutorial says this is a basic code for an animated gif in rainmeter:

Code: Select all

[rainmeter]
update=100

[ImageMeter]
Meter=Image
ImageName=[ImageNumberCalc].png
DynamicVariables=1

[ImageNumberCalc]
Measure=Calc
Formula=Counter % 13
Substitute=".00000":""
However, the update=100 part affect the whole skin. Is there a way i can only make the update=100 affect only the animation part?



2. Is there a way to put more than 1 animation (not bitmap) in 1 ini?

I have tried these but none work (except the first one that puts the second animation exactly where the first animation is, because both have the "DynamicVariables=1", the other 2 don't work):

Code: Select all

[rainmeter]
update=100

[ImageMeter]
Meter=Image
ImageName=[ImageNumberCalc].png
DynamicVariables=1


[ImageMeter2]
Meter=Image
ImageName= folder\[ImageNumberCalc].png
DynamicVariables=1

[ImageNumberCalc]
Measure=Calc
Formula=Counter % 13
Substitute=".00000":""

Code: Select all

[rainmeter]
update=50

[ImageMeter]
Meter=Image
ImageName=[ImageNumberCalc].png
DynamicVariables=1


[ImageMeter2]
Meter=Image
ImageName= folder\[ImageNumberCalc].png
x=100
y=100


[ImageNumberCalc]
Measure=Calc
Formula=Counter % 13
Substitute=".00000":""

Code: Select all

[rainmeter]
update=50

[ImageMeter]
Meter=Image
ImageName=[ImageNumberCalc].png
DynamicVariables=1


[ImageMeter2]
Meter=Image
ImageName= folder\[ImageNumberCalc2].png
x=100
y=100
hidden=1

[ImageNumberCalc]
Measure=Calc
Formula=Counter % 13
Substitute=".00000":""


[ImageNumberCalc2]
Measure=Calc
Formula=Counter % 13
Substitute=".00000":""

3. Is there a way to make 1 ini file execute more inis?

If can't execute more than 1 animation per ini then it would be nice to have 1 ini that execute for example 3 inis each with 1 animation.
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Animations and ini file.

Post by Mordasius »

azz3317 wrote:Is there a way i can only make the update=100 affect only the animation part?
1) Yes there is indeed. You can use UpdateDivider to modify the update rate of any measure or meter. So what you would do is leave the animation parts of your skin alone and just add something like UpdateDivider=10 to all the other measures/meters which will make them update every 10 x (update=100 in the [Rainmeter] Section) = every 1000 ms or once per second.
azz3317 wrote:2. Is there a way to put more than 1 animation (not bitmap) in 1 ini?
2) I don't think there is any reason why you can't have more than one animation sequence in a single .ini file. I think your problem may be in the way you are specifying the image name for the different animations. As general rule, try to put your Calc measures before / above the meters that use them and don't forget that you can use variables in the ImageName e.g.

Code: Select all

[Variables]
FirstAnimationSet=1
SecondAnimationSet=2

[ImageNumberCalc]
Measure=Calc
Formula=Counter % 13
Substitute=".00000":""

[ImageMeter]
Meter=Image
ImageName= #FirstAnimationSet#[ImageNumberCalc].png 
DynamicVariables=1

[ImageMeter2]
Meter=Image
ImageName= #SecondAnimationSet#[ImageNumberCalc].png 
DynamicVariables=1
With these, [ImageMeter] would use 11.png, 12.png, 13.png, etc. while [ImageMeter2] would use 21.png, 22.png, 23.png, etc.
azz3317
Posts: 10
Joined: April 23rd, 2012, 7:43 pm

Re: Animations and ini file.

Post by azz3317 »

It worked fine, thanks for answer.