rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.ui.render_view Namespace Reference

Functions

def raise_renderview_window
 
def setup_renderview_color_management
 
def show
 
def get_render_window_panel
 
def rman_ipr_resolution_refresh_set
 
def ipr_resolution_refresh
 
def ipr_make_resolution_item
 
def get_current_camera_panel
 
def get_current_camera
 
def set_current_camera
 
def get_ipr_camera
 

Function Documentation

def rfm2.ui.render_view.get_current_camera ( )
Return the current camera if defined.

If there is no current camera:
* Return the persp camera if it exists.
* Otherwise return the first available camera.

Returns:
- camera path

+ Here is the caller graph for this function:

def rfm2.ui.render_view.get_current_camera_panel ( )
Return the camera used by the current panel, if possible. Should be
renamed 'getCurrentPanelCamera'

1. Check the panel with focus and return its camera if it exists.
2. Otherwise return the camera used by the first visible model panel.
3. If everything failed, return the current camera.

Returns:
- camera name

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def rfm2.ui.render_view.get_ipr_camera ( )

+ Here is the call graph for this function:

def rfm2.ui.render_view.get_render_window_panel ( )

+ Here is the caller graph for this function:

def rfm2.ui.render_view.ipr_make_resolution_item (   menu)
Create the sub-menu each time the user ight-click the IPR shelf icon.
We add an extra check box to enable/disable auto-refresh. This is stored as
a user preference.

+ Here is the call graph for this function:

def rfm2.ui.render_view.ipr_resolution_refresh ( )
Get the resolution refresh preference

+ Here is the caller graph for this function:

def rfm2.ui.render_view.raise_renderview_window ( )
Look for the renderViewWindow and pop it up if it exists.

+ Here is the caller graph for this function:

def rfm2.ui.render_view.rman_ipr_resolution_refresh_set ( )
Save the user's preference in an optionVar
    By default, any resolution change will trigger an IPR refresh.
def rfm2.ui.render_view.set_current_camera (   cam)
Setup the renderView to use a specified camera. Also updates Maya's
internal global variable.

Args:
- cam (str): The camera that should rendered by the renderView.

Returns:
- None

+ Here is the caller graph for this function:

def rfm2.ui.render_view.setup_renderview_color_management ( )
Setup the renderView for linear->sRGB workflow
TODO: we should probably use mc.colorManagementPrefs() to do this.

+ Here is the caller graph for this function:

def rfm2.ui.render_view.show ( )

+ Here is the call graph for this function: