Skip to content

Global variables

ymesh edited this page Oct 2, 2012 · 3 revisions

The name in curved brackets ${TempPath} represents a global variable.
Global variables can be used inside a node code and parameters.
(e.g. "textures/myEnvironment.${TEX}" will be "textures/myEnvironment.slo" for PRman
and "textures/myEnvironment.tdl for 3Delight")
The list of used global variables is defined inside global_vars.py.

#
# global_vars.py
#
app_global_vars = {
 'TempPath':''
,'RootPath':''
,'ProjectPath':''
,'ProjectShaders':'' 
,'ProjectTextures':''
,'ProjectNetworks':'' 
,'ProjectSources':''
,'ProjectSearchPath':''
,'ProjectSearchShaders':'' 
,'ProjectSearchTextures':'' 
,'NodesPath':''
,'LibPath':''
,'TexturePath':''
,'ShaderPath':'' 
,'IncludePath':''
,'RibPath':''
,'DisplaySearchPath':''
,'TextureSearchPath':''
,'ShaderSearchPath':''
,'ArchiveSearchPath':''
,'Renderer':''
,'RendererFlags':''
,'ShaderCompiler':''
,'ShaderDefines':''
,'TEX':'' # texture extension (renderer depended) 
,'SLO':'' # compiled shader extension (renderer depended) 
}
DEBUG_MODE = True
Clone this wiki locally