Create a RayTK operator (ROP)
create_raytk_opInstances RayTK operators (SDF, camera, light, etc.) into a TouchDesigner network with optional input wiring, resolving master paths dynamically from the loaded RayTK toolkit.
Instructions
Copy a RayTK ROP master (SDF / camera / light / combine / material / render) into a network and optionally wire an existing op into one of its typed inputs, using the same COMP.copy primitive RayTK's own palette uses. Resolves the install-dependent master path live (RayTK's pathsByOpType lookup, or a category-folder search) — never hardcoded — so it requires the RayTK toolkit staged + loaded first (see manage_packages / the tdmcp://raytk/operators catalog). Complementary to the GLSL create_raymarch_scene: this instances RayTK's own operators instead of authoring a shader.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional node name for the new ROP. If omitted, TouchDesigner auto-uniques from the master name. | |
| node_x | No | nodeCenterX placement of the new ROP. Omit to auto-place to the right of existing siblings (avoids stacking repeated ops at the origin). | |
| node_y | No | nodeCenterY placement of the new ROP. Omit to auto-place (defaults to 0). | |
| op_type | Yes | RayTK operator name = the .tox master, e.g. 'sphereSdf', 'raymarchRender3D', 'lookAtCamera', 'pointLight', 'simpleUnion'. See the tdmcp://raytk/operators catalog resource. | |
| category | No | Optional RayTK category folder hint to speed master resolution, e.g. 'sdf','output','camera','light','combine','material','filter'. Optional because resolution also works by op_type alone. | |
| input_index | No | 0-based input connector index of the NEW op that connect_from wires into (matches TouchDesigner inputConnectors[]). For raymarchRender3D: 0=scene, 1=camera, 2=light. | |
| parent_path | No | Path of the parent COMP the new ROP is copied into. | /project1 |
| connect_from | No | Optional path of an existing operator to wire INTO this new op's input (source → new op). Omit for no wire; must be a non-empty path when present. | |
| library_path | No | Optional explicit path to the loaded RayTK library COMP (advanced). If omitted, the bridge probes for it — the runtime master path is install-dependent and must be read live, never hardcoded. |