Notifications
Clear all

[Closed] How to get imagelist using maxscript?

Hi,
I know a command BitmapIO.classes can get the list of all formats,but it returns like below:

print BitmapIO.classes  
#(Targa, YUV, IFL, BMP, VRImgIO, JPEG, AVI, RLA, RPF, MPG, GIF, TIF, EPS_Image, PSD_I_O, HDRI, DDS, MaxOpenEXR, QTime, CMB, SGI, ...)  

I want to do some like this:

#("*.tga","*.bmp","*.jpg"...)

is there a way to do that?thanks everyone

4 Replies

Interesting question.
I would say no, because it’s a question of naming convention.

A “file.jpg” could possibly has in fact a PNG filetype.

1 Reply
(@momo2012)
Joined: 11 months ago

Posts: 0

Maybe,I know,in fact,I find that different 3dsmax version has different I/O image list,so I tried to get that to match the version,

#("tga","bmp","jpg"...)

or

#(tga,bmp,jpg...)

also ok,so I can get the render output file format from the list.
there is really no way to do that? 🙁

I think I’d just bite the bullet and type this one out manually, I’m sure there is a way but not sure it’s worth the effort, the types of image input don’t change much between max versions.

1 Reply
(@momo2012)
Joined: 11 months ago

Posts: 0

I think the major formats for image maybe enough for users,so i decide use them manually.