rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Classes | |
class | ColorManagerMaya |
Functions | |
def | original_env_ocio () |
def | sync_maya_color_management () |
def | update_txmanager () |
def | color_manager () |
def | setup (globals_node) |
def | fix_ocio_path (reason, *args) |
def | init () |
Subclass rman_utils.color_manager to provide color management functions to Maya.
def rfm2.ui.maya_color_manager.color_manager | ( | ) |
return the ColorManagerMaya singleton
def rfm2.ui.maya_color_manager.fix_ocio_path | ( | reason, | |
* | args | ||
) |
To ensure we don't get error messages caused by a wrong config.ocio path in maya's color management prefs, make the following incantations: - before saving: turn off ocio in maya (if it was on) - after saving: turn back on ocio in maya (if it was on) - after loading: correct the config.ocio path if it is a stock config. It would be simpler if maya could handle paths with env vars or tokens but it can't...
def rfm2.ui.maya_color_manager.init | ( | ) |
Initial setup when the plugin loads.
def rfm2.ui.maya_color_manager.original_env_ocio | ( | ) |
Return the original value of the $OCIO environment variable, which may be overriden inside maya's environment. None is $OCIO is NOT defined.
def rfm2.ui.maya_color_manager.setup | ( | globals_node | ) |
Called when a rmanGlobals node is created, to update the central ColorManagerMaya object
def rfm2.ui.maya_color_manager.sync_maya_color_management | ( | ) |
Update maya's color management prefs to adopt RenderMan's settings.
def rfm2.ui.maya_color_manager.update_txmanager | ( | ) |
Update the txmanager's UI if it is currently open.