Simply replace the Shape4 option name with Shape3, because those Shape options have to be numbered continuously.zurielseven wrote: ↑March 3rd, 2021, 3:31 am The ideal is to have a square with a folder shaped "hole" as a shape.
It is currently September 8th, 2024, 4:35 am
Thread for help with the Shape meter
-
- Rainmeter Sage
- Posts: 16499
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Thread for help with the Shape meter
-
- Rainmeter Sage
- Posts: 8030
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Thread for help with the Shape meter
zurielseven wrote: ↑March 3rd, 2021, 3:31 amThe ideal is to have a square with a folder shaped "hole" as a shape.Code: Select all
Meter=Shape X=90 Y=110 Shape=Path Tray | StrokeWidth 1 | StrokeColor 255,255,255,255 | Fill LinearGradient TrayFillGradient TrayFillGradient=90 | #Cream#,210 ; 0.0 | #MediumBlue#,80 ; 1.0 Tray=0,0 | LineTo 420,0 | LineTo 420,420 | LineTo 0,420 | LineTo 0,0 | ClosePath 1 Shape2=Path TrayCutoutPathOne | StrokeWidth 1 | StrokeColor #Cream#,255 | Fill 0,0,0,25 X=90 Y=110 TrayCutoutPathOne=52,34 | LineTo 136,34 | CurveTo 148,42,144,34 | CurveTo 160,50,150,50 | LineTo 216,50 | CurveTo 228,60,228,50 | LineTo 228,170 | CurveTo 218,180,228,180 | LineTo 52,180 | CurveTo 42,170,42,180 | LineTo 42,44 | CurveTo 52,34,42,34 | ClosePath 1 Shape4=Combine Shape | Exclude Shape2
In addition to what balala said (faster than me this time), you might also want to remove the 2nd occurrence of X= and Y= lines. The X and Y options deal with the meter's position, and not with the actual shape one. Since this is a single meter (even though it contains more "shapes"), it only needs one X & Y occurrence (obviously, this occurrence can be ignored as well if X=0 and Y=0, since there would be no point in setting up what are already the "default" values for those options).
-
- Posts: 2
- Joined: March 3rd, 2021, 3:23 am
Re: Thread for help with the Shape meter
Fast, accurate, and skilled! You all are the greatest! Your advices worked like a charm!
-
- Rainmeter Sage
- Posts: 16499
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Thread for help with the Shape meter
I'm glad, if you're talking about my reply.
-
- Rainmeter Sage
- Posts: 8030
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Thread for help with the Shape meter
Excellent then - enjoy Rainmeter and don't hesitate to ask here again, if necessary.zurielseven wrote: ↑March 3rd, 2021, 2:39 pm Fast, accurate, and skilled! You all are the greatest! Your advices worked like a charm!
![Wink ;-)](./images/smilies/innuendo.gif)
-
- Posts: 164
- Joined: October 31st, 2018, 4:11 pm
- Location: Germany
Re: Thread for help with the Shape meter
I have a question about rotating a shape.
In this case see example...
When finished, it should be the needle of a wind direction compass.
The way I have the code (here in the example), the needle rotates too.
BUT, the look is as if the needle deforms as it rotates, which visually looks like a 3D effect. So it has a depth effect (like in a 3D space), but I don't want/need that.
What am I missing here or have I not understood about this topic?
The needle should be 10pixels wide and 16pixels high.
If I understood correctly, I need to specify the center of the needle in the rotate. So 5 for width (half of 10) and 8 for height (half of 16) ...right? Or am I here Youkai-typically once again on the wrong track???
![Confused :???:](./images/smilies/bw.gif)
In this case see example...
Code: Select all
[Rainmeter]
Update=20
DynamicWindowSize=1
AccurateText=1
[mrotate]
Measure=Calc
Formula=(mrotate % 360) + 1
MaxValue=360
FRAME_UPE]
Meter=SHAPE
X=0
Y=40
Shape=Path MyPath | StrokeWidth 0 | Fill Color 255,0,0,255 | Rotate [mrotate],5,8
MyPath=5,0 | LineTo 10,16 | LineTo 5,10 | LineTo 0,16 | ClosePath 1
DynamicVariables=1
The way I have the code (here in the example), the needle rotates too.
BUT, the look is as if the needle deforms as it rotates, which visually looks like a 3D effect. So it has a depth effect (like in a 3D space), but I don't want/need that.
What am I missing here or have I not understood about this topic?
The needle should be 10pixels wide and 16pixels high.
If I understood correctly, I need to specify the center of the needle in the rotate. So 5 for width (half of 10) and 8 for height (half of 16) ...right? Or am I here Youkai-typically once again on the wrong track???
![Whistle :Whistle](./images/smilies/whistling.gif)
![Embarrassed :oops:](./images/smilies/ah.gif)
![Confused :???:](./images/smilies/bw.gif)
- Win11 Pro x64 (23H2 - 22631.3085)
- Rainmeter 4.5.18
- Gigabyte B550i AORUS Pro AX V1.2
- Corsair Venegeance LPX 2x 16GB (32GB) DDR4 3200MHz
- RYZEN 7 5800X
- PowerColor RX570 8GB
- Samsung 980Pro 250GB (NVMe) - Drive C: Windows
- Kingston SNV2S1000G (NVMe) - Drive D: Rainmeter, Skins & Others - Drive D: Games
- NAS Synology DS216j - 2x 1GB HDDs - My Main Backup & Data Storage in my Home-Network
- Mon 1: 24" HP 24f (1920 x 1080 @ 75Hz) - Primary
- Mon 2: 22" Philips 226VL (1920 x 1080 @ 60Hz) - Secondary 1
- Mon 3: 50" Philips 50PUS7304/12 (3840 x 2160 @ 60Hz) - Secondary 2
- Corsair CX 650M Power Supply
- NZXT H210 Case
- ISP Vodafone with 1000/50 Mbit Cable Internet
The absolutly High-End Machine on 2024 ... at least the graphics card
![ROFL :rofl:](./images/smilies/bv.gif)
- Rainmeter 4.5.18
- Gigabyte B550i AORUS Pro AX V1.2
- Corsair Venegeance LPX 2x 16GB (32GB) DDR4 3200MHz
- RYZEN 7 5800X
- PowerColor RX570 8GB
- Samsung 980Pro 250GB (NVMe) - Drive C: Windows
- Kingston SNV2S1000G (NVMe) - Drive D: Rainmeter, Skins & Others - Drive D: Games
- NAS Synology DS216j - 2x 1GB HDDs - My Main Backup & Data Storage in my Home-Network
- Mon 1: 24" HP 24f (1920 x 1080 @ 75Hz) - Primary
- Mon 2: 22" Philips 226VL (1920 x 1080 @ 60Hz) - Secondary 1
- Mon 3: 50" Philips 50PUS7304/12 (3840 x 2160 @ 60Hz) - Secondary 2
- Corsair CX 650M Power Supply
- NZXT H210 Case
- ISP Vodafone with 1000/50 Mbit Cable Internet
The absolutly High-End Machine on 2024 ... at least the graphics card
![Embarrassed :oops:](./images/smilies/ah.gif)
![Shocked O.O](./images/smilies/ai.gif)
![ROFL :rofl:](./images/smilies/bv.gif)
-
- Rainmeter Sage
- Posts: 8030
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Thread for help with the Shape meter
The needle is not deformed, it's just "cropped" by the coordinates / dimensions of the meter / skin. Setting a background for the skin makes that clearer:Youkai1977 wrote: ↑March 29th, 2021, 10:14 am BUT, the look is as if the needle deforms as it rotates, which visually looks like a 3D effect. So it has a depth effect (like in a 3D space), but I don't want/need that.
What am I missing here or have I not understood about this topic?
The needle should be 10pixels wide and 16pixels high.
If I understood correctly, I need to specify the center of the needle in the rotate. So 5 for width (half of 10) and 8 for height (half of 16) ...right? Or am I here Youkai-typically once again on the wrong track???![]()
![]()
![]()
Code: Select all
[Rainmeter]
Update=20
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=255,255,0,255
[mrotate]
Measure=Calc
Formula=(mrotate % 360) + 1
MaxValue=360
[FRAME_UPE]
Meter=Shape
X=0
Y=40
Shape=Path MyPath | StrokeWidth 0 | Fill Color 255,0,0,255 | Rotate [mrotate],5,8
MyPath=5,0 | LineTo 10,16 | LineTo 5,10 | LineTo 0,16 | ClosePath 1
DynamicVariables=1
You probably now think you should have a (16,16) "viewport" for the shape, do you?
![Big Grin :D](./images/smilies/ag.gif)
Hopefully I've been clear with this - if you need more help or can't figure out things by yourself, I'll be around.
![Wink ;-)](./images/smilies/innuendo.gif)
EDIT: Couldn't help it, so, here's the path coordinates for your shape to be displayed in a (20,20) imaginary "viewport":
Code: Select all
MyPath=10,2 | LineTo 15,18 | LineTo 10,12 | LineTo 5,18 | ClosePath 1
EDIT2: Or, even easier, without modifying anything from the path coordinates, just set the appropriate X and Y for the meter (the right and bottom sides will dynamically adjust because the skin has DynamicWindowSize=1):
Code: Select all
X=5
Y=2
-
- Posts: 164
- Joined: October 31st, 2018, 4:11 pm
- Location: Germany
Re: Thread for help with the Shape meter
First of all, thank you for your answer/help.
Pythagoras ... Oh God Math ....
I think I have understood it so far, or not ...
Currently it looks like this in my skin:
Means, if I set your example path, it knocks the needle out of the middle of course. That's why in the posted code the MyPath is also at 5,0. So I have it in the middle, in the current case.
Whether I am correct with it now, is not completely clear to me despite your super explanation however. I think times rather not. Blitzmerker in things Rainmeter I'm not currently (too much else in the head just now).
Generally I have in the gesamtem Skin something unusual coordinates. Since this is in total a clock (with alarm clock function) and weather station. The whole thing then still set in enstprechende containers.
I know, say nothing. Why simple, if it also goes so beautifully complicated![Embarrassed :oops:](./images/smilies/ah.gif)
Here the Complete Code (behind SPOILER):
1.) weatheralarmclock.ini 2. weatheralarmclockdata.inc
Pythagoras ... Oh God Math ....
![Shocked O.O](./images/smilies/ai.gif)
I think I have understood it so far, or not ...
Currently it looks like this in my skin:
Code: Select all
;=== WEATHER WIND & HUMID-FRAME ===================
[WindHumidFrame]
Meter=SHAPE
X=1
Y=39
Shape=Rectangle 0,0,28,14 | Stroke 1.5 | Stroke Color #Color2##Alpha1# | Fill Color #Color0##Alpha0#
Shape2=Line 14,1,14,3 | StrokeWidth 2 | Stroke Color #Color2##Alpha1#
Shape3=Line 25,14,27,14 | StrokeWidth 2 | Stroke Color #Color2##Alpha1#
Shape4=Line 14,25,14,27 | StrokeWidth 2 | Stroke Color #Color2##Alpha1#
Shape5=Line 1,14,3,14 | StrokeWidth 2 | Stroke Color #Color2##Alpha1#
Shape6=Rectangle 32,0,28,14 | Stroke 1.5 | Stroke Color #Color2##Alpha1# | Fill Color #Color0##Alpha0#
Shape7=Rectangle 48,0,14,14
UpdateDivider=-1
Container=CONTAINER_Weather
;=== WEATHER WIND DIRECTION ICON ==================
[WindDirIcon]
Meter=SHAPE
X=10
Y=45
Shape=Path MyPath | StrokeWidth 0 | Fill Color #Color1##Alpha1# | Rotate [mWINDDir],5,8
MyPath=5,0 | LineTo 10,16 | LineTo 5,10 | LineTo 0,16 | ClosePath 1
DynamicVariables=1
UpdateDivider=-1
Container=CONTAINER_Weather
Group=WEATHER
Whether I am correct with it now, is not completely clear to me despite your super explanation however. I think times rather not. Blitzmerker in things Rainmeter I'm not currently (too much else in the head just now).
Generally I have in the gesamtem Skin something unusual coordinates. Since this is in total a clock (with alarm clock function) and weather station. The whole thing then still set in enstprechende containers.
I know, say nothing. Why simple, if it also goes so beautifully complicated
![Embarrassed :oops:](./images/smilies/ah.gif)
Here the Complete Code (behind SPOILER):
1.) weatheralarmclock.ini
- Win11 Pro x64 (23H2 - 22631.3085)
- Rainmeter 4.5.18
- Gigabyte B550i AORUS Pro AX V1.2
- Corsair Venegeance LPX 2x 16GB (32GB) DDR4 3200MHz
- RYZEN 7 5800X
- PowerColor RX570 8GB
- Samsung 980Pro 250GB (NVMe) - Drive C: Windows
- Kingston SNV2S1000G (NVMe) - Drive D: Rainmeter, Skins & Others - Drive D: Games
- NAS Synology DS216j - 2x 1GB HDDs - My Main Backup & Data Storage in my Home-Network
- Mon 1: 24" HP 24f (1920 x 1080 @ 75Hz) - Primary
- Mon 2: 22" Philips 226VL (1920 x 1080 @ 60Hz) - Secondary 1
- Mon 3: 50" Philips 50PUS7304/12 (3840 x 2160 @ 60Hz) - Secondary 2
- Corsair CX 650M Power Supply
- NZXT H210 Case
- ISP Vodafone with 1000/50 Mbit Cable Internet
The absolutly High-End Machine on 2024 ... at least the graphics card
![ROFL :rofl:](./images/smilies/bv.gif)
- Rainmeter 4.5.18
- Gigabyte B550i AORUS Pro AX V1.2
- Corsair Venegeance LPX 2x 16GB (32GB) DDR4 3200MHz
- RYZEN 7 5800X
- PowerColor RX570 8GB
- Samsung 980Pro 250GB (NVMe) - Drive C: Windows
- Kingston SNV2S1000G (NVMe) - Drive D: Rainmeter, Skins & Others - Drive D: Games
- NAS Synology DS216j - 2x 1GB HDDs - My Main Backup & Data Storage in my Home-Network
- Mon 1: 24" HP 24f (1920 x 1080 @ 75Hz) - Primary
- Mon 2: 22" Philips 226VL (1920 x 1080 @ 60Hz) - Secondary 1
- Mon 3: 50" Philips 50PUS7304/12 (3840 x 2160 @ 60Hz) - Secondary 2
- Corsair CX 650M Power Supply
- NZXT H210 Case
- ISP Vodafone with 1000/50 Mbit Cable Internet
The absolutly High-End Machine on 2024 ... at least the graphics card
![Embarrassed :oops:](./images/smilies/ah.gif)
![Shocked O.O](./images/smilies/ai.gif)
![ROFL :rofl:](./images/smilies/bv.gif)
-
- Rainmeter Sage
- Posts: 8030
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Thread for help with the Shape meter
Well, if no part of the needle is cut off, you are correct - as simple as that. But seeing your X is 10 and the shape is similarly dimensioned, I believe it's all good. The minimum for X in your case was roughly 5, as per my last edit, so 10 is more than ok.Youkai1977 wrote: ↑March 29th, 2021, 12:34 pmWhether I am correct with it now, is not completely clear to me despite your super explanation however.
![Wink ;-)](./images/smilies/innuendo.gif)
-
- Posts: 164
- Joined: October 31st, 2018, 4:11 pm
- Location: Germany
Re: Thread for help with the Shape meter
Well then I'll leave it that way for now. Time will tell if I'm in line with the coordinates.Yincognito wrote: ↑March 29th, 2021, 12:43 pm Well, if no part of the needle is cut off, you are correct - as simple as that. But seeing your X is 10 and the shape is similarly dimensioned, I believe it's all good. The minimum for X in your case was roughly 5, as per my last edit, so 10 is more than ok.![]()
The reason I am teasing is that I have shown the compass with pictures (* .png files) beforehand. But since my goal is to code a suite that is as economical as possible (storage space and CPU performance) (I remember our conversation with my Visualizer a few weeks ago), I am now trying to replace the images with shapes.
Anyway, thanks again for the help
![Smiler :)](./images/smilies/ab.gif)
PS .: Yeah, I only saw your EDIT now
- Win11 Pro x64 (23H2 - 22631.3085)
- Rainmeter 4.5.18
- Gigabyte B550i AORUS Pro AX V1.2
- Corsair Venegeance LPX 2x 16GB (32GB) DDR4 3200MHz
- RYZEN 7 5800X
- PowerColor RX570 8GB
- Samsung 980Pro 250GB (NVMe) - Drive C: Windows
- Kingston SNV2S1000G (NVMe) - Drive D: Rainmeter, Skins & Others - Drive D: Games
- NAS Synology DS216j - 2x 1GB HDDs - My Main Backup & Data Storage in my Home-Network
- Mon 1: 24" HP 24f (1920 x 1080 @ 75Hz) - Primary
- Mon 2: 22" Philips 226VL (1920 x 1080 @ 60Hz) - Secondary 1
- Mon 3: 50" Philips 50PUS7304/12 (3840 x 2160 @ 60Hz) - Secondary 2
- Corsair CX 650M Power Supply
- NZXT H210 Case
- ISP Vodafone with 1000/50 Mbit Cable Internet
The absolutly High-End Machine on 2024 ... at least the graphics card
![ROFL :rofl:](./images/smilies/bv.gif)
- Rainmeter 4.5.18
- Gigabyte B550i AORUS Pro AX V1.2
- Corsair Venegeance LPX 2x 16GB (32GB) DDR4 3200MHz
- RYZEN 7 5800X
- PowerColor RX570 8GB
- Samsung 980Pro 250GB (NVMe) - Drive C: Windows
- Kingston SNV2S1000G (NVMe) - Drive D: Rainmeter, Skins & Others - Drive D: Games
- NAS Synology DS216j - 2x 1GB HDDs - My Main Backup & Data Storage in my Home-Network
- Mon 1: 24" HP 24f (1920 x 1080 @ 75Hz) - Primary
- Mon 2: 22" Philips 226VL (1920 x 1080 @ 60Hz) - Secondary 1
- Mon 3: 50" Philips 50PUS7304/12 (3840 x 2160 @ 60Hz) - Secondary 2
- Corsair CX 650M Power Supply
- NZXT H210 Case
- ISP Vodafone with 1000/50 Mbit Cable Internet
The absolutly High-End Machine on 2024 ... at least the graphics card
![Embarrassed :oops:](./images/smilies/ah.gif)
![Shocked O.O](./images/smilies/ai.gif)
![ROFL :rofl:](./images/smilies/bv.gif)