ScriptSpot

Forum topic · General Scripting

image sequence to RamPlayer

By JokerMartini · 2011-05-31

Description

I have a .png image sequence that i want to load into the ram player but i want to do it via maxscript. Is there any simple way of load these sequences into the ram player?

Comments (3)

Great.

JokerMartini · 2011-06-01

Thanks Brot,
this sure save a ton of time. I was hoping that the ramplayer would have an additional setting for loading a sequence of images, low and behold I was wrong on that one. It just had to be more complicated than expected haha.
Thanks

br0t · 2011-06-01

youre welcome
but I see in my code, it doesnt make sense to get all files and then pick out the pngs instead of getting only them in the first place, I will fix that^^

There is the  RAMPlayer

br0t · 2011-06-01

There is the

 RAMPlayer  

command, but for a sequence you need to give it an .ifl file. So you have to create one by script, like Anubis shows here http://www.scriptspot.com/3ds-max/scripts/makeifl-0-4-1

I was curious and tried to pick out the important parts:


thePath = "C:\\Users\\Desktop\\myFolder"
theFiles = getFiles (thePath + "\\" + "*.png")

theIfl = createFile (thePath + "\\" + "imgList.ifl")
for f in theFiles do format "%\n" (filenameFromPath f) to:theIfl
close theIfl

RAMPlayer (thePath + "\\" + "imgList.ifl") ""

 

Cheers