  | | | Creating a new file | Creating a new file 2003-12-10 - By Bryan Ewert
Back ? from Tue, 9 Dec 2003 09:17:57 -0800
> With fileBrowserDialog I couldn't figure out how to specify my own file > type filter. It seems filters are restricted to Maya's pre-defined file > types.
If you register a filetype via a MPxFileTranslator you can specify its name as the -fileType flag. In my trial with this, however, even though the filetype shown in the dialog was the registered type, the extension associated with this type was still "*.*", even though my file translator offers its own as its ::defaultExtension().
Otherwise, I believe you're limited to the filetypes that Maya defines in its SharedUI.dll:
Best Guess: *.* Maya Scene: *.mb;*.ma mayaBinary: *.mb mayaAscii: *.ma Windows Bitmap: *.bmp Tiff: *.tif Targa: *.tga SoftImage: *.pic SGI: *.sgi RLA: *.rla Quantel: *.yuv JPEG: *.jpg GIF: *.gif EPS: *.eps Cineon: *.cin Alias PIX: *.als ag: *.ag Maya IFF: *.iff move: *.mov OBJ: *.obj mel: *.mel text: *.txt plug-in: *.mll;*.so video: *.avi audio: *.wav;*.aif;*.aiff image: *.yuv;*.qtl;*.als;*.pix;*.iff;*.tdi;*.gif;*.jpeg;*.jpg;*.jfif; *.cin;*.rgb;*.sgi;*.si;*.pic;*.tga;*.tif;*.tiff;*.rla;*.eps; *.bmp;*.dib;*.avi;*.qt;*.mv;*.bot
Use the names above - not the associated extension - as the -fileType in the fileBrowserDialog command.
-- Bryan Ewert ? maya@(protected) ? http://www.ewertb.com ?
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|
 |