Skip to content

Clip sets

For creatorsAdd-on 1.159.0+

A clip is one motion on our skeleton: a walk, a squat, a reload. A clip set is many clips in one pair of files. Because every body bends on the same skeleton, one clip set plays on every body, matched by bone name. This page explains what a clip set holds, how a scene’s hero gets one, and how to export clips from Blender.

  • It turns bones. Each bone it keys has a rotation (a quaternion).
  • Only two bones move place: root, which carries the body across the ground, and DEF-spine, the hips. No bone changes size.
  • It runs at 30 frames a second.
  • It can key only some bones. Played over another motion, it moves only those bones.
  • It fits the body that plays it. The viewer scales each clip by the body’s hip height, so a shorter body takes quicker steps for the same speed.

A clip that adds to whatever the body is already doing, such as a flinch, is an additive clip. Name it <name>_add and key it from its first frame, not from the rest pose.

A clip set is two files with the same name:

  • <name>.glb: the skeleton and one animation per clip. It has no mesh.
  • <name>.json: a list of the clips. For each clip it gives the length in seconds and frames, whether it loops, whether it stays in place, and how far and how fast it travels.

A thing set is a small clip set that a thing brings to the body using it: how to hold a pistol, how to sit on a seat, how to use a phone. Thing sets sit in a things folder beside the clip set, one pair of files per kind: things/<kind>.glb and things/<kind>.json.

A scene does not name a clip set. A scene with the third-person hero (player.controller = third) gets one from who is playing and from the link they opened:

Who is playing What the hero plays
Signed in to MegaCity The reference body on the members’ clip set, made from the licensed clip library. It runs, crouches, climbs, and holds guns and items by their grips
Signed out A default body on its own clips
A link with ?clipset= That clip set, whoever is playing. See play your own clip set
A link with ?hero=wardrobe A default body, even when signed in

Signed in to MegaCity, members get the full cast; signed out, you get the default bodies. The impulse lab’s dummies follow the same rule. What each hero can do is on The player hero.

The Export Clips button writes every clip of a body as one clip set.

  1. Make your clips: pose and bake them, or make them from words.
  2. Delete the clips you do not want to ship. In the Outliner, switch to Blender File, open Actions, right-click a clip and choose Delete.
  3. Select the body and press Export Clips in the sidebar’s Character panel.
  4. Choose a folder and a file name and press Export Clips. The name starts as <body>-clips.glb beside your .blend file.

The status bar reads Clip set: N clips → …. You get the .glb and the .json side by side.

What goes in:

  • Every clip in the file that moves this body’s bones: bakes, motions from words and their takes, loops and mirrors. A clip keyed on the controls (from Edit on Controls) stays out: bake it first.
  • A clip is marked as a loop when its name contains loop, as every Make Loop clip’s does.
  • A clip is marked in place when its root moves less than 1 cm.
  • The .json names the skeleton the clips were made on, and adds + face when the body has face bones.

To drive a hero, a clip set needs idle and at least two of the move clips. The rest is optional.

Group Clip names
Standing idle
Moving (blended by direction and speed) walk_forward · walk_back · walk_left · walk_right · run_forward · run_back · run_left · run_right · sprint
In the air jump_start_take_off · fall_loop_air · land_from_fall · hard_landing
Crouching (all four, or none) crouch_idle · crouch_walk_forward · stand_to_crouch · crouch_to_stand
Turning in place turn_left_90 · turn_right_90 · turn_left_180 · turn_right_180
Flinches (additive, upper body) react_small_front_add, and the same for back, left and right, small and large
Carrying a box carry_box_idle
Getting up (the impulse lab’s bodies) get_up_from_back · get_up_from_front

A thing set’s clips are named by the part they play.

Name How it plays
enter · loop · exit A posture: enter once, loop while it lasts, exit once. A seat uses these
hold · aim An upper-body pose, kept while the thing is held, or aimed
use_<x> A one-shot on the upper body, such as use_fire, use_reload or use_call
go_<x> A one-shot of the whole body that moves it, such as go_vault
idle · walk · run A way of standing and moving that replaces the usual one while the thing is in use, such as a limp

The hero loads the pistol, rifle, seat and traverse thing sets, and the thing set a carried item names. See Hand items.

You can try a clip set of your own in any third-person scene with two link options.

  • ?clipset=<address>: the clip set’s web address without .glb or .json. The hero plays it, and looks for thing sets in the things folder beside it.
  • ?bodyurl=<address>: a .glb body on our skeleton for the hero to wear.

For example:

https://simulacrum.app/vr.html?cartridge=/scenes/traverse-test/&clipset=https://<your server>/clips/mine

The server that holds your files must let simulacrum.app read them: it has to send cross-origin (CORS) headers that allow it. A set without idle and two move clips does not drive the hero: the body keeps its own clips.

  • Keep location keys to root and the hips. The viewer drops place keys on every other bone, so each joint keeps the body’s own length.
  • A crouched hero walks forward only. There is no crouched sideways or backward walk yet.
  • Every body climbs like a grown-up. Ledge heights do not scale with a body’s size.
  • Use add-on 1.159.0 or later to export. Earlier versions also wrote other actions in the file into the .glb.