This command creates a viewer that lists the project files in the current working directory. The viewer can then be attached to a pane. In query mode, return type is based on queried flag.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| clear (cl) | bool |     | |
| 
 | |||
| defineTemplate (dt) | unicode | ||
| deselectIndexedItem (dii) | int |       | |
| 
 | |||
| deselectItem (di) | unicode |       | |
| 
 | |||
| displayHidden (dh) | bool |       | |
| 
 | |||
| displayMode (dm) | int |       | |
| 
 | |||
| doubleClickCommand (dcc) | script |     | |
| 
 | |||
| exists (ex) | bool | ||
| forceRefresh (fr) | bool |     | |
| 
 | |||
| numberOfItem (ni) | bool |   | |
| 
 | |||
| numberOfSelectedItem (nsi) | bool |   | |
| 
 | |||
| selectCommand (sc) | script |     | |
| 
 | |||
| selectItem (si) | unicode |       | |
| 
 | |||
| sortBy (sb) | unicode |       | |
| 
 | |||
| updateCommand (uc) | script |     | |
| 
 | |||
| useTemplate (ut) | unicode | ||
| workspace (ws) | unicode |       | |
| 
 | |||
Derived from mel command maya.cmds.projFileViewer
Example:
import pymel.core as pm
pm.window( 'ProjWindow', rtf=0, wh=(150, 150) )
# Result: ui.Window('ProjWindow') #
pm.paneLayout( 'ProjPanes' )
# Result: ui.PaneLayout('ProjWindow|ProjPanes') #
pm.projFileViewer( 'ProjFileView', dm=0 )
pm.paneLayout( 'ProjPanes', e=True, cn='single', sp=('ProjFileView', 1) )
pm.projFileViewer( 'ProjFileView', e=True, fr=True )
pm.showWindow()