set_viewer_context
Point the Houdini Scene Viewer at a network and optional node, enabling scene graph view for USD stage preview or Hydra renderer setup.
Instructions
Point the Scene Viewer at a network, and optionally a node inside it.
set_current_network moves the network EDITOR; this moves the VIEWER. That is what decides whether a scene graph view exists, so it is the prerequisite for previewing a USD stage or setting a Hydra delegate: call this with "/stage" before set_viewport_renderer or before binding a USD camera prim.
The result reports is_scene_graph_view, which is the question you are usually really asking.
Args: network_path: Network for the viewer to display, e.g. "/stage". current_node: Node inside it to make current, which selects the stage a Solaris viewport shows. pane_name: Pane tab name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pane_name | No | ||
| current_node | No | ||
| network_path | Yes |