🔴 CaptureGem — free to download and try: 5-minute recordings, up to 10 models. Premium adds auto-record and removes the limits. Download now →
Hook Script Boilerplate Generator guide illustration

Hook Script Boilerplate Generator


Select an event label + a single action, and we’ll generate a ready-to-edit script. CaptureGem has no hook, plugin or event-script system, so it never runs these scripts or sends them data: you run them yourself (for example from cron or Task Scheduler) and pipe in a small JSON payload. Security: we only generate placeholders — never paste secrets into this tool.

Warning: Never paste API keys, tokens, or passwords into this UI. We generate placeholders for you to fill in locally.
Enable "If/Then" Wrapper

Save as: scripts/on_recording_finished.py

Payload Field Reference

Fields the generated scripts read from the JSON you pipe in. CaptureGem doesn't send them; you can copy values such as modelName and duration from a video's metadata.json.

{model_name} — The performer's username.
{resolution} — e.g., '1080p', '4K'.
{bitrate} — Current stream bitrate in kbps.
{duration} — Recording length in seconds.
{file_path} — Absolute path to the recorded file.

Rate this guide

Loading ratings...

Was this guide helpful?

Comments