rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Functions | |
def | has_shading_override (desc) |
def | create_from_class (cls) |
def | make_shading_class (desc) |
def | deregister_all_fragments () |
def | register_prefs () |
Register / deregister viewport shading overrides.
def rfm2.vp.shading.create_from_class | ( | cls | ) |
Closure to return a fully configured creator() static method. Returns: object: the configured static method.
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 (RfmNodeDesc): the node's description. Returns: - Return True if a correctly named xml file can be found in the search paths.
def rfm2.vp.shading.make_shading_class | ( | desc | ) |
Build a dynamic class.
def rfm2.vp.shading.register_prefs | ( | ) |
Register prefs for viewport shading.