rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.vp.shading Namespace Reference

Functions

def has_shading_override
 
def create_from_class
 
def make_shading_class
 
def deregister_all_fragments
 
def register_prefs
 

Variables

 __FRAGMENT_PATH_LIST__ = None
 
 __CORE_FRAGMENTS_REGISTERED__ = False
 

Detailed Description

Register / deregister viewport shading overrides.

Function Documentation

def rfm2.vp.shading.create_from_class (   cls)
Closure to return a fully configured creator() static method.

Returns:
    object: the configured static method.

+ Here is the caller graph for this function:

def rfm2.vp.shading.deregister_all_fragments ( )
Deregister all fragments.
def rfm2.vp.shading.has_shading_override (   desc)
Check if a node description has an associated viewport shading override.

The very first time this function run, it will register all available \
shading fragments and then proceed to find a matching fragment graph file.

To match 'PxrConstant', we need to find a 'PxrConstant.xml' file in one of \
the 'fragmentGraphs' directories.

Args:
- desc (NodeDesc): the node's description.

Returns:
- Return True if a correctly named xml file can be found in the search paths.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.vp.shading.make_shading_class (   desc)
Build a dynamic class.

+ Here is the call graph for this function:

def rfm2.vp.shading.register_prefs ( )
Register prefs for viewport shading.

+ Here is the call graph for this function:

Variable Documentation

rfm2.vp.shading.__CORE_FRAGMENTS_REGISTERED__ = False
rfm2.vp.shading.__FRAGMENT_PATH_LIST__ = None