Go to: Synopsis. Return value. Flags. Python examples.
xpmPicker([fileName=string], [parent=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
xpmPicker is undoable, NOT queryable, and NOT editable.
Open a dialog and ask you to choose a xpm file
string | The full name of the xpm file |
fileName, parent
Long name (short name) |
Argument types |
Properties |
|
fileName(fn)
|
string
|
|
|
default filename to display in dialog
|
|
parent(p)
|
string
|
|
|
parent window for modal dialog
|
|
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 have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
cmds.xpmPicker()