rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Classes | |
class | NumericalWidget |
class | Numerical2Widget |
class | ColorWidget |
class | StringWidget |
class | MatrixWidget |
class | MessageWidget |
Functions | |
def | set_colorspace (nattr, *args) |
def | set_b2r_nmap (nattr, *args) |
def | build_txmgr_menu (nattr, ctl) |
def | txmgr_ui_create (ctl, nattr, enabled) |
def | txmgr_ui_update (ctl, nattr, enabled) |
def | resize_editor (name, offset, min_height) |
def | rfm_ae_drag_callback (*args) |
def | connect_to_time (*args) |
def | popup_updater (_ctlname, nodeattr, *args) |
def | mapper_updater (nodeattr, options, *args) |
def | script_button_cmd (*args) |
def | matrix_updater (ctlname, nodeattr, *args) |
Variables | |
NodeEditorWidget | |
AOVEditorWidget | |
OSLEditorWidget | |
AbcManifestWidget | |
Module implementing the main ui widgets
def rfm2.ui.common.build_txmgr_menu | ( | nattr, | |
ctl | |||
) |
Either build the colorspace menu based on the current color_manager config or the bump to roughness map type menu.
def rfm2.ui.common.connect_to_time | ( | * | args | ) |
Connect a mayaTime widget to the scene's time node.
def rfm2.ui.common.mapper_updater | ( | nodeattr, | |
options, | |||
* | args | ||
) |
Update a string attribute's value based on an optionMenu's (popup widget) selection. args last value will be the new popup value, passed by Maya. Previous args values (if any) will be additional update commands to handle conditional visibility.
def rfm2.ui.common.matrix_updater | ( | ctlname, | |
nodeattr, | |||
* | args | ||
) |
Update a matrix attribute's value after a user entered new UI values.
def rfm2.ui.common.popup_updater | ( | _ctlname, | |
nodeattr, | |||
* | args | ||
) |
Update a string attribute's value based on an optionMenu's (popup widget) selection. args last value will be the new popup value, passed by Maya. Previous args values (if any) will be additional update commands to handle conditional visibility.
def rfm2.ui.common.resize_editor | ( | name, | |
offset, | |||
min_height | |||
) |
Used by the script editor widget to resize the editing area.
def rfm2.ui.common.rfm_ae_drag_callback | ( | * | args | ) |
Attribute editor callback: make the contril draggable for RenderSetup.
def rfm2.ui.common.script_button_cmd | ( | * | args | ) |
Execute an arbitrary python code snippet. args: - script: the python string to execute. - nattr: the "node.attr" used to make 'node' and 'param' vars available at execution time.
def rfm2.ui.common.set_b2r_nmap | ( | nattr, | |
* | args | ||
) |
Unpacks args and sets the mode to either Bump or Normal. The texture manager will re-process the texture.
def rfm2.ui.common.set_colorspace | ( | nattr, | |
* | args | ||
) |
Unpacks args and asks the texture manager to update the colorspace of the texture associated with nattr.
def rfm2.ui.common.txmgr_ui_create | ( | ctl, | |
nattr, | |||
enabled | |||
) |
Create txmanager UI associated with a texture path attribute. Args: ctl (str): main control name nattr (str): attribute plug enabled (bool): True if the plug has the "texture" or "env" option Returns: str: formLayout control
def rfm2.ui.common.txmgr_ui_update | ( | ctl, | |
nattr, | |||
enabled | |||
) |
Update txmanager UI associated with a texture path attribute. Args: ctl (str): main control name nattr (str): attribute plug enabled (bool): True if the plug has the "texture" or "env" option
rfm2.ui.common.AbcManifestWidget |
rfm2.ui.common.AOVEditorWidget |
rfm2.ui.common.NodeEditorWidget |
rfm2.ui.common.OSLEditorWidget |