Introduction
I intend this page to become a library of useful python calls, and environment variables,
for use with RfM 22.x.
The code samples for this page has been obtained from the Pixar RenderMan forum.
Generating Ribs
import rfm2
rfm2.render.frame('-ribFile')
To Load a Specific Render Quality Preset
import maya.app.renderSetup.views.renderSetupPreferences as prefs
prefs.loadUserPreset("RenderMan_Draft")
To Find the Path to the .json Presets Files
import maya.app.renderSetup.model.renderSetupPreferences as model_prefs
print model_prefs.getUserPresetsDirectory()
To Set the Path to the .json Presets
In the maya.env file set the value of this environment variable.
MAYA_RENDER_SETUP_GLOBAL_PRESETS_PATH=H:/PATH_TO/maya/Presets
Or, in the users .profile set the value of the environment variable.
export MAYA_RENDER_SETUP_GLOBAL_PRESETS_PATH=H:/PATH_TO/maya/Presets
|