rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.vp.shading Namespace Reference

Functions

def has_shading_override (desc)
 
def create_from_class (cls)
 
def make_shading_class (desc)
 
def deregister_all_fragments ()
 
def register_prefs ()
 

Detailed Description

Register / deregister viewport shading overrides.

Function Documentation

◆ create_from_class()

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:

◆ deregister_all_fragments()

def rfm2.vp.shading.deregister_all_fragments ( )
Deregister all fragments.

◆ has_shading_override()

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

◆ make_shading_class()

def rfm2.vp.shading.make_shading_class (   desc)
Build a dynamic class.
+ Here is the call graph for this function:

◆ register_prefs()

def rfm2.vp.shading.register_prefs ( )
Register prefs for viewport shading.
+ Here is the call graph for this function: