It is currently March 29th, 2024, 4:02 pm

Meter resizing separate meter

Get help with creating, editing & fixing problems with skins
Fuzzyketchup
Posts: 4
Joined: July 7th, 2017, 8:23 pm

Meter resizing separate meter

Post by Fuzzyketchup »

I'm very new to working with Rainmeter, and I'm trying to make an HDD measuring skin but I've been having a strange issue when I try to crop out my image, it affects a separate image that is not in the same meter.

Here is the code

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureDiskLabel]
Measure=FreeDiskSpace
Drive=C:
Label=1
UpdateDivider=5
[MeasureTotalDiskSpace]
Measure=FreeDiskSpace
Drive=C:
Total=1
UpdateDivider=5
DynamicVariables = 1
[MeasureFreeDiskSpace]
Measure=FreeDiskSpace
Drive=C:
UpdateDivider=5
[MeasureUsedDiskSpace]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
UpdateDivider=5
DynamicVariables = 1
[Variables]
;Min = [MeasureUsedDiskSpace]
;Max = [MeasureTotalDiskSpace]
Min = 200
Max = 500
DynamicVariables = 2
Scale=0

[ValueMeasure]
Measure=Calc
Formula= #Max# / #Min#
DynamicVariables = 1

[ScaleMeasure]
Measure=Calc
Formula=15+#Max#-#Min#
DynamicVariables = 1

[ImageMeter]
Meter=Image
ImageName="\CHBlank.png"
x=0
y=0

[ImageMeter2]
;Used to show the yellow hp bar crop based on the volume of the computer
Meter=Image
ImageName="\CHYellow.png"
ImageCrop=(-[ScaleMeasure]),0,[ScaleMeasure],250,2)
x=[ScaleMeasure]
y=0
W=[ScaleMeasure]
H=250
;Values in order
;Move left (negative) Right (positive)
;Move down (negative) Up (positive)
;Number of Pixels to crop from the left to right (Min is 174, Max is 545)
;Number of Pixels to crop from top to bottom
;Origional Starting location (1 : Top left (default) 2 : Top right 3 : Bottom right 4 : Bottom left 5 : Center)
DynamicVariables=1
AntiAlias=1
Here are the associated image files
CHBlank.png: Image
CHYellow: Image

The issue is when I scale using the X value in ImageMeter2 for some reason ImageMeter is resizing and moving, even though it is a seperate Meter.

Sorry for the shotty coding.
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

Re: Meter resizing separate meter

Post by Mor3bane »

there is likely a shared variable

Check the[Variables]section and compare to relevant meters for a similar variable.

Example:

Code: Select all

[Variables]
Size = 25

[MeterImage1]
Meter=Image
X=#Size#
Y=#Size#

[MeterImage2]
Meter=Image
X=#Size#
Y=#Size#
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
Fuzzyketchup
Posts: 4
Joined: July 7th, 2017, 8:23 pm

Re: Meter resizing separate meter

Post by Fuzzyketchup »

Everything I have is in the post above, I don't have a [Variables] tab, instead, I'm using [Min] and [Max] separately. I have checked them but I don't think they are wrong. What's really confusing is that X can be changed to a regular number variable and it will still affect the other meter.

Thanks for the feedback though, I do appreciate any help!