Expand description
High-level operations on a Project. This is the single API surface
shared by CLI, MCP server and GUI.
Structs§
- Pose
- Per-joint local-transform overrides produced by animating a skeleton.
Constants§
- MAX_
PAINT_ CELLS - Upper bound for one paint operation (fill_rect, paint_line): keeps a bogus coordinate range from an agent or file from allocating without bound. Generous for real tilemaps (1000×1000 cells).
Functions§
- add_
humanoid - add_
joint - add_
keyframe_ joint - add_
keyframe_ node - add_
node - add_
primitive - add_
primitive_ with_ material - Like
add_primitive, but immediately assigns a material to the instance. - add_
skeleton_ instance - add_
tile_ mesh - Register an existing mesh asset as a tile. Returns the tile index.
- add_
tile_ primitive - Generate a primitive mesh and register it as a tile. Returns the tile index.
- auto_
bind - Bind a mesh instance to a skeleton instance with automatic weights: each vertex is influenced by its two nearest joints with distance falloff.
- create_
animation - Create an empty reusable animation asset.
- create_
tilemap - Create a tilemap asset and an instance node for it.
- create_
tileset - Create an empty tileset with the given cell size (X width, Z depth).
- get_
transform - joint_
global - Global joint transform under a pose (skeleton space).
- joint_
local - Effective local transform of a joint given a pose (falls back to bind pose).
- joint_
world_ position - World-space bind-pose position of a joint of a skeleton instance node.
- sample_
pose - Sample
animat timetand resolve joint-name targets against the skeleton instanceskel_node(retargeting). Unknown joint names are skipped. - set_
node_ material - Attach a material to an existing mesh instance node.
- set_
tile_ motion - Give one tile a procedural motion (all of its cells animate alike, phase-staggered per cell in the viewer).
- set_
transform - skeleton_
of - Skeleton asset referenced by a skeleton-instance node.
- skinned_
positions - CPU linear blend skinning: returns deformed positions in the mesh node’s local space (apply the mesh node’s world transform on top for world space). Used by the viewer; exporters keep the skin data instead.
- skinning_
matrices - World-space skinning matrices (global joint transform, relative to mesh node)
for a mesh bound to
skel_node, underpose. - tilemap_
clear - Remove all cells. Returns the count.
- tilemap_
erase - Remove one cell; returns whether anything was there.
- tilemap_
fill_ rect - Paint an inclusive rectangle of cells. Returns how many cells were written.
Capped at
MAX_PAINT_CELLSso a bogus range from an agent or file cannot allocate without bound. - tilemap_
set_ cell - Paint one cell.
- world_
transform