The CAGEAnimation Editor is a timeline UI for CAGEAnimation function entities. It edits float curves over time, string events that fire pins on the flowgraph, and animation-entity bindings used by play-animation nodes — and, with Animation Mode, plays the result in the Viewport and turns moves made there into keyframes.
This is not the same as the Animation Editor, which browses the animation clips in ANIMATION.PAK. The CAGEAnimation Editor works on a scripting entity inside a composite.
While the editor is open you can jump to linked entities (for example from an Animation Entity binding) without closing the window. Edits still go to the original CAGEAnimation by ID.
The window is split into three main areas, shown below on a retail cutscene animation:

cutscene_20 in SCI_HUB: six position tracks on the medical-kit lid, one yellow string-event lane and thirteen blue Animation Entity lanes. Nothing is selected, so the inspector area on the right is empty.
The footer has Snap / Interval (the interval is greyed out until Snap is ticked), Bezier curves, Animation Mode (with a time readout, Loop and Play while it's on, and In game beside it while Live Link is connected) and Close.
Float animation is organised by entity. Each entity node in the tree can hold one or more parameter tracks (for example position.x, a float parameter name, and so on).
Use the checkbox glyphs on entity and parameter nodes to show or hide curves. Parent entities can show a mixed state when only some child tracks are visible. Clicking a node label frames that entity’s (or parameter’s) tracks in the graph.
Each visible float track is drawn as a coloured curve. When the cursor is near a curve, that line thickens so you can tell which track you are targeting. Below, the middle keyframe of a shutter's position [y] track is selected: with Bezier curves on, its tangent handles are drawn either side of it, and the Keyframe panel on the right shows its value. The position [Roll] track has been unticked in the tree, which is why the entity node shows the mixed state.
![A selected keyframe on the shutter's position [y] curve with its bezier tangent handles, and the Keyframe inspector showing its value and a Delete Keyframe button.](img/keyframe-selected.jpg)
Wall_Mid_View's shutter animation in SCI_HUB, with position [y]'s middle keyframe selected.
Event tracks are horizontal lanes under the float graph. Right-click anywhere on the graph (plot, lanes, or empty area) to add one:
CAGEAnimation itself.Right-click a lane for Add Event Here or Delete Event Track. Drag the grip between the plot and the lanes to resize lane height. Shift+click an empty part of a lane also adds an event at that time. To move an event, click it to select it, then drag it along its lane (subject to snap). Events can be selected several at a time, and together with keyframes, as described in Editing Keyframes.
String event keyframes store a forward event name. Selecting one on the yellow lane opens the Event panel, as shown below.

detach_box at 47 s on cutscene_20's string lane; the forward name is edited here and the reverse_ pin is derived from it.
CAGEAnimation node — the same pattern as TriggerSequence method pins.Clicking a string event lane (not a keyframe) does not open a side panel — there are no entity bindings to edit.
These tracks link the timeline to entities that play animations.
Track bindings — click the blue lane (with no keyframe selected) to show the Animation Entity Track panel and its three slots, pictured below:

A camera lane from cutscene_20: MARKER and CAMERA are bound (Jump / Reassign…), CHARACTER is still empty (Assign…).
CMD_PlayAnimation, or a composite instanceThe picker a slot opens lists just those types, plus composite instances so you can step into them.
These bound objects are linked to the play-animation entity on the event track, supplying context such as convergence positions and associated characters.
Each slot shows the assigned entity's name and type (bold, coloured, and respecting Show ShortGuids), with Jump and Assign… / Reassign…. Empty slots read (none) with Jump disabled, and create a new connection for that binding type when you assign — in the shot above, the camera lane's MARKER and CAMERA are bound and CHARACTER is still empty.
Keyframes on these tracks pick a play-animation entity:
CMD_PlayAnimationCameraPlayAnimationPlayEnvironmentAnimationThe linked animation entity plays when the time marker reaches that keyframe on the event timeline.
Selecting one of these keyframes opens the Animation Entity panel with the linked entity's name and type, Open in Inspector, Reassign… and Delete Keyframe, as below. Marker labels on the timeline use the entity display name.

A timeline tells you the numbers; Animation Mode shows you the motion. With it on, the editor drives the Viewport from a playhead, so a door swings, a camera tracks or a light moves as you scrub — and moving something out in the 3D view becomes a keyframe. It needs the Viewport, unless it can play the animation in the game instead (see Previewing in the Game): with neither, clicking it says so.
The one rule everything follows: Animation Mode never changes an entity's own values. An entity's position is where it rests when nothing is playing, and the animation is the only thing that moves it. That's what makes leaving the mode safe at any moment — everything the preview moved goes straight back where it was.
Click Animation Mode in the footer (it becomes Exit Animation Mode, in bold, while it's on). A playhead appears on the timeline — a red line down the graph and lanes, with its time labelled at the top — with a time readout, a Loop box and Play beside the button, as shown below:

Animation Mode on, with the playhead parked at 52.80 s on cutscene_20's lid-opening keyframes; the footer button now reads Exit Animation Mode in bold.
Which things move depends on where you came from. A CAGEAnimation addresses its targets relative to its own composite, and the same composite can be instanced many times over, so the hierarchy you stepped through to reach the animation is what decides which placement is previewed. Open the editor from inside the instance you want to watch.
Only the entity's position parameter is previewed — x, y, z and yaw, pitch, roll. Float parameters on lights, sounds and the like are animated in-game as normal, but there's nothing in the Viewport to show them on.
With the game running and Live Link connected, an In game box appears beside Animation Mode. Leave it ticked (it is by default, and OpenCAGE remembers your choice) and Animation Mode plays the animation in the running game as well as the Viewport. The game uses its own animation code, so it shows everything the animation drives, including lights and other float parameters, not just positions.
While the game is driving it, the window's title ends (driving the game), and a row under the timeline says what the game is doing, such as Game: held at 1.25 s or Game: playing 2.10 s, or why it can't show it. Common reasons:
Animation Mode can run on the game alone: with In game ticked you don't need the Viewport open. Cinematic animations (the ones that play a cutscene) can't be driven in the game yet.
Put the playhead where you want a keyframe, select the entity in the Viewport and move it with the transform gizmo. Instead of changing the entity's position, the move is recorded as keyframes at the playhead — on the animation's tracks for that entity, adding them (and the connection) if the entity wasn't in the animation yet. A drag is one undo step, however many values it wrote. The same goes for a value typed into the inspector while the mode is on, for an existing FLOAT or TRANSFORM parameter the animation can reach; adding a parameter the entity didn't have, or editing several entities at once, is applied to the entity as normal.
Anything the animation can't reach from its composite is edited normally, so you can still fix up scenery around the thing you're animating without leaving the mode.
The inspector shows what an animation controls: parameters driven by a CAGEAnimation in the hierarchy you're in get a purple value cell, alongside the blue and orange ones described in the Scripting Intro.
Path Tools (the button beside Bezier curves, and the bottom of the track list's right-click menu) key whole moves for you: flying something along a path, making one thing ride along with another, and thinning out keys. Each is one undo step, and the window picks up the result straight away.
Keys an entity (a camera, a ship's composite instance, a model) flying through points, the way an aircraft flies: its nose follows the path, it banks into turns (tilted so its "up" points along the lift the turn needs, like a coordinated turn, scaled and limited by Max bank), and its speed follows a plan. Keys only go where the curve needs one, within the key tolerance, so a 30 second loop is a few hundred keys rather than one a frame.
SplinePath in the same composite (draw one with the spline editor's Edit in Viewport).The result reports the flight's length and duration, its speed range, the biggest bank (and when), the load in g and how closely the keys follow it. The same is the fly option of the AI assistant tools animate_camera_path and create_camera_animation.


Keys one entity with another's motion, so it moves, turns and banks with it frame for frame on the same clock: a pilot in a cockpit, a light or an emitter on a vehicle, a camera mounted on a ship. (A camera cannot be attached by a link, and an animated character trails a keyed vehicle by a frame or two - which is why a baked pose rides better.)
With an offset the rider's keys are worked out from the leader's motion and fitted within the key tolerance. Keys on an entity inside a composite instance apply in the animation's own composite's space (the instances in between do not move them), which is how the game plays them and how the editor's previews, Animation Mode and world-space tools show and write them; the AI assistant tool is ride_along. A composite instance that holds animations of its own (another CAGEAnimation, a RotateInTime) freezes them while it is keyed: Path Tools warns, as Level Check does.
Thins the keys of every track (or one entity's) to the fewest of its own keys that play within a tolerance of how the animation plays now - checked 240 times a second as the game plays the curves, and at every key that goes. Positions in millimetres, angles in degrees, other values in their own units (by default 0.1% of each track's range). Stretches nothing was taken from keep their exact tangents, so they play exactly as before, and cuts (two keys a fraction of a second apart) are kept. Check reports what would go without changing anything. A key a frame from an exporter typically comes down to a tenth or less; the AI assistant tool is simplify_keys.

A character's clip (CMD_PlayAnimation) runs on a clock of its own, and the game lets it advance at most 1/24 of a second each frame, while a CAGEAnimation advances by the whole frame. Every frame that takes longer than that — a hitch, a slow PC — puts the character a little further behind the cutscene for good: an actor drifts off the vehicle it is riding, or lands after the camera has cut away.
Right-click a CMD_PlayAnimation in the flowgraph (or in the entity list) and choose Sync to a CAGEAnimation…. Pick a CAGEAnimation in the same composite and press Sync: the command's ExternalTime is linked to it, so the clip's time is the CAGEAnimation's time on every frame, however the frame rate goes. Clip starts at plays the clip's first frame that many seconds into the CAGEAnimation (its ExternalStartTime is linked to a VariableFloat holding it, named after the command). Unsync takes the links off. It's one undo step.

In game, a synced clip's time is the CAGEAnimation's exactly; with the game's steps forced to 15 a second (the Debug Menu's game.fixed_step_fps), an unsynced copy of the same clip started with it had fallen to 0.625 of the time (2.83 s against 4.53 s) — the drift a slow PC gets.
TriggerBindCharacter) when the CAGEAnimation starts.finished once the CAGEAnimation's time has passed the end of the clip, so the CAGEAnimation has to run that long; the dialog says when that is.ExternalTime to a VariableFloat keyed in the CAGEAnimation that stops there, rather than to the CAGEAnimation itself: the command never finishes, so the character never snaps back. The XENO cutscene held its paired kill and climb clips that way.CMD_PlayAnimation takes a clock. An additive clip — one that layers over what the character is doing — belongs on CHR_PlaySecondaryAnimation, and the dialog says so when the command plays one.A clip that moves the character somewhere also wants importing as one that travels at a marker. The Cinematic Shot Builder's clip sync does the same for every character in a shot list. The AI assistant tool is sync_clip_to_animation; in game, the Debug Menu's scripts.list_animations (the CAGEAnimation's time) and anim.report (the character's clip) read the same.
There is nothing to save. Every edit — a keyframe moved, a track added, an event renamed, a binding changed — is written to the CAGEAnimation as you make it, and anim_length is kept up to date from the timeline. The inspector shows a new length, in bold as a changed value, a moment after you set it, while this window is still open. Close just closes the window (and leaves Animation Mode if it's on).
Each edit is an undo step in the main editor: Edit → Undo (or Ctrl+Z with the main window focused — the shortcut doesn't work inside this window) takes it back even while this window is open, and the window picks up the restored tracks. A gizmo drag in Animation Mode counts as one step, not one per value it recorded.
An event's pins on the CAGEAnimation node exist for as long as some keyframe uses that event name; removing the last one removes the forward and reverse pins. Deleting events (with the inspector's Delete Event button, the Delete key or the graph's right-click menu), or deleting a whole event track, warns first if any of the pins going away still have flowgraph connections. Renaming an event doesn't — so check the node after that.
Deleting an entity the animation keys, or an instance holding one, also takes the tracks that played on it: their bindings and the curves only they played go in the same undo step, from the editor's Delete and from an AI assistant's delete_entities alike. So a script that deletes and re-creates what it animates no longer leaves dead tracks behind that grow the animation every time. A curve another binding still plays stays, and so do event tracks, whose events are the animation's own pins. Undo puts the tracks back. Tracks left behind by deletes in older versions are listed by the Level Check as dead animation tracks.