rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Classes | |
class | OutputTo |
class | Message |
class | RenderState |
class | CameraAction |
class | JobidAction |
Functions | |
def | show_it (*args) |
def | show_localqueue () |
def | show_licenseapp () |
def | show_render_view () |
def | show_render_destination (renderstate) |
def | m_str (val) |
def | get_render_arguments () |
def | update_ipr_icons () |
def | close_viewports () |
def | update_viewport_ui (state) |
def | ipr (msg, *args) |
def | preview (msg, *args) |
def | ipr_is_running () |
def | ipr_destination () |
def | render_type () |
def | verify_camera (cam) |
def | frame (*args) |
def | pre_render_scene_check () |
def | register_prefs () |
def | rman_cmd (val) |
def | register_desc_to_plugin (desc) |
def | init (config) |
Variables | |
MAYA_VERSION_STR = str(cfg().maya_version) | |
list | MSG_STR |
int | RT_IPR = 0 |
int | RT_PREVIEW = 1 |
int | RT_BATCH = 2 |
RNDR = RenderState() | |
This module all the render functions.
def rfm2.render.close_viewports | ( | ) |
def rfm2.render.frame | ( | * | args | ) |
def rfm2.render.get_render_arguments | ( | ) |
returns any arguments render might need. Currently only: ["-shadinggroups", "sg1", "sg2"... ] any sg's possibly needed by abind rif
def rfm2.render.init | ( | config | ) |
Load the rfm plugin (C++) and pass node descriptions and extension attributes. Arguments: config {Config} -- The main config object
def rfm2.render.ipr | ( | msg, | |
* | args | ||
) |
The main IPR call. This will validate the command based on the message value and pass the variable argument list to susbsequent functions. Args: - msd (Message): The type of event requested by the user. - *args (tuple): variable argument list. Returns: - bool when msg is Message.kIsRunning
def rfm2.render.ipr_destination | ( | ) |
def rfm2.render.ipr_is_running | ( | ) |
def rfm2.render.m_str | ( | val | ) |
def rfm2.render.pre_render_scene_check | ( | ) |
Warn NCR users if trying to render PxrStylized nodes. We only warn the first time you try to render a scene.
def rfm2.render.preview | ( | msg, | |
* | args | ||
) |
The main preview call. This will validate the command based on the message value and pass the variable argument list to susbsequent functions. Args: - msd (Message): The type of event requested by the user. - *args (tuple): variable argument list. Returns: - bool when msg is Message.kIsRunning
def rfm2.render.register_desc_to_plugin | ( | desc | ) |
def rfm2.render.register_prefs | ( | ) |
Standard preference registration hook. Prefs are saved as Maya optionVars and can be read back using : rfm2.ui.prefs.get_pref_by_name()
def rfm2.render.render_type | ( | ) |
def rfm2.render.rman_cmd | ( | val | ) |
def rfm2.render.show_it | ( | * | args | ) |
Open Image Tool. Optional arguments can be provided to the "it" launch which are typically file paths of image files {str}. Arguments: - args {list}: Arguments to pass to "it"
def rfm2.render.show_licenseapp | ( | ) |
Open LicenseApp.
def rfm2.render.show_localqueue | ( | ) |
Open LocalQueue.
def rfm2.render.show_render_destination | ( | renderstate | ) |
Show the user-selected render destination: 'it' or 'maya'.
def rfm2.render.show_render_view | ( | ) |
Show Maya's renderView editor
def rfm2.render.update_ipr_icons | ( | ) |
Called at the end of ipr() to update the shelf and menu. - We don't update the icon when a viewport render is running.
def rfm2.render.update_viewport_ui | ( | state | ) |
def rfm2.render.verify_camera | ( | cam | ) |
Make sure the camera exists and that we use the shape.
rfm2.render.MAYA_VERSION_STR = str(cfg().maya_version) |
list rfm2.render.MSG_STR |
rfm2.render.RNDR = RenderState() |
int rfm2.render.RT_BATCH = 2 |
int rfm2.render.RT_IPR = 0 |
int rfm2.render.RT_PREVIEW = 1 |