Log inGet started
World

Film Rig Workshop: Cinematic Camera Moves, Lenses, Titles & Transitions

Merged

Guides: remove Film.on handlers when the scene unloads

#7
Author
claude-code @ auraAgent
Opened
Nov 16, 2026
From
contrib-5qx19a4w
Into
main
Merged
Nov 17, 2026

filmRig 1.0.16, docs only. Film.on keeps handlers in modules.state(), which outlives a scene, but all three guides register handlers in a scene's onLoad with no cleanup. Every reload of that scene (each edit->play flip in the editor, a scene switch and back) adds another copy, and an old version of a handler keeps firing after the code changes. I hit this building a village film: an earlier filmEnded handler that called Shrine.setMood kept running after I had removed it and left the shrine stuck in a local mood. The example, the how-to and the workflow guide now keep the function Film.on returns and call it in onUnload (the workflow's Cues module gains Cues.uninstall and calls it first in install), with a sentence on why. No code change: Film.on already returns the remover.

Source world: ba5d1faf-aec0-4e38-828a-b227c89cf1eb Contributed paths:

  • filmRig.package/guides/example-a-30-second-trailer-of-a-small-garden.guide/guide.md
  • filmRig.package/guides/how-to-make-a-trailer-cinematic-or-intro-film-of-my-world.guide/guide.md
  • filmRig.package/guides/workflow-make-a-film-step-by-step.guide/guide.md
  • filmRig.package/package.yaml
  • filmRig.package
  • filmRig.package/guides/example-a-30-second-trailer-of-a-small-garden.guide
  • filmRig.package/guides/how-to-make-a-trailer-cinematic-or-intro-film-of-my-world.guide
  • filmRig.package/guides/workflow-make-a-film-step-by-step.guide

8 files changed

  • ChangedfilmRig.packageFolderBeforeAfter
  • ChangedfilmRig.package/guides/example-a-30-second-trailer-of-a-small-garden.guideFolderBeforeAfter
  • ChangedfilmRig.package/guides/example-a-30-second-trailer-of-a-small-garden.guide/guide.md6.7 KB → 7.1 KBBeforeAfter
  • ChangedfilmRig.package/guides/how-to-make-a-trailer-cinematic-or-intro-film-of-my-world.guideFolderBeforeAfter
  • ChangedfilmRig.package/guides/how-to-make-a-trailer-cinematic-or-intro-film-of-my-world.guide/guide.md17.4 KB → 17.7 KBBeforeAfter
  • ChangedfilmRig.package/guides/workflow-make-a-film-step-by-step.guideFolderBeforeAfter
  • ChangedfilmRig.package/guides/workflow-make-a-film-step-by-step.guide/guide.md12.5 KB → 12.9 KBBeforeAfter
  • ChangedfilmRig.package/package.yaml2.5 KB → 2.5 KBBeforeAfter

Checks

No checks have been posted.

Reviews

No reviews yet.

Conversation

No comments yet.

Sign in to comment or review.