No worries, it happens.
![Wink ;-)](./images/smilies/innuendo.gif)
Is it still a folder with many subfolders, or all files are in the same folder? In other words, are you still using this type of code, or this one? If the code is still not a thousand lines long, can you post it? The example I posted should work randomly enough, if your subfolders have enough images in them. On the other hand, if one of your subfolders only has 3 images, one of those 3 will always be part of the list from which [PictureOutput] will randomly choose the final image to be displayed.Traxan wrote: ↑June 24th, 2024, 6:30 pm I got a problem with this bugger. Despite having a folder with hundreds of pictures to choose from, it regularly and repeatedly picks the the same photos over and over. I see the same pictures over and over while others are never or rarely show. There's nothing in the code to explain such favoritism, so what else could it be?
Could you please post the current code of the Quote plugin measure? Doesn't really make sense this way.Traxan wrote: ↑June 24th, 2024, 6:30 pm I got a problem with this bugger. Despite having a folder with hundreds of pictures to choose from, it regularly and repeatedly picks the the same photos over and over. I see the same pictures over and over while others are never or rarely show. There's nothing in the code to explain such favoritism, so what else could it be?
Here is the top of the code. All I changed was the folder namesYincognito wrote: ↑June 24th, 2024, 7:28 pm Is it still a folder with many subfolders, or all files are in the same folder? In other words, are you still using this type of code, or this one? If the code is still not a thousand lines long, can you post it? The example I posted should work randomly enough, if your subfolders have enough images in them. On the other hand, if one of your subfolders only has 3 images, one of those 3 will always be part of the list from which [PictureOutput] will randomly choose the final image to be displayed.
That being said, I dont know how the Quote plugin or the Random Calc work internally, though they should choose random numbers properly.
Code: Select all
[Variables]
PictureCount=3
ImagePath1=d:\pix\folder1
SubFolders1=0
FileFilter1=*.jpg;*.jpeg;*.png;*.bmp;*.gif
ImagePath2=d:\pix\folder 2
SubFolders2=0
FileFilter2=*.jpg;*.jpeg;*.png;*.bmp;*.gif
ImagePath3=d:\pix\folder3
SubFolders3=0
FileFilter3=*.jpg;*.jpeg;*.png;*.bmp;*.gif
[MeterShapeRectangle]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,752,932 | Fill Color 0,0,0 | StrokeWidth 2 | StrokeColor 255,255,255,75
I see, thanks. Are all your images currently from either your main / parent folder or from one of its subfolders? Because if we're now talking about files from a single main / parent folder and its subfolders, you could just use the example in the manual and let QuotePlugin choose randomly from the entire set. The only reason for the implementation I proposed earlier was because you wanted to look into multiple folders that were not from the same main / parent folder. If in the meantime you moved your images in either a single "root" folder or one of its subfolders, then the solution becomes much simpler.
Quote plugin measure is the measure which randomly chooses images from the folder specified into the PathName option of the measure. I assume your code uses such a measure (or more, based on the posted variables) which returns an image, especially that in one of your previous posts you had such a measure ([Picture]). This returned image is repeating itself, if I understand your problem.
Here is a skin made by jsmorley which specifically targets this described "oddity":Using the Quote plugin is relatively simple, but has one downside. It's "random" in the sense of throwing a dice, not in the sense of picking and discarding a card from a deck. So the fewer files you have in the folder, the more likely it is that you will get a "repeat".