# It is assumed that "Maya.env" has set the correct path
# for the MAYA_USER_DIR environment variable.
# Malcolm Kesson
# July 19 2016
set projdir [file join [GetEnv MAYA_USER_DIR] "projects"]
set rms_mel_dir "$projdir/RfM_mel"
set rfm_osl_dir "$projdir/RfM_osl"
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Register the RiMel user interface (.rman) scripts.
set rman_names ""
if { [file exists $rms_mel_dir] } {
set scripts [glob -nocomplain -directory $rms_mel_dir *rman]
foreach item $scripts {
set scriptName [file tail $item]
LoadExtension rman [file join $rms_mel_dir $scriptName]
append rman_names "$scriptName\n"
}
}
if { [string length $rman_names] > 0 } {
::RMS::LogMsg INFO "The custom RenderMan_for_Maya.ini has loaded the following .rman scripts:"
::RMS::LogMsg INFO "$rman_names"
}
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Register the example pattern plugins (.args) scripts.
::RMS::LogMsg INFO "The custom RenderMan_for_Maya.ini is loading the following RIS pattern nodes.\n"
::RMS::LogMsg INFO "Loading nodeid:1 CutrBBones.args"
LoadExtension args [file join $projdir "RfM_ris/Args/CutrBBones.args"]
::RMS::LogMsg INFO "Loading nodeid:2 CutrColorByHeight.args"
LoadExtension args [file join $projdir "RfM_ris/Args/CutrColorByHeight.args"]
::RMS::LogMsg INFO "Loading nodeid:3 CutrFaceColor.args"
LoadExtension args [file join $projdir "RfM_ris/Args/CutrFaceColor.args"]
::RMS::LogMsg INFO "Loading nodeid:4 CutrPaperCup.args"
LoadExtension args [file join $projdir "RfM_ris/Args/CutrPaperCup.args"]
::RMS::LogMsg INFO "Loading nodeid:5 CutrSideMask.args"
LoadExtension args [file join $projdir "RfM_ris/Args/CutrSideMask.args"]
::RMS::LogMsg INFO "Loading nodeid:6 CutrSparky.args"
LoadExtension args [file join $projdir "RfM_ris/Args/CutrSparky.args"]
::RMS::LogMsg INFO "Loading nodeid:7 CutrVelvet.args"
LoadExtension args [file join $projdir "RfM_ris/Args/CutrVelvet.args"]
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Register any osl shaders that have "int rfm_nodeid = UNIQUE_INT" metadata
set osofiles [glob -nocomplain "${rfm_osl_dir}/*.oso"]
foreach osofile $osofiles {
LoadExtension osl "$osofile"
::RMS::LogMsg INFO "$osofile"
}
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SetPref TextEditor TextEdit
SetPref ShaderCompilerCleanup 0