Skip to content
Ciwb

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

  1. In Ciwb, choose File > Export > Export Cutscene…, pick Godot and export into a folder.
  2. Copy that folder anywhere inside your Godot project, for example res://cutscenes/gold/. Keep the files together: the scene finds the .glb and the .wav next to itself.
  3. Switch to Godot and let it import. Open Name.tscn and 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

NodeWhat it does
Name (Node3D)The root
SceneThe .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 current track for each camera, switched on at each of its shots and off when another camera takes over: these are the cuts,
  • a fov track 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 .glb when you switch back to it.
  • If you rename or move the files, open the scene once so Godot can fix the paths.