Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

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

Return value

stringThe full name of the xpm file

Flags

fileName, parent
Long name (short name) Argument types Properties
fileName(fn) string create
default filename to display in dialog
parent(p) string create
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.

Python examples

import maya.cmds as cmds

cmds.xpmPicker()