pymel.core.system.projFileViewer

static system.projFileViewer(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
clear (cl) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Clear all items.
defineTemplate (dt) unicode  
   
deselectIndexedItem (dii) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Deselect the given index item.
deselectItem (di) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Deselect the given item.
displayHidden (dh) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Indicates whether hidden files should be displayed or not. Flag can have multiple arguments, passed either as a tuple or a list.
displayMode (dm) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set the display mode. Default is icon. Mode 0 displays as text. Mode 1 displays as large icons. Mode 2 displays as small icons.
doubleClickCommand (dcc) script ../../../_images/create.gif ../../../_images/edit.gif
 
String is a command which is executed on a double click.
exists (ex) bool  
   
forceRefresh (fr) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Force the displayed items to be refreshed.
numberOfItem (ni) bool ../../../_images/query.gif
 
Return the number of items.
numberOfSelectedItem (nsi) bool ../../../_images/query.gif
 
Return the number of selected items.
selectCommand (sc) script ../../../_images/create.gif ../../../_images/edit.gif
 
String is a command which is executed when an item is selected.
selectItem (si) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Select the given item.
sortBy (sb) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Specifies how the entry should be sorted. Possible values are name, date, and size.
updateCommand (uc) script ../../../_images/create.gif ../../../_images/edit.gif
 
Specify the update command.
useTemplate (ut) unicode  
   
workspace (ws) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Specify the workspace that this viewer works on.

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()

Previous topic

pymel.core.system.preloadRefEd

Next topic

pymel.core.system.recordAttr

Core

Core Modules

Other Modules

This Page