Code: Select all
[meterIrisFrame]
meter=Image
ImageTint=255,255,255,255
x=220
y=225
w=700
h=700
ImageName="#@#Iris\Iris[measure value].png"
DynamicVariables=1
Hidden=1
Sorry forgot to enclose the code the first time.
Possibly ?
Code: Select all
[meterIrisFrame]
meter=Image
ImageTint=255,255,255,255
x=220
y=225
w=700
h=700
ImageName="#@#Iris\Iris[measure value].png"
DynamicVariables=1
Hidden=1
Yes, check my last reply. Obviously the path will depend on how you named the images yourself, but I suppose their are still "indexed" with 0, 1, and so on at the end, so it looks about right. Instead of [measure value] it would be the [Loop] measure from my code (which you can rename it to your liking, if desired). The start, end and increment values would have to be adjusted for your case - remember, you only need to use 1 set of the iris images (either the closed to open one or the open to closed one, depending on what you want). The left mouse up action options from my code can easily be converted to your button command ones, you only need to copy paste and replace the bangs in the latter.LuciferVisuals wrote: ↑April 29th, 2023, 6:37 pmCode: Select all
[meterIrisFrame] meter=Image ImageTint=255,255,255,255 x=220 y=225 w=700 h=700 ImageName="#@#Iris\Iris[measure value].png" DynamicVariables=1 Hidden=1
Sorry forgot to enclose the code the first time.
Possibly ?
Let me know if you still have trouble in "converting" my non-image example to your image-featured one. You shouldn't, but if you still do, I'll post the adaptation (using my own 6 images, since I don't have the iris ones).
I was being a bit slow there, when i put it in a file and ran it, only then I realized it was just the number bit and would need changing to work with images, Ill have a go at it tomorrow.Yincognito wrote: ↑April 29th, 2023, 7:18 pm Let me know if you still have trouble in "converting" my non-image example to your image-featured one. You shouldn't, but if you still do, I'll post the adaptation (using my own 6 images, since I don't have the iris ones).
Yep. The main "change" is to add the measure number to your image path...LuciferVisuals wrote: ↑April 29th, 2023, 7:35 pm I was being a bit slow there, when i put it in a file and ran it, only then I realized it was just the number bit and would need changing to work with images, Ill have a go at it tomorrow.
Thanks for it.
Keith
So simple that you can try to create it again yourself without looking, once you get the idea (seriously, starting from scratch with a simple skin helps):
Code: Select all
[Rainmeter]
Update=25
DynamicWindowSize=1
AccurateText=1
---Measures---
[Loop]
Paused=1
Measure=Loop
StartValue=0
EndValue=7
Increment=1
LoopCount=1
---Meters---
[IrisFrame]
Meter=Image
W=300
H=169
MeasureName=Loop
ImageName=#@#%1.jpg
[CloseIris]
Meter=String
X=75
Y=170
W=150
SolidColor=255,0,0,255
StringAlign=Center
Padding=0,10,0,10
AntiAlias=1
Text=Close Iris
LeftMouseUpAction=[!PauseMeasure Loop][!SetOption Loop InvertMeasure 0][!UnpauseMeasure Loop]
[OpenIris]
Meter=String
X=225
Y=170
W=150
SolidColor=0,0,255,255
StringAlign=Center
Padding=0,10,0,10
AntiAlias=1
Text=Open Iris
LeftMouseUpAction=[!PauseMeasure Loop][!SetOption Loop InvertMeasure 1][!UnpauseMeasure Loop]
I will admit it looks it, but I am stuck on my previous code and my mind simply will not move on until I understand THIS problem.Yincognito wrote: ↑April 29th, 2023, 8:23 pm So simple that you can try to create it again yourself without looking,
Code: Select all
[measurecloseIrisFrameCalc]
Measure=Loop
StartValue=0
EndValue=7
Increment=1
LoopCount=1
IfCondition=(#CURRENTSECTION#>=8)
IfTrueAction=[!DisableMeasure "#CURRENTSECTION#"][!Redraw]
Disabled=1
Code: Select all
[MeasureOpenIrisFrameCalc]
Measure=Loop
StartValue=7
EndValue=0
Increment=-1
LoopCount=1
IfCondition=(#CURRENTSECTION#>=8)
IfTrueAction=[!DisableMeasure "#CURRENTSECTION#"][!Redraw]
Disabled=1
Code: Select all
[MeasureOpenIrisFrameCalc]
Measure=Loop
StartValue=7
EndValue=0
Increment=-1
LoopCount=1
IfCondition=(#CURRENTSECTION#>=8)
IfTrueAction=[!DisableMeasure "#CURRENTSECTION#"][!Redraw]
Disabled=1
Please Ignore my other question about my old code for the moment. This example has revealed something interesting.
Right all fixed...... But I never actually found the cause of the problem.Yincognito wrote: ↑April 29th, 2023, 8:23 pm
Normally, such animations done on demand (i.e. not endless) are better done using ActionTimer measures, instead of a fast skin Update rate, in order to save the CPU / GPU usage when not animating, but this works fine as a simple example.
I believe you do (or you did, now that you sorted things out in another way). The #CURRENTSECTION# / measure value in the IfCondition will never be greater or equal to 8, because it only goes from 0 to 7 (or 7 to 0, depending on direction). I wanted to mention this much earlier, while you were still chatting with balala, but thought that there might be another reason I wasn't aware for its inclusion. Now, I'm not saying this is what caused you problems, but it's something that stands out from that measure's code.LuciferVisuals wrote: ↑April 30th, 2023, 9:06 amBUT WOULD REALLY LIKE TO UNDERSTAND why this is not working first?
Am I missing something obvious?