It is currently September 7th, 2024, 11:51 pm

Thread for help with the Shape meter

Get help with creating, editing & fixing problems with skins
User avatar
ikarus1969
Posts: 588
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Thread for help with the Shape meter

Post by ikarus1969 »

sl23 wrote: July 16th, 2024, 11:38 am I just noticed the & character, why have you added that? Is it necessary to work correctly? After evaluation Hidden=([&m2Total:]=0 ? 1 : 0) why the &?
The & is necessary for the nested syntax;
The & is used for using measures with the nested syntax, eg. [&Measure_Test], the # is used for variables with the nested syntax, eg. [#variable2use].

you can use [&Measure_Test] as a "standalone" too as an alternative to [Measure_Test]; the same for variables.

see for example in the docu https://docs.rainmeter.net/manual/variables/ (at the beginning)

citation from the docu: "...values are always dynamically resolved when they are used..."
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Thread for help with the Shape meter

Post by sl23 »

Thanks, I'll take a look :thumbup:
57686174 77696C6C 6265 77696C6C 6265
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Thread for help with the Shape meter

Post by sl23 »

SOLVED
57686174 77696C6C 6265 77696C6C 6265
User avatar
Yincognito
Rainmeter Sage
Posts: 8030
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Thread for help with the Shape meter

Post by Yincognito »

Thankfully, ikarus1969 helped you out to solve this while I was busy with something else, but just to clarify...
sl23 wrote: July 15th, 2024, 8:28 pmApart from the Epsilon, what's that?
It's just a very small value added to a potentially 0 divisor, to prevent the "Division by 0" errors in the log.
sl23 wrote: July 16th, 2024, 9:36 am One last thing, though related to bar meters, why is it this works for the String meters but not the Bar meters?
String: X=([m#CurrentSection#Total:]=0 ? 0 : #BarW#+2)r Works.
Bar: X=([m#CurrentSection#Total:]=0 ? 0 : #BarW#+2)r Fails, moves all bars to X=0.
Bar: X=([m#CurrentSection#:]=0 ? 0 : #BarW#+2)r Fails, needs a skin refresh.
Section names are correct btw.
DiskBar.gif
Apart from using Lua (mentioned just for reference), there's no way of "extracting an index" from a section name in order to use it further. So, if you have an [1] section and a [1Used] section, you'll only be able to get the "1" from the first section, via #CURRENTSECTION#, because the second contains more than the "1" since section names must be unique in a skin. However, you don't need to do that at all: if this positioning works for one meter, just position the other meters in that drive's group relatively to that one which works, via r and R.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Thread for help with the Shape meter

Post by sl23 »

Thanks for the input :thumbup:
I ended up using Bar meters in the end. I found it much easier to do what I wanted. But I am learning a little about Formulas too and how/where to use them, which is good.

I'm just finishing a two year old project. Another Taskbar suite of skins that, funnily enough, sit on the Taskbar! :D
57686174 77696C6C 6265 77696C6C 6265
User avatar
Yincognito
Rainmeter Sage
Posts: 8030
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Thread for help with the Shape meter

Post by Yincognito »

sl23 wrote: July 16th, 2024, 10:26 pmAnother Taskbar suite of skins that, funnily enough, sit on the Taskbar! :D
Maybe you'll find a place to lay down on the taskbar too, obviously as a bar and not as a shape (nor at a bar, for that matter)... :p
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
sl23
Posts: 1600
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Thread for help with the Shape meter

Post by sl23 »

Ah, yeah, a lay down sounds good to an insomniac! :thumbup: :lol:
57686174 77696C6C 6265 77696C6C 6265