Go to: Synopsis. Return value. Related. Flags. Python examples.
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.
None
In query mode, return type is based on queried flag.
fileBrowserDialog
addDropBox, addHistory, command, fileHistory, filePath, valueChanged
Long name (short name) |
Argument types |
Properties |
fileHistory(fh)
|
string
|
|
|
Add a history item to the history list.
Note: this cannot be queried.
|
|
command(c)
|
script
|
|
|
Set the command to be executed when Enter
is pressed.
|
|
filePath(fp)
|
string
|
|
|
Set the path in the text edit field.
|
|
addHistory(ah)
|
boolean
|
|
|
If true (default) a history box is displayed.
|
|
addDropBox(adr)
|
boolean
|
|
|
If true (default) a drop box is displayed and active.
|
|
valueChanged(vc)
|
script
|
|
|
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.
|
import maya.cmds as cmds
cmds.finder( 'myFinder' )