x3d_route
Validate and insert a ROUTE into an X3D scene by checking DEF names, field names, access types, and matching field types. Connect event outputs to inputs correctly.
Instructions
Validate and insert a ROUTE statement into an X3D scene.
ROUTEs connect event outputs to event inputs in X3D's event system.
This tool validates that both DEF names exist, field names are valid,
access types are compatible, and field types match before inserting.
Args:
x3d_source: Complete X3D XML document string or file path.
from_node: DEF name of the source node.
from_field: Output field on the source (must be outputOnly or inputOutput).
to_node: DEF name of the destination node.
to_field: Input field on the destination (must be inputOnly or inputOutput).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_node | Yes | ||
| to_field | Yes | ||
| from_node | Yes | ||
| from_field | Yes | ||
| x3d_source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |