rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Functions | |
def | show_docs () |
def | get_rib_file_name (do_expand=False) |
def | get_editor (fpath) |
def | open_file (fname) |
def | view_statistics () |
def | get_current_camera () |
def | view_rib () |
def | view_rib_for_selection () |
def | toggle_render_selected () |
def | txmake (infile, outdir=None, outfile=None, textype=None, args=None) |
def | autoplace_state (ncat) |
def | toggle_autoplace (ncat) |
def | autoplace (node_type) |
def | install_node_editor_solo () |
def | validate_solo_key_pref (val) |
def | register_prefs () |
Variables | |
dictionary | AUTOPLACE_TYPES |
Scripting functions related to the user interface.
def rfm2.api.ui_helpers.autoplace | ( | node_type | ) |
Create a light or portal and position it based on current selection. - Nothing selected: create one light with same position and orientation as the camera associated with the current viewport. - Object selected: Create light(s) or portal(s) at the object(s)' center. - Mesh Face selected: Create light(s) or portal(s) at the center of the shell(s) containing the selected face(s). Arguments: node_type {str} -- node type to be created Returns: list -- List of created nodes if successful None -- if autoplace is disabled or autoplace doesn't handle the node type
def rfm2.api.ui_helpers.autoplace_state | ( | ncat | ) |
Returns whether autoplace is enabled or not for a given node category. Arguments: ncat {str} -- Can be 'lights', 'portals' or 'filter_parented' Returns: bool -- True if enabled
def rfm2.api.ui_helpers.get_current_camera | ( | ) |
def rfm2.api.ui_helpers.get_editor | ( | fpath | ) |
def rfm2.api.ui_helpers.get_rib_file_name | ( | do_expand = False | ) |
def rfm2.api.ui_helpers.install_node_editor_solo | ( | ) |
Depending on the value of the rfmEnableNodeEditorSolo optionVar, replace Maya's keyPressCommand for the current nodeEditor with ours and vice-versa.
def rfm2.api.ui_helpers.open_file | ( | fname | ) |
def rfm2.api.ui_helpers.register_prefs | ( | ) |
Register general prefs for the ScriptEditor widget: font face, size, etc.
def rfm2.api.ui_helpers.show_docs | ( | ) |
Open the RenderMan documentation in a web browser
def rfm2.api.ui_helpers.toggle_autoplace | ( | ncat | ) |
Changes the enabled state for a given node category. Arguments: ncat {str} -- Can be 'lights', 'portals' or 'filter_parented'
def rfm2.api.ui_helpers.toggle_render_selected | ( | ) |
def rfm2.api.ui_helpers.txmake | ( | infile, | |
outdir = None , |
|||
outfile = None , |
|||
textype = None , |
|||
args = None |
|||
) |
A barebones txmake convert, without involving txmanager. Material viewer relies on this.
def rfm2.api.ui_helpers.validate_solo_key_pref | ( | val | ) |
Return a valid key shortcut and save the key and optional modifiers in separate prefs. Arguments: val {str} -- string like '`', 'alt-1', 'ctrl-alt-1', etc Returns: str -- The validated string that will appear in the prefs panel.
def rfm2.api.ui_helpers.view_rib | ( | ) |
Generate and view a rib file for the current frame.
def rfm2.api.ui_helpers.view_rib_for_selection | ( | ) |
Generate and view a rib file for the current selection.
def rfm2.api.ui_helpers.view_statistics | ( | ) |
Open the statistics file for the current scene in a web browser.