Share
Cutscenes in Godot
For Godot, Export Cutscene writes a scene, Name.tscn, that plays the whole cutscene on its own: motion, camera cuts, zooms and sound. It works with Godot 4.
Set it up
- In Ciwb, choose File > Export > Export Cutscene…, pick Godot and export into a folder.
- Copy that folder anywhere inside your Godot project, for example
res://cutscenes/gold/. Keep the files together: the scene finds the.glband the.wavnext to itself. - Switch to Godot and let it import. Open
Name.tscnand press Run Current Scene (F6). The cutscene plays.
To play it inside a level, drag Name.tscn into the level (or instance it from code). It starts by itself.
What is in the scene
| Node | What it does |
|---|---|
Name (Node3D) | The root |
Scene | The .glb, instanced. Its own AnimationPlayer holds the baked animation. |
Audio (AudioStreamPlayer) | The film's sound |
Director (AnimationPlayer) | Plays the cutscene, with one autoplaying animation |
The Director's animation has:
- an animation track that starts the
.glb's baked animation at 0, - a
currenttrack for each camera, switched on at each of its shots and off when another camera takes over: these are the cuts, - a
fovtrack for each camera whose zoom changes, - an audio track that plays the WAV from the start.
Because everything is on one Director timeline, scrubbing it in the editor previews the cuts and the sound together.
Play it from code
Turn off Autoplay on Load on the Director if you want to start it yourself:
@onready var director: AnimationPlayer = $Gold/Director
func start_cutscene() -> void:
director.play("Dont_Touch_the_Gold")
await director.animation_finished
$Player/Camera3D.make_current() # back to the game camera
The cut and event markers are in Name.cutscene.json if you want to trigger game events at exact times: add them as method keys on the Director animation, or read the JSON at runtime.
Good to know
- Camera field of view in Godot is vertical, as in Ciwb, so the framing matches.
- Re-exporting over the same files updates the cutscene. Godot reimports the
.glbwhen you switch back to it. - If you rename or move the files, open the scene once so Godot can fix the paths.