There are no subfolders.
It's an odd one. I have a folder of 700+ images but there are certain ones that are shown over and over. But since I am not always watching it's hard to say which ones are not showing up.
It is currently March 29th, 2024, 5:26 am
Looking for a non-stretching picture frame
-
- Posts: 20
- Joined: June 13th, 2014, 5:18 pm
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: Looking for a non-stretching picture frame
I don't know the reason and workaround for your situation, but... Just a suggestion. How about using FileView plugin instead of Quote plugin? For example;
PS.: Logic to get random file path is originally by FreeRaider, thanks.
Code: Select all
[Variables]
ImagePath=d:\pix\
SubFolders=0
FileFilter=jpg;jpeg;png;bmp
ChangeInterval=10
[MeterShapeRectangle]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,402,271 | Fill Color 0,0,0 | StrokeWidth 2 | StrokeColor 255,255,255,75
[MeasureFolder]
Measure=Plugin
Plugin=FileView
Path=#ImagePath#
Recursive=#SubFolders#
Extensions=#FileFilter#
FinishAction=[!EnableMeasure MeasureRandom][!EnableMeasure MeasureImagePath]
[MeasureCount]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileCount
[MeasureRandom]
Measure=Calc
Formula=Random
UniqueRandom=1
LowBound=1
HighBound=[MeasureCount]
DynamicVariables=1
UpdateDivider=#ChangeInterval#
Disabled=1
[MeasureImagePath]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
IgnoreCount=1
Index=[MeasureRandom]
DynamicVariables=1
UpdateDivider=#ChangeInterval#
Disabled=1
[Slideshow]
MeasureName=MeasureImagePath
Meter=IMAGE
X=2
Y=2
W=400
H=269
Hidden=0
LeftMouseupAction=["#ImagePath#"]
PreserveAspectRatio=1
-
- Posts: 32
- Joined: March 10th, 2017, 1:47 am
Re: Looking for a non-stretching picture frame
Thanks for this... however, MeasureImagePath is never populated for me. I have about 25000 images in the folder+subfolders that I am pointing to. I see MeasureRandom changing every interval, but it is not actually deriving a filename to display.
-
- Rainmeter Sage
- Posts: 5384
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Looking for a non-stretching picture frame
What value did you set as the "ImagePath"?
Set "SubFolders=1" to search those folders.
Code: Select all
[Variables]
ImagePath=d:\pix\
SubFolders=0
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 32
- Joined: March 10th, 2017, 1:47 am
Re: Looking for a non-stretching picture frame
Yes, I set imagePath to P:\Photos\ (a mapped drive from my NAS) and enabled subfolder search.eclectic-tech wrote: ↑September 5th, 2019, 1:21 pm What value did you set as the "ImagePath"?
Set "SubFolders=1" to search those folders.Code: Select all
[Variables] ImagePath=d:\pix\ SubFolders=0
-
- Rainmeter Sage
- Posts: 5384
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Looking for a non-stretching picture frame
Not sure why it is not working for you.
It may be because it is a mapped drive; I will try to test FileView a bit later to see if it has any issues reading those types (it shouldn't).
You could try adding an update divider and an update command to re-read the disk when the main measure is updated; be aware this can be very CPU intensive, so use a fairly large update divider value. This will cause the measure to read the disc every 60th update for changes; if for some reason your mapped drive is not available when the skin is loaded, this may get it working.
Code: Select all
[MeasureFolder]
...
UpdateDivider=60
OnUpdateAction=[!CommandMeasure MeasureFolder Update]
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 32
- Joined: March 10th, 2017, 1:47 am
Re: Looking for a non-stretching picture frame
thanks... I did try with a local folder with about 20000 images in it (in various subfolders) and it also never updates the MeasureImagePatheclectic-tech wrote: ↑September 5th, 2019, 4:18 pm Not sure why it is not working for you.
It may be because it is a mapped drive; I will try to test FileView a bit later to see if it has any issues reading those types (it shouldn't).
You could try adding an update divider and an update command to re-read the disk when the main measure is updated; be aware this can be very CPU intensive, so use a fairly large update divider value. This will cause the measure to read the disc every 60th update for changes; if for some reason your mapped drive is not available when the skin is loaded, this may get it working.The code works fine for my wallpaper folder on my physical drive...Code: Select all
[MeasureFolder] ... UpdateDivider=60 OnUpdateAction=[!CommandMeasure MeasureFolder Update]
I assume the FileView plugin returns an array of size MeasureCount with each element being a full path to an image, and then the random number is used to index into that array to get the path... and this is what doesn't seem to work. Can I dump to the log the array somehow?
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: Looking for a non-stretching picture frame
To get file path including subfolders by FileView plugin, we have to set Recursive= option to 2. So SubFolders variable must be set to "2"
-
- Posts: 32
- Joined: March 10th, 2017, 1:47 am
Re: Looking for a non-stretching picture frame
Doh! It always comes down to something simple.... thank you! Working fine now...
FileView is so much faster enumerating my 50,000 images than QuotePlugin was
-
- Rainmeter Sage
- Posts: 5384
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Looking for a non-stretching picture frame
Good catch mak_kawa! I completely overlooked the Recursive setting
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::