Go to: Synopsis. Flags. Return value. Related. MEL examples.
fileDialog [-application] [-directoryMask string] [-mode string]
fileDialog is undoable, queryable, and editable.
Displays a file picking window, and returns the name of the file
that the user picked. If the user picked no file, then an
empty string is returned.
application, directoryMask, mode
| Long name (short name) |
[argument types] |
Properties |
-mode(-m)
|
string
|
|
|
Defines the mode in which to run the file dialog:
Write mode can not be used in conjunction with the -application flag.
|
|
-directoryMask(-dm)
|
string
|
|
|
This can be used to specify what directory and file names
will be displayed in the dialog. If not specified, the
current directory will be used, with all files displayed.
The string may contain a path name, and must contain a
wild-carded file specifier. (eg "*.cc" or "/usr/u/*") If
just a path is specified, then the last directory in the
path is taken to be a file specifier, and this will not
produce the desired results.
|
|
-application(-app)
|
|
|
|
This is a "Mac" only flag. This brings up the dialog which
selects only the application bundle.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command
|
string
fileBrowserDialog
fileDialog;
fileDialog -directoryMask "/usr/u/bozo/myFiles/*.ma";
fileDialog -dm "*.cc";
Return to Autodesk Index