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

Synopsis

finder( string , [addDropBox=boolean], [addHistory=boolean], [command=script], [fileHistory=string], [filePath=string], [valueChanged=script])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

finder is undoable, queryable, and editable.

Create, Query, Edit a finder control. Each finder control has a drop icon pocket, an edit line and a history button. The argument defines the name of the finder control.

Return value

None

In query mode, return type is based on queried flag.

Related

fileBrowserDialog

Flags

addDropBox, addHistory, command, fileHistory, filePath, valueChanged
Long name (short name) Argument types Properties
fileHistory(fh) string createedit
Add a history item to the history list. Note: this cannot be queried.
command(c) script createedit
Set the command to be executed when Enter is pressed.
filePath(fp) string createqueryedit
Set the path in the text edit field.
addHistory(ah) boolean createedit
If true (default) a history box is displayed.
addDropBox(adr) boolean createedit
If true (default) a drop box is displayed and active.
valueChanged(vc) script createedit
Set the command to be executed when the value of the edit field changes.

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.finder( 'myFinder' )