Simply use two scales instead of one - they are only named S0 and S1 below to help with their index toggling via the mouse's middle button, otherwise more appropriate names would be HS (horizontal scale) and VS (vertical scale):So what I'm looking to achieve is to get the shapes to follow the same W and H as the background, regardless of the aspect ratio.
Code:
[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1[Variables]W=320H=180S0=1S1=1I=0[BG]Meter=ShapeShape=Rectangle 0,0,(#W#*#S0#),(#H#*#S1#) | Fill Color 091,091,091 | StrokeWidth 0MiddleMouseUpAction=[!SetVariable I (1-#I#)][!UpdateMeter *][!Redraw]MouseScrollUpAction=[!SetVariable S#I# (Clamp(([#S[#I]]+0.1),0.5,5))][!UpdateMeter *][!Redraw]MouseScrollDownAction=[!SetVariable S#I# (Clamp(([#S[#I]]-0.1),0.5,5))][!UpdateMeter *][!Redraw]DynamicVariables=1[Shapes]Meter=ShapeX=0Y=0Shape = Path Path1 | fill color 43, 43, 43 | StrokeWidth 0 | Scale (#S0#),(#S1#),(0),(-125.5)Shape2 = Path Path2 | fill color 58, 58, 58 | StrokeWidth 0 | Scale (#S0#),(#S1#),(0),(-76.5)Shape3 = Path Path3 | fill color 76, 76, 77 | StrokeWidth 0 | Scale (#S0#),(#S1#),(0),(-40)Path1 = 320, 141.4 | LineTo 320, 180 | LineTo 0, 180 | LineTo 0, 125.5 | CurveTo 40, 128, 8.2, 125.8, 19.5, 127.2 | CurveTo 130, 153, 92, 130, 87, 146 | CurveTo 258, 134, 173, 160, 184, 138 | CurveTo 320, 141.4, 282.5, 132.7, 303.2, 136.2 | ClosePath 1Path2 = 320, 101.6 | LineTo 320, 141.4 | CurveTo 258, 134, 303.2, 136.2, 282.5, 132.7 | CurveTo 130, 153, 184, 138, 173, 160 | CurveTo 40, 128, 87, 146, 92, 130 | CurveTo 0, 125.5, 19.5, 127.2, 8.2, 125.8 | LineTo 0, 96.3 | CurveTo 59.5, 76.5, 12.3, 87.8, 34.2, 75.8 | CurveTo 135.5, 107.5, 98.5, 77.5, 101.5, 107.5 | CurveTo 211.5, 79.5, 169.5, 107.5, 181.5, 90.5 | CurveTo 320, 101.6, 233.5, 71.5, 287, 84.8 | ClosePath 1Path3 = 320, 80 | LineTo 320, 101.6 | CurveTo 211.5, 79.5, 287, 84.8, 233.5, 71.5 | CurveTo 135.5, 107.5, 181.5, 90.5, 169.5, 107.5 | CurveTo 59.5, 76.5, 101.5, 107.5, 98.5, 77.5 | CurveTo 0, 96.3, 34.2, 75.8, 12.3, 87.8 | LineTo 0, 40 | CurveTo 103, 71, 27.2, 44.8, 64.7, 60.7 | CurveTo 166, 52, 166, 88, 148, 64 | CurveTo 251, 55, 184, 40, 227, 40 | CurveTo 320, 80, 267.8, 65.5, 292.4, 71.1 | ClosePath 1DynamicVariables=1
Different topic, but I kind of elaborated that a bit here:Also, could you elaborate a little on this please?
[...]
Is there something I can do before exporting the svg to be able to use 0,0 anchor?
https://forum.rainmeter.net/viewtopic.php?t=25334&start=30#p229225
Basically, it's about the position of the individual shape within the Shape meter. I have no idea whether you can control where the topmost / leftmost non transparent pixels of the non transparent "content" (i.e. the "content's position") will be in the exported output, I didn't use the SVG export technique much (if at all). If that isn't possible, then you'll have to Offset (i.e. translate or "move") that "content" in the skin, like described above.
Statistics: Posted by Yincognito — Today, 3:14 pm