rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.ui.assets_browser.MayaPrefs Class Reference
+ Inheritance diagram for rfm2.ui.assets_browser.MayaPrefs:
+ Collaboration diagram for rfm2.ui.assets_browser.MayaPrefs:

Public Member Functions

def __init__ (self)
 
def getHostPref (self, prefName, defaultValue)
 
def setHostPref (self, prefName, value)
 
def saveAllPrefs (self)
 
def doAssign (self)
 
def preExportCheck (self, mode, hdr=None)
 
def exportMaterial (self, categorypath, infodict, previewtype)
 
def exportLightRig (self, categorypath, infodict)
 
def exportEnvMap (self, categorypath, infodict)
 
def importAsset (self, asset, assignToSelected=False)
 

Public Attributes

 debug
 
 rpbConfigFile
 
 rpbUserLibraries
 
 cfg
 
 rpbSwatchSize
 
 rpbSelectedPreviewEnv
 
 rpbSelectedCategory
 
 rpbSelectedLibrary
 
 rpbDockIsFloating
 
 rpbDockArea
 
 rpbDockWidth
 
 rpbDockHeight
 
 rpbDockX
 
 rpbDockY
 
 hostTree
 
 rmanTree
 
 rpbRenderAllHDRs
 
 rpbHideFactoryLib
 
 warning
 
 error
 
 progress
 
 textEditor
 

Constructor & Destructor Documentation

◆ __init__()

def rfm2.ui.assets_browser.MayaPrefs.__init__ (   self)

Member Function Documentation

◆ doAssign()

def rfm2.ui.assets_browser.MayaPrefs.doAssign (   self)

◆ exportEnvMap()

def rfm2.ui.assets_browser.MayaPrefs.exportEnvMap (   self,
  categorypath,
  infodict 
)
+ Here is the call graph for this function:

◆ exportLightRig()

def rfm2.ui.assets_browser.MayaPrefs.exportLightRig (   self,
  categorypath,
  infodict 
)
+ Here is the call graph for this function:

◆ exportMaterial()

def rfm2.ui.assets_browser.MayaPrefs.exportMaterial (   self,
  categorypath,
  infodict,
  previewtype 
)
+ Here is the call graph for this function:

◆ getHostPref()

def rfm2.ui.assets_browser.MayaPrefs.getHostPref (   self,
  prefName,
  defaultValue 
)
Reads a single pref from the host application.

Args:
    prefName (str): The preference name
    defaultValue (any): A default value if the pref does not exist yet.

Returns:
    int/str/str[]: The current value or the default if not available.
+ Here is the caller graph for this function:

◆ importAsset()

def rfm2.ui.assets_browser.MayaPrefs.importAsset (   self,
  asset,
  assignToSelected = False 
)
+ Here is the call graph for this function:

◆ preExportCheck()

def rfm2.ui.assets_browser.MayaPrefs.preExportCheck (   self,
  mode,
  hdr = None 
)
+ Here is the call graph for this function:

◆ saveAllPrefs()

def rfm2.ui.assets_browser.MayaPrefs.saveAllPrefs (   self)
+ Here is the call graph for this function:

◆ setHostPref()

def rfm2.ui.assets_browser.MayaPrefs.setHostPref (   self,
  prefName,
  value 
)
Save the given value in the host's preferences.
First look at the value's type and call the matching host API. In Maya,
this is maya.cmds.optionVar. The optionVar is named after the class
attribute.

Args:
    prefName (str): The class attribute name for that pref.
    value (int/str/str[]): The value we should store.

Raises:
    RmanAssetMayaError: If we don't support the given data type.
+ Here is the caller graph for this function:

Member Data Documentation

◆ cfg

rfm2.ui.assets_browser.MayaPrefs.cfg

◆ debug

rfm2.ui.assets_browser.MayaPrefs.debug

◆ error

rfm2.ui.assets_browser.MayaPrefs.error

◆ hostTree

rfm2.ui.assets_browser.MayaPrefs.hostTree

◆ progress

rfm2.ui.assets_browser.MayaPrefs.progress

◆ rmanTree

rfm2.ui.assets_browser.MayaPrefs.rmanTree

◆ rpbConfigFile

rfm2.ui.assets_browser.MayaPrefs.rpbConfigFile

◆ rpbDockArea

rfm2.ui.assets_browser.MayaPrefs.rpbDockArea

◆ rpbDockHeight

rfm2.ui.assets_browser.MayaPrefs.rpbDockHeight

◆ rpbDockIsFloating

rfm2.ui.assets_browser.MayaPrefs.rpbDockIsFloating

◆ rpbDockWidth

rfm2.ui.assets_browser.MayaPrefs.rpbDockWidth

◆ rpbDockX

rfm2.ui.assets_browser.MayaPrefs.rpbDockX

◆ rpbDockY

rfm2.ui.assets_browser.MayaPrefs.rpbDockY

◆ rpbHideFactoryLib

rfm2.ui.assets_browser.MayaPrefs.rpbHideFactoryLib

◆ rpbRenderAllHDRs

rfm2.ui.assets_browser.MayaPrefs.rpbRenderAllHDRs

◆ rpbSelectedCategory

rfm2.ui.assets_browser.MayaPrefs.rpbSelectedCategory

◆ rpbSelectedLibrary

rfm2.ui.assets_browser.MayaPrefs.rpbSelectedLibrary

◆ rpbSelectedPreviewEnv

rfm2.ui.assets_browser.MayaPrefs.rpbSelectedPreviewEnv

◆ rpbSwatchSize

rfm2.ui.assets_browser.MayaPrefs.rpbSwatchSize

◆ rpbUserLibraries

rfm2.ui.assets_browser.MayaPrefs.rpbUserLibraries

◆ textEditor

rfm2.ui.assets_browser.MayaPrefs.textEditor

◆ warning

rfm2.ui.assets_browser.MayaPrefs.warning

The documentation for this class was generated from the following file: