Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Creating a new file

Creating a new file

2003-12-09       - By Taisuke Tanimura

 Back
Reply:     1     2     3     4     5     6  

Thanks - that's exactly what I needed!

- t

-- --Original Message-- --
From: maya-dev-bounce@(protected)
[mailto:maya-dev-bounce@(protected)] On Behalf Of Bryan Ewert
Sent: Tuesday, December 09, 2003 8:22 AM
To: maya-dev@(protected)
Subject: Re: Creating a new file


> from Mon, 8 Dec 2003 15:44:04 -0500

> 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 'fileBrowserDialog', when invoked in "save" mode, allows you to
enter a new filename:

// ** BEGIN MEL **

global proc int newFileCB( string $filename, string $filetype ) {
   print ( "You entered the name: " + $filename + "\n" );
   
   return true;
}

global proc newFile()
{
   // '-mode 1' is Save mode, which offers two features:
   //   1. Warns when overwriting an existing file.
   //   2. Allows the user to enter a new filename.

   fileBrowserDialog -mode 1 -fc "newFileCB" -ft "Maya Scene" -an
"Save"; };

// ** END MEL **

--
Bryan Ewert  < maya@(protected) * http://www.ewertb.com >

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
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/>