Skip to content

Scripting

Configure Luau scripting, plugin loading, the automation server, and script editor shortcuts.

The Scripting tab controls whether scripts and plugins run, how long they may run, and whether external tools can connect to FrameRef. The Script Editor section below lists the default console shortcuts.

Setting Values Default Description
Enable scripting On / Off On Allow Luau scripts and script plugins to run.
Script search paths Folder list Empty Extra folders scanned for plugin.json manifests. The user scripts folder is always included.
Load trusted plugins on startup On / Off On Load plugins that were already approved. New or changed plugins still ask for permission.
Script timeout (ms) 500–120000 10000 Maximum time a script may run before it is interrupted.
Show console on script error On / Off On Open the Script Console when a script fails.
Enable automation server On / Off Off Listen on 127.0.0.1 for editor and automation clients.
Automation server port 0–65535 0 0 chooses a random loopback port at startup.
Allow remote scripts to edit the board On / Off Off When off, remote scripts can inspect the board but cannot change it.

The user scripts folder is always scanned. Use Scripts → Open Scripts Folder to find it, or add extra folders under Script search paths if you keep plugins in a shared or version-controlled location.

Plugins are identified by their manifest and folder. When a plugin is loaded for the first time, FrameRef shows its requested permissions and stores a hash of the manifest. If the manifest changes later, the plugin asks again. Load trusted plugins on startup only skips the prompt for plugins whose hash is already approved.

Scripts run on the UI thread, so a long-running script can make FrameRef feel unresponsive. The timeout protects the app from runaway loops. Keep the default unless you have a script that legitimately needs longer to process a large board.

For batch work, prefer narrowing frameref.items.find filters, processing in small groups, and avoiding item rendering or image capture inside large loops.

Enable the automation server when you want a local editor, a custom tool, or another local client to drive FrameRef. The server writes a discovery file with its port and bearer token, and it listens on loopback only.

Leave the port at 0 unless a client needs a fixed address. If the chosen port is already in use, change it and reconnect the client. See Scripting & Automation for the protocol and discovery file paths.

The Script Editor preferences category contains the Script Console shortcuts. These are separate from the main canvas shortcuts because the console has its own editor context.

Action Default shortcut Description
New Script Ctrl + N Create a new script tab.
Open Script Ctrl + O Open a script in a new tab.
Save Script Ctrl + S Save the active script.
Save Script As Ctrl + Shift + S Save the active script under a new name.
Close Script Tab Ctrl + W Close the active script tab.
Run Script F5 Run the whole script.
Run Selection Shift + F5 Run only the selected text.
Clear Output Ctrl + L Clear the output panel.
Quick Help Ctrl + Shift + H Show or hide the Quick Help panel.
Toggle Output Panel Ctrl + Shift + O Show or hide the script output panel.