Message 1 of 9
scripted IFL file

Not applicable
01-18-2011
08:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm having trouble using an image sequence of about 20000 tiff files as a bitmap. Max seems to be choking when creating the IFL file. It either returns to the Material Editor without the IFL, or just crashes. So I'm trying to script the IFL file.
My problem is that I need five digits at the end of all file names. For example, image_00002.tif and image_00456.tif. How can I script this?
Thanks
Mark
f = createfile "C:\\file.txt"
txt = ""
for i = 1 to 20000 do
(
txt = ("image_" + i as string + ".tif")
format txt to: f
format "\n" to: f
i += 1
)
close f
My problem is that I need five digits at the end of all file names. For example, image_00002.tif and image_00456.tif. How can I script this?
Thanks
Mark