Build RayTK expression graph
raytk_expr_graph_builderBuild an editable RayTK ROP expression graph from a preset or explicit nodes/edges, wire typed connectors, auto-layout, and expose the output via out1.
Instructions
Build an editable RayTK ROP expression graph from a preset or explicit nodes/edges: copy RayTK masters live via pathsByOpType/category search, wire typed connectors, apply simple parameter values, lay out copied nodes deterministically, and expose the selected output through out1. Complements create_raytk_scene (minimal scene) and create_raytk_op (single ROP). Requires RayTK staged and loaded; offline tests validate payload/registration only, while live render/cook proof remains explicit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the generated graph container. | raytk_expr_graph |
| edges | No | Custom graph edges. Preset edges are used when nodes are omitted. | |
| nodes | No | Custom RayTK ROP graph nodes. Leave empty to use the selected preset. | |
| preset | No | Starter graph to build when nodes are omitted. Use custom with explicit nodes/edges. | sphere_union_box |
| add_light | No | Append pointLight and wire it into renderer input 2 when a renderer exists. | |
| add_camera | No | Append lookAtCamera and wire it into renderer input 1 when a renderer exists. | |
| parent_path | No | Parent COMP path to build inside. | /project1 |
| add_material | No | Append basicMat between the SDF/combine tail and renderer when absent. | |
| add_renderer | No | Append raymarchRender3D when the graph has no output ROP. | |
| library_path | No | Optional explicit path to the loaded RayTK library COMP. Omit to probe pathsByOpType and known namespaces live. | |
| output_node_id | No | Node id to expose through out1. Defaults to the renderer added or inferred by the tool. | |
| capture_preview_image | No | Capture an inline preview from out1. RayTK shader compile may still be asynchronous. |