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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
application (app) | bool | ||
|
|||
defaultFileName (dfn) | unicode | ||
|
|||
directoryMask (dm) | unicode | ||
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 *.ccor /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. |
|||
mode (m) | int | ||
|
|||
title (t) | unicode | ||
Set title text. The default value under writemode is Save As. The defaule value under readmode is Open. Flag can have multiple arguments, passed either as a tuple or a list. |
Derived from mel command maya.cmds.fileDialog
Example:
import pymel.core as pm
pm.fileDialog()
pm.fileDialog( directoryMask='/usr/u/bozo/myFiles/*.ma' )
pm.fileDialog( dm='*.cc' )