  | | | Creating a new file | Creating a new file 2003-12-09 - By Kevin Baca
Back I'm using 4.5, so I don't know about 5.x.
I had the same problem and created a plugin to handle this.
If you want the (win32) source, I can provide it.
I also have a directory browser in which you can create new directories.
-Kevin
> -- --Original Message-- -- > From: maya-dev-bounce@(protected) > [mailto:maya-dev-bounce@(protected)] On Behalf Of Taisuke Tanimura > Sent: Monday, December 08, 2003 11:29 AM > To: maya-dev@(protected) > Subject: MEL: Creating a new file > > > I have a MEL script that saves some animation data out to > file. I've run into a problem when I want to save the data > out to a new file - there doesn't seem to be an way in MEL to > have the user "pick" a file that doesn't exist and have the > path to that non-existent file returned. The fileDialog > command only returns a string if the user picks an existing > file. I could work around it by popping up a text box and > have the user manually enter the full path and then create > the file via fopen, but it would be nice to use the file > picker to do this. Has anyone had similar problems or know of > a workaround? Thanks! > > - t > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > List-help: <mailto:listar@(protected)?Subject=help> > List-archive: <http://www.highend3d.com/maya/devarchive/> >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|
 |