Skip to content

Search

Documentation

animation_library asset type

A library holds clips, and a clip keys node properties over time. loop_mode is none, linear or pingpong; each track names a target, a property, an…

Files live in animations/. Used by animation · library.

A library holds clips, and a clip keys node properties over time. loop_mode is none, linear or pingpong; each track names a target, a property, an interpolation and its keys.

type = "animation_library"

[clips.patrol]           # one clip per file, or several, addressed as file.toml#patrol
length = 4.0             # seconds; left out, the clip ends at its last key
loop_mode = "pingpong"   # none, linear or pingpong

[[clips.patrol.tracks]]
target = ""              # node path relative to the playing node; empty is that node
property = "position"    # rotation_euler, rotation, scale, visible, tint or <component>/<property>
interpolation = "linear" # step, linear or cubic
keys = [
  { time = 0.0, value = [-2.5, 0.25, -2.0] },
  { time = 4.0, value = [-2.5, 0.25, 2.0], ease = "in_out_sine" },
]

[[clips.patrol.tracks]]  # no property: a method track, each key a call on the node's script
keys = [{ time = 2.0, call = "on_halfway" }]