Keikonium
Dec 24 2006, 21:42
This may seem like a fairly odd question, but I wanted to know if it were possible for the Track Info Mod to display *random* images from a specified directory. So that each time a song changed, images that are in a track info mod could be switched around.
For example:
$imageabs(2,8,%foobar_profile_directory%\subfolder\*.png,alpha-150)
Where * would tell the track info mod to change the image when a new song is played. Thats just a rough example. I'm sure a better method could be arranged.
I don't know if its already possible, and I just haven't found it, or if it just doesn't exist.
Fifoxtasy
Dec 24 2006, 21:56
as far as i know trackinfomod and singlecoloumnplaylist don't support * wildcards. but you could do this if you know the filenames of your covers. like setting foobar to choose a random image out of some you define. you would need to specify all the filenames tho. (front.png, back.png, etc)
Yotsuya
Dec 24 2006, 22:59
trackinfomod does support wildcards in both $imageabs2() and $fileexists() however there is no real way to tell it to choose randomly from the results of the wildcard match.
You should be able to do something like this, however:
$imageabs2(150,,,,,,2,8,/images\image$rand(5).png,)
To randomly select between images named like this:
image0.png
image1.png
image2.png
image3.png
image4.png
image5.png
all in your foobar images directory.
Keikonium
Jan 2 2007, 16:18
Sorry for the very late reply. Been having personal issues. Anyways, I'm back.
Thank you for that code Yotsuya, but it isn't 'quite' what I need

. It does indeed select images at random, but it keeps doing it lol. I need a code that will make the image random upon a track change. And only a track change.
Is that possible?
Yotsuya
Jan 2 2007, 23:59
Instead of placing the code under a // PerSecond header, place it under a // PerTrack header. This way the images will only change when you change tracks not every second.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.