rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.constants Namespace Reference

Variables

dictionary PLUGIN_EXTENSIONS = {'Linux': '.so', 'Windows': '.mll', 'Darwin': '.bundle'}
 
string W_DEFAULT = 'default'
 
string W_MAPPER = 'mapper'
 
string W_BOOLEAN = 'boolean'
 
string W_CHECKBOX = 'checkBox'
 
string W_FILEINPUT = 'fileInput'
 
string W_ASSETIDINPUT = 'assetIdInput'
 
string W_ASSETIDOUTPUT = 'assetIdOutput'
 
string W_POPUP = 'popup'
 
string W_SCENEGRAPHLOCATION = 'scenegraphLocation'
 
string W_TEXT = 'text'
 
string W_SCRIPTBUTTON = 'scriptButton'
 
string W_SCRIPTEDITOR = 'scriptEditor'
 
string W_NODEEDITOR = 'nodeEditor'
 
string W_AOVEDITOR = 'aovEditor'
 
string W_BAKEAOVEDITOR = 'bakeAovEditor'
 
string W_OSLEDITOR = 'oslEditor'
 
string W_ABCMANIFEST = 'abcManifest'
 
string W_USERATTRIBUTES = 'userAttributes'
 
string W_NULL = 'null'
 
string W_MAYALINK = 'mayaLink'
 
string W_MAYATIME = 'mayaTime'
 
string W_VERSION = 'version'
 
list FILEPATH_WIDGETS = [W_FILEINPUT, W_ASSETIDINPUT, W_ASSETIDOUTPUT]
 
string PYFUNC = '_pyfunc_'
 
string PYINIT = '_pyinit_'
 
list IMG_EXTS
 
list TX_EXTS = ['tex', 'tx', 'txr']
 
string OS_MAC = 'Darwin'
 
string OS_WIN = 'Windows'
 
string OS_LINUX = 'Linux'
 
dictionary ATYPE
 
dictionary UATTR_WIDGETS
 
string UATTR_CATEGORY = 'rmanUserAttr'
 
dictionary P_DEFAULT
 
 COLOR_EXT = list('RGB')
 
 FLOAT3_EXT = list('XYZ')
 
list FLOAT3_TYPES = ['color', 'point', 'vector', 'normal']
 
tuple MAYA_FIELD_BG_COL = (0.165, 0.165, 0.165)
 
tuple MAYA_LYT_BG_COL = (0.286, 0.286, 0.286)
 
tuple MAYA_LYT_DARKER_BG_COL = (0.24, 0.24, 0.24)
 
tuple MAYA_CTL_COL = (0.364, 0.364, 0.364)
 
string CUSTOM_SHADING_GRP = 'rman__torattr___customShadingGroup'
 
string BAKE_PREFIX = 'bake_'
 
string BAKE_GLOBALS = 'rmanBakingGlobals'
 

Detailed Description

Constants used throughout rfm2.

Variable Documentation

◆ ATYPE

dictionary rfm2.constants.ATYPE
Initial value:
1 = {'float':'F', 'color':'C', 'vector':'V', 'normal':'N', 'point':'P',
2  'hpoint':'H', 'matrix':'M', 'string':'S', 'int':'I'}

◆ BAKE_GLOBALS

string rfm2.constants.BAKE_GLOBALS = 'rmanBakingGlobals'

◆ BAKE_PREFIX

string rfm2.constants.BAKE_PREFIX = 'bake_'

◆ COLOR_EXT

rfm2.constants.COLOR_EXT = list('RGB')

◆ CUSTOM_SHADING_GRP

string rfm2.constants.CUSTOM_SHADING_GRP = 'rman__torattr___customShadingGroup'

◆ FILEPATH_WIDGETS

list rfm2.constants.FILEPATH_WIDGETS = [W_FILEINPUT, W_ASSETIDINPUT, W_ASSETIDOUTPUT]

◆ FLOAT3_EXT

rfm2.constants.FLOAT3_EXT = list('XYZ')

◆ FLOAT3_TYPES

list rfm2.constants.FLOAT3_TYPES = ['color', 'point', 'vector', 'normal']

◆ IMG_EXTS

list rfm2.constants.IMG_EXTS
Initial value:
1 = ['tif', 'exr', 'jpg', 'sgi', 'tga', 'iff', 'dpx', 'bmp', 'hdr',
2  'png', 'gif', 'ppm', 'xpm', 'z']

◆ MAYA_CTL_COL

tuple rfm2.constants.MAYA_CTL_COL = (0.364, 0.364, 0.364)

◆ MAYA_FIELD_BG_COL

tuple rfm2.constants.MAYA_FIELD_BG_COL = (0.165, 0.165, 0.165)

◆ MAYA_LYT_BG_COL

tuple rfm2.constants.MAYA_LYT_BG_COL = (0.286, 0.286, 0.286)

◆ MAYA_LYT_DARKER_BG_COL

tuple rfm2.constants.MAYA_LYT_DARKER_BG_COL = (0.24, 0.24, 0.24)

◆ OS_LINUX

string rfm2.constants.OS_LINUX = 'Linux'

◆ OS_MAC

string rfm2.constants.OS_MAC = 'Darwin'

◆ OS_WIN

string rfm2.constants.OS_WIN = 'Windows'

◆ P_DEFAULT

dictionary rfm2.constants.P_DEFAULT
Initial value:
1 = {
2  'float': 0.0,
3  'float2': (0.0, 0.0),
4  'float3': (0.0, 0.0, 0.0),
5  'int': 0,
6  'int2': (0, 0),
7  'color': (0.0, 0.0, 0.0),
8  'point': (0.0, 0.0, 0.0),
9  'hpoint': (0.0, 0.0, 0.0),
10  'vector': (0.0, 0.0, 0.0),
11  'normal': (0.0, 0.0, 0.0),
12  'string': '',
13  'matrix': (1.0, 0.0, 0.0, 0.0,
14  0.0, 1.0, 0.0, 0.0,
15  0.0, 0.0, 1.0, 0.0,
16  0.0, 0.0, 0.0, 1.0),
17  'message': None
18 }

◆ PLUGIN_EXTENSIONS

dictionary rfm2.constants.PLUGIN_EXTENSIONS = {'Linux': '.so', 'Windows': '.mll', 'Darwin': '.bundle'}

◆ PYFUNC

string rfm2.constants.PYFUNC = '_pyfunc_'

◆ PYINIT

string rfm2.constants.PYINIT = '_pyinit_'

◆ TX_EXTS

list rfm2.constants.TX_EXTS = ['tex', 'tx', 'txr']

◆ UATTR_CATEGORY

string rfm2.constants.UATTR_CATEGORY = 'rmanUserAttr'

◆ UATTR_WIDGETS

dictionary rfm2.constants.UATTR_WIDGETS
Initial value:
1 = {'float': [W_DEFAULT, W_MAPPER, W_MAYATIME],
2  'color': [W_DEFAULT, W_MAYALINK],
3  'vector': [W_DEFAULT],
4  'normal': [W_DEFAULT],
5  'point': [W_DEFAULT],
6  'hpoint': [W_DEFAULT],
7  'matrix':[W_DEFAULT],
8  'string': [W_DEFAULT, W_FILEINPUT, W_POPUP, W_TEXT],
9  'int': [W_DEFAULT, W_BOOLEAN, W_CHECKBOX, W_MAPPER, W_VERSION]}

◆ W_ABCMANIFEST

string rfm2.constants.W_ABCMANIFEST = 'abcManifest'

◆ W_AOVEDITOR

string rfm2.constants.W_AOVEDITOR = 'aovEditor'

◆ W_ASSETIDINPUT

string rfm2.constants.W_ASSETIDINPUT = 'assetIdInput'

◆ W_ASSETIDOUTPUT

string rfm2.constants.W_ASSETIDOUTPUT = 'assetIdOutput'

◆ W_BAKEAOVEDITOR

string rfm2.constants.W_BAKEAOVEDITOR = 'bakeAovEditor'

◆ W_BOOLEAN

string rfm2.constants.W_BOOLEAN = 'boolean'

◆ W_CHECKBOX

string rfm2.constants.W_CHECKBOX = 'checkBox'

◆ W_DEFAULT

string rfm2.constants.W_DEFAULT = 'default'

◆ W_FILEINPUT

string rfm2.constants.W_FILEINPUT = 'fileInput'

◆ W_MAPPER

string rfm2.constants.W_MAPPER = 'mapper'

◆ W_MAYALINK

string rfm2.constants.W_MAYALINK = 'mayaLink'

◆ W_MAYATIME

string rfm2.constants.W_MAYATIME = 'mayaTime'

◆ W_NODEEDITOR

string rfm2.constants.W_NODEEDITOR = 'nodeEditor'

◆ W_NULL

string rfm2.constants.W_NULL = 'null'

◆ W_OSLEDITOR

string rfm2.constants.W_OSLEDITOR = 'oslEditor'

◆ W_POPUP

string rfm2.constants.W_POPUP = 'popup'

◆ W_SCENEGRAPHLOCATION

string rfm2.constants.W_SCENEGRAPHLOCATION = 'scenegraphLocation'

◆ W_SCRIPTBUTTON

string rfm2.constants.W_SCRIPTBUTTON = 'scriptButton'

◆ W_SCRIPTEDITOR

string rfm2.constants.W_SCRIPTEDITOR = 'scriptEditor'

◆ W_TEXT

string rfm2.constants.W_TEXT = 'text'

◆ W_USERATTRIBUTES

string rfm2.constants.W_USERATTRIBUTES = 'userAttributes'

◆ W_VERSION

string rfm2.constants.W_VERSION = 'version'