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

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 ()
 

Detailed Description

Subclass rman_utils.color_manager to provide color management functions to
Maya.

Function Documentation

◆ color_manager()

def rfm2.ui.maya_color_manager.color_manager ( )
return the ColorManagerMaya singleton
+ Here is the caller graph for this function:

◆ fix_ocio_path()

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...
+ Here is the call graph for this function:

◆ init()

def rfm2.ui.maya_color_manager.init ( )
Initial setup when the plugin loads.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ original_env_ocio()

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.
+ Here is the caller graph for this function:

◆ setup()

def rfm2.ui.maya_color_manager.setup (   globals_node)
Called when a rmanGlobals node is created, to update the central
ColorManagerMaya object
+ Here is the call graph for this function:

◆ sync_maya_color_management()

def rfm2.ui.maya_color_manager.sync_maya_color_management ( )
Update maya's color management prefs to adopt RenderMan's settings.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update_txmanager()

def rfm2.ui.maya_color_manager.update_txmanager ( )
Update the txmanager's UI if it is currently open.
+ Here is the call graph for this function:
+ Here is the caller graph for this function: