rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.ui.globals Namespace Reference

Functions

def create
 
def update
 
def create_presets
 

Variables

dictionary PRESETS
 
dictionary RS_PRESET
 
string RL_HEADER
 
string RL_PROC
 
string RL_PROC_TYPED
 
string RG_TAB_LAYOUT = 'RenderManGlobalsSubTab'
 
string PAGE_SEP = '|'
 

Detailed Description

Create and update RenderMan's Globals tab layouts.

Function Documentation

def rfm2.ui.globals.create ( )
Create the contents of RenderMan's globals tab.
As usual, the data is coming from rmanGlobals.json, via a
NodeDesc objects.

+ Here is the call graph for this function:

def rfm2.ui.globals.create_presets (   force_update = False)
Create preset files for the currently active system: renderLayer (RL) or
renderSetup (RS).

Keyword Arguments:
    force_update {bool} -- overwrite existing presets (default: {False})

+ Here is the call graph for this function:

def rfm2.ui.globals.update ( )
Updates the contents of the globals anytime Maya requests an update.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

string rfm2.ui.globals.PAGE_SEP = '|'
dictionary rfm2.ui.globals.PRESETS
string rfm2.ui.globals.RG_TAB_LAYOUT = 'RenderManGlobalsSubTab'
string rfm2.ui.globals.RL_HEADER
Initial value:
1 = """// Preset version 7.0
2 // Generated by RenderMan for Maya %s
3 
4 """
string rfm2.ui.globals.RL_PROC
Initial value:
1 = """proc setAttribute%d() {
2  setAttr ".%s" %s;
3 }
4 
5 """
string rfm2.ui.globals.RL_PROC_TYPED
Initial value:
1 = """proc setAttribute%d() {
2  setAttr -type "%s" ".%s" %s;
3 }
4 
5 """
dictionary rfm2.ui.globals.RS_PRESET
Initial value:
1 = {
2  "renderman": {
3  "defaultNodes": {},
4  "defaultRendererNodes": {},
5  "userData": {}
6  }
7 }