rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Classes | |
class | LocalLightManipulator |
Functions | |
def | init_from_desc |
def | create_from_class |
def | make_manip_class |
def | initializePlugin |
def | uninitializePlugin |
Variables | |
string | RFM_LOGGER = 'rfm' |
vsc_remote_dbg = False | |
string | host = 'localhost' |
int | port = 3000 |
This plugin registers light manipulators for rfm2. Why use a separate plugin ? Because we are using Maya's python API v2 and it doesn't (as of Maya 2017) have bindings for manipulators (MPxManipContainer and friends). This plugin uses python API v1, so be careful not to mix in API v2 code... This plugin is automatically loaded by RenderMan_for_Maya.py and depends on the availability of the rfm2.config.config data.
def rfm2.rfm_manipulators.create_from_class | ( | cls | ) |
Closure to return a fully configured creator() static method. Returns: object: the configured static method.
def rfm2.rfm_manipulators.init_from_desc | ( | cls, | |
desc | |||
) |
Closure to return a fully configured initialize() static method. Args: desc (NodeDesc): The node description object. Returns: object: the configured static method.
def rfm2.rfm_manipulators.initializePlugin | ( | mobject | ) |
Register our manipulator plugins.
def rfm2.rfm_manipulators.make_manip_class | ( | desc | ) |
Dynamically creates a new class (inheriting from LocalLightManipulator) for a specific node type. The class gets a bespoke initialize() and creator() static method. Later on, we will be able to use the same method to add a compute() or VP2 drawing code. Args: desc (NodeDesc): The full node description Returns: object: the new class
def rfm2.rfm_manipulators.uninitializePlugin | ( | mobject | ) |
uninitialize the script plug-in
string rfm2.rfm_manipulators.host = 'localhost' |
int rfm2.rfm_manipulators.port = 3000 |
string rfm2.rfm_manipulators.RFM_LOGGER = 'rfm' |
rfm2.rfm_manipulators.vsc_remote_dbg = False |