RenderManager

RenderManager.StartRender(renderMethodName, node=None, port=None, nodeList=None, portList=None, serialDiskRenderNodeList=None, views=None, settings=None, **kwargs)

Sets up and renders the scene from the passed nodes.

Adds a 'renderStarted' event to Katana’s event queue, providing the following keyword arguments:

  • node: The node from which the render was started.
  • renderer: The name of the renderer that is used for rendering, as obtained from the renderSettings.renderer attribute at /root.
  • renderMethodType: The type of render that was started, e.g. 'previewRender'.
  • renderMethodName: The name of the render method that was chosen, e.g. 'previewRenderLowRes'.
Parameters:
  • renderMethodName (str) – The name of the render method to use.
  • node (NodegraphAPI.Node or None) – The node to render from.
  • port (NodegraphAPI.Port or None) – The Port to render from.
  • nodeList (list of NodegraphAPI.Node or str or None) – A list of nodes or node names to render from.
  • portList (list of int or str or None) – A list of port indices or names to render from that correspond to the matching nodes from nodeList.
  • serialDiskRenderNodeList (list of str or None) – A list of nodes that should be disk rendered as dependencies of render nodes.
  • views (list of views or None) – A list of views.
  • settings (RenderingSettings or None) – The RenderingSettings instance to use.
Returns:

The list of render outputs.