It is currently October 9th, 2024, 3:25 pm
Looking for a multi-source picture frame
-
- Posts: 23
- Joined: June 13th, 2014, 5:18 pm
Looking for a multi-source picture frame
Hello all. I hope this is the right place to post. I have a picture frame as part of my set up and it points to a directory full of images. But I would like to mix things up a little bit and draw from other folders. Currently, the frame only supports one directory at a time, so I have to edit the skin and point to a new directory. I was wondering if it is possible to either modify my skin (which I can post here if necessary) or if there is a multi-directory picture frame available? Thanks in advance
-
- Rainmeter Sage
- Posts: 8395
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Looking for a multi-source picture frame
The code of your "picture frame" (which is just a description, it has no real functional meaning, since it could be done in various ways) would be required to see what this is all about, yes. If you can link or pack the entire skin for this examination, even better. To answer your question, yes, what you want is possible, it's just that we don't yet know what you're referring to in terms of code, i.e. how is that "picture frame" drawing from and pointing to the said folder.Traxan wrote: ↑July 29th, 2023, 5:05 am Hello all. I hope this is the right place to post. I have a picture frame as part of my set up and it points to a directory full of images. But I would like to mix things up a little bit and draw from other folders. Currently, the frame only supports one directory at a time, so I have to edit the skin and point to a new directory. I was wondering if it is possible to either modify my skin (which I can post here if necessary) or if there is a multi-directory picture frame available? Thanks in advance
-
- Posts: 23
- Joined: June 13th, 2014, 5:18 pm
Re: Looking for a multi-source picture frame
Here is the code:
Code: Select all
[Variables]
ImagePath=d:\pix\
;Define Subfolders (1 = Yes, 0 = NO)
SubFolders=0
FileFilter=*.jpg;*.jpeg;*.png;*.bmp;*.gif
[MeterShapeRectangle]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,752,509 | Fill Color 0,0,0 | StrokeWidth 2 | StrokeColor 255,255,255,75
; Documentation: https://docs.rainmeter.net/manual-beta/meters/shape/#Rectangle
;-------------------
User Picture
;-------------------
[Picture]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#ImagePath#
FileFilter=#FileFilter#
Subfolders=#SubFolders#
UpdateDivider=10
;-------------------
[Slideshow]
MeasureName=Picture
Meter=IMAGE
X=2
Y=2
W=750
H=507
Hidden=0
LeftMouseupAction=["#ImagePath#"]
PreserveAspectRatio=1
Last edited by eclectic-tech on July 30th, 2023, 3:03 am, edited 1 time in total.
Reason: Please use the code tag </> when posting codes.
Reason: Please use the code tag </> when posting codes.
-
- Rainmeter Sage
- Posts: 8395
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Looking for a multi-source picture frame
Nice slideshow you have there, thanks for posting the code. As you probably noticed, Rainmeter measures mostly work with single instances of something, so while there isn't a direct way to achieve this in a single measure, you can always multiply the Quote plugin one to as many measures as you need folders to draw images from, and then use Random in a Calc measure to choose which output from those measures to display. Can you do this by yourself or you need help on it?Traxan wrote: ↑July 30th, 2023, 12:59 am Here is the code:
Code: Select all
[Variables] ImagePath=d:\pix\ ;Define Subfolders (1 = Yes, 0 = NO) SubFolders=0 FileFilter=*.jpg;*.jpeg;*.png;*.bmp;*.gif [MeterShapeRectangle] Meter=Shape X=1 Y=1 Shape=Rectangle 0,0,752,509 | Fill Color 0,0,0 | StrokeWidth 2 | StrokeColor 255,255,255,75 ; Documentation: https://docs.rainmeter.net/manual-beta/meters/shape/#Rectangle ;------------------- User Picture ;------------------- [Picture] Measure=Plugin Plugin=Plugins\QuotePlugin.dll PathName=#ImagePath# FileFilter=#FileFilter# Subfolders=#SubFolders# UpdateDivider=10 ;------------------- [Slideshow] MeasureName=Picture Meter=IMAGE X=2 Y=2 W=750 H=507 Hidden=0 LeftMouseupAction=["#ImagePath#"] PreserveAspectRatio=1
-
- Rainmeter Sage
- Posts: 8395
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Looking for a multi-source picture frame
Something like this:Yincognito wrote: ↑July 30th, 2023, 9:35 amyou can always multiply the Quote plugin one to as many measures as you need folders to draw images from, and then use Random in a Calc measure to choose which output from those measures to display
Code: Select all
[Variables]
PictureCount=3
ImagePath1=d:\pix\
SubFolders1=0
FileFilter1=*.jpg;*.jpeg;*.png;*.bmp;*.gif
ImagePath2=d:\mix\
SubFolders2=0
FileFilter2=*.jpg;*.jpeg;*.png;*.bmp;*.gif
ImagePath3=d:\fix\
SubFolders3=1
FileFilter3=*.jpg;*.jpeg;*.png;*.bmp;*.gif
[MeterShapeRectangle]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,752,509 | Fill Color 0,0,0 | StrokeWidth 2 | StrokeColor 255,255,255,75
---Measures---
[Picture1]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#ImagePath1#
FileFilter=#FileFilter1#
Subfolders=#SubFolders1#
UpdateDivider=10
[Picture2]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#ImagePath2#
FileFilter=#FileFilter2#
Subfolders=#SubFolders2#
UpdateDivider=10
[Picture3]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#ImagePath3#
FileFilter=#FileFilter3#
Subfolders=#SubFolders3#
UpdateDivider=10
[PictureOutput]
Measure=Calc
Formula=Random
LowBound=1
HighBound=#PictureCount#
UpdateRandom=1
UpdateDivider=10
RegExpSubstitute=1
Substitute="^(\d+)$":"Picture\1"
DynamicVariables=1
---Meters---
[Slideshow]
Meter=Image
Hidden=0
X=2
Y=2
W=750
H=507
PreserveAspectRatio=1
MeasureName=[PictureOutput]
LeftMouseUpAction=["[#ImagePath[&PictureOutput:]]"]
DynamicVariables=1
You can check section variables and nested variables to understand why I had to use the syntax I did in the MeasureName and LeftMouseUpAction.
-
- Posts: 23
- Joined: June 13th, 2014, 5:18 pm
Re: Looking for a multi-source picture frame
It works nicely, thank you.
-
- Rainmeter Sage
- Posts: 8395
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
-
- Posts: 23
- Joined: June 13th, 2014, 5:18 pm
Re: Looking for a multi-source picture frame
Well, I have come across a very unusual bug.
The frame cannot handle more than five directories. I tried adding a sixth folder directory, but all it ever did was put up a black image when it hit that directory. I know this because I clicked on the black image and it opened up the folder for number six. The way this frame works is if you click on the picture frame, the active folder that it is drawing from pops up on your screen.
The bottom line is I cannot have more than five active folders cycling through this frame. Is this a bug in the INI or in Rainmeter?
The frame cannot handle more than five directories. I tried adding a sixth folder directory, but all it ever did was put up a black image when it hit that directory. I know this because I clicked on the black image and it opened up the folder for number six. The way this frame works is if you click on the picture frame, the active folder that it is drawing from pops up on your screen.
The bottom line is I cannot have more than five active folders cycling through this frame. Is this a bug in the INI or in Rainmeter?
-
- Rainmeter Sage
- Posts: 8395
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Looking for a multi-source picture frame
Most likely, you forgot to add something to your code. If it's about a similar one to the above, can you post what you have again to see what's missing or done incorrectly?Traxan wrote: ↑September 3rd, 2023, 3:13 am Well, I have come across a very unusual bug.
The frame cannot handle more than five directories. I tried adding a sixth folder directory, but all it ever did was put up a black image when it hit that directory. I know this because I clicked on the black image and it opened up the folder for number six. The way this frame works is if you click on the picture frame, the active folder that it is drawing from pops up on your screen.
The bottom line is I cannot have more than five active folders cycling through this frame. Is this a bug in the INI or in Rainmeter?
-
- Posts: 23
- Joined: June 13th, 2014, 5:18 pm
Re: Looking for a multi-source picture frame
As it turns out, in the process of pasting in the code I spotted the problem. I forgot to add a sixth entry for the Measures section. So, false alarm, my bad