io nodes

2 node types in the io category.

file#

aliases: import load read

Load a scene or folder from disk, or geometry from a URL: OBJ, STL, PLY, glTF/GLB, .blend, Houdini .geo/.bgeo, CSV, points JSON, a JSON list of point rows (a placement list) or topotopo JSON; a PNG becomes an image volume named after the file, as image_file reads it with its defaults (image_file has the layer and colour options). .blend needs the Node host and Blender (TOPOTOPO_BLENDER selects its executable); Blender’s own exporter converts it to a cached GLB. Folder mode loads supported files in name order, non-recursively (export sidecars such as crate.glb.source.json are skipped): name becomes the file stem, or <stem>/<name> when the file has multiple distinct object names (on prims, packed prims and isolated points); its PNGs become images. copy_to_points {variants: 'name'} consumes a dropped folder of models directly. glTF empties become points; path holds ancestor names, and object extras become attributes. For a manual Blender GLB: +Y up (default), Apply Modifiers, Loose Edges and Custom Properties; convert curves to mesh first because the exporter drops curves without bevel geometry. Z-up files can be converted.

Inputs

None (generator).

Parameters

nametypedefaultrangedescription
pathpath""file or folder path or file URL; a relative path reads from the package folder (the nearest folder with a .topo file at or above the graph), else from the graph's folder (MCP: the package); folder mode needs directory support in the host
aliases: file filename
texture_sizefloat10.000001..png: the metres the picture's width covers on the model (a file knows no size; the texture nodes after it work in metres against it)
aliases: world_size
formatenum"auto"file format (auto = by extension; folders always use each file’s extension; ".points.json" = pointsjson; json also reads points streams, point rows ([{"P": [x, y, z], "yaw": 30, "name": "crate"}, …], each key an attribute as a CSV column) and Houdini .geo; bgeo = uncompressed binary Houdini geometry, not .bgeo.sc; png = an image volume)
options: auto obj stl ply glb gltf blend json geo bgeo csv pointsjson png
up_axisenum"y"source up axis; z converts Z-up files (Blender/Unreal exports) to Y-up
options: y z
scalefloat1uniform scale (e.g. 0.01 for centimetres → metres)
weldboolfalsefuse coincident points (glTF/STL meshes are split at seams; weld before booleans; expands packed instances)
instancingenum"packed"glTF shared meshes and EXT_mesh_gpu_instancing: keep instances as packed prims, or expand them into geometry
options: packed expand
missingenum"error"a file that is not there: error stops the cook; empty gives no geometry and a warning, for an input a person may not have made yet, such as inputs/markers.json before the first guide is drawn (the cook runs again when it appears)
options: error empty
aliases: if_missing optional

Example

{
  "type": "file",
  "params": { "path": "props/chair.obj", "up_axis": "z", "weld": true }
}

Used in the example guided_town.

scene_null#

aliases: null_object empty socket locator scene_empty attachment_point

Add a named scene empty (attachment socket): a meshless node in glTF export, parented to the root, another empty or a mesh.

Houdini: a Null object; Blender/Unreal: an Empty / socket. Adds one isolated point marked scene_empty = 1 with point attributes name, parent, orient and scale (help topic "export"). translation, rotation and scale are in geometry (model) space, so later transform nodes move the empty with the mesh; glTF export writes it as a node without a mesh under its parent with the local transform that keeps this geometry-space placement. parent names another empty or a mesh (the prim "name" of the pieces export splits by); missing, ambiguous and cyclic parents are export errors. Other point attributes set on the empty (e.g. a "forward" vector) export as node extras. The empty's attributes (scene_empty, parent, orient, scale and such extras) only hold their defaults on the mesh points after a merge, and export never writes them as mesh channels, even with custom_attribs. Ordinary loose points still export as POINTS.

Inputs

#namedescription
0geogeometry to add the empty to (optional) (optional)

Parameters

nametypedefaultrangedescription
namestring"socket"node name of the empty (unique when something parents to it)
aliases: node_name socket_name
parentstring""parent: "" = scene root, else the name of another empty or of a mesh (prim "name")
aliases: parent_name attach_to
translationvec3[0,0,0]position in geometry (model) space, metres
aliases: translate t position
rotationvec3[0,0,0]rotation in geometry space, degrees (x, then y, then z)
aliases: rotate r
scalevec3[1,1,1]scale
aliases: s

Writes: the input plus one point: scene_empty 1, name, parent, orient, scale

Example

{
  "nodes": {
    "body": { "type": "box", "params": { "size": [0.12, 0.2, 0.12] } },
    "named": {
      "type": "attrib_create",
      "in": ["body"],
      "params": { "name": "name", "class": "prim", "value": "housing" }
    },
    "wick": {
      "type": "scene_null",
      "in": ["named"],
      "params": {
        "name": "wick",
        "parent": "housing",
        "translation": [0, -0.05, 0]
      }
    },
    "flame": {
      "type": "scene_null",
      "in": ["wick"],
      "params": {
        "name": "flame",
        "parent": "wick",
        "translation": [0, -0.03, 0],
        "rotation": [0, 45, 0]
      }
    }
  },
  "output": "flame"
}