Notifications
Clear all
[Closed] Accessing Bitmap Values of IFLs?
Sep 30, 2008 3:57 pm
How can you access the bitmap value of an IFL (image file sequence).
2 Replies
Sep 30, 2008 3:57 pm
Or I’m guessing you need to open the IFL file, parse the str value to open the Bmp u actually need.
Sep 30, 2008 3:57 pm
not sure what you’re asking – but if you just want to treat it as a regular bitmap, then openBitmap will do the trick just fine. You can use the .frame property of the bitmap to change to a different frame within the file.
myIFL = "c:\3dsmax5\scenes\maze\out\out0000.ifl"
"c:\3dsmax5\scenes\maze\out\out0000.ifl"
myIFLbmp = openBitmap myIFL
BitMap:c:\3dsmax5\scenes\maze\out\out0000.ifl
myIFLbmp.width
256
myIFLbmp.frame = 0
0
getPixels myIFLbmp [40,241] 1
#((color 255 231 115))
myIFLbmp.frame = 1
true
getPixels myIFLbmp [40,241] 1
#((color 255 255 255))
I don’t think you can get the referenced filename for a given frame directly, though; you would indeed have to parse the IFL yourself. If it’s a basic IFL without frame repetition instructions, that should still be fairly simple… just skip lines until you get to the Nth line which matches the Nth frame.