origamiDOCS

Editor

Autocomplete

A list of matching names opens under the caret as you type. It lists only what Origami has.

Keys: up and down move, enter or tab accepts, esc closes.

clip.te
//    temperature  amount

Click controls

Hover a call that takes numbers. It underlines. Click it to open its controls. Dragging rewrites the numbers in the script and the preview follows. Esc or a click outside closes it. cmd+z undoes one whole drag.

Value Control Calls
Number slider speed, volume, scale, loop, pos, fade, trim, for, at, shift, every colour slider
Hue and amount colour wheel, plus sliders shadowTint, highlightTint, wheel
Points curve pad, plus sliders curve, hueVsSat, hueVsHue, hueVsLuma, lumaVsSat, satVsSat
Colour colour wheel and a light slider color, text and caption color, hslSecondary key
clip.temperature(-10)
//   click, then drag the slider from -100 to 100

Type tool

Click the T beside the speed button, or press t, then click anywhere in the picture: Origami adds text("text").at(<playhead>).for(3).pos(x, y) to your script with its top-left corner at the spot you clicked, and you type the words right there. Enter saves them, Esc removes the new text, and the size slider, colour wheel and dragging in the preview edit it afterwards.

Edit text on the picture

Double-click any text or caption in the preview to change its words right on the picture; press Enter (or click elsewhere) to save them into the script, Esc to cancel, and Shift+Enter for a new line. This works when the words are written as a quoted string in the text("...") call; for words that come from a variable, a template or a captions file, edit the script instead.

Fonts

Click a text( or caption( call in the code, or open the clip in the Motion tab, and use the font row to choose from the font files beside your script and every font installed on this Mac; type to narrow the list, click or press Enter to apply, Esc to close. Picking writes font: "Name" into that call's options (adding the options if there are none, and replacing a variable in that call only), and "default" removes it.

Problems

A value that cannot work gets a red squiggle. Hover it to read why.

clip.trim(5, 2)          // trim start must be before its end
clip.temperature(250)    // temperature takes -100 to 100
clip.trim(0, 99)         // the file is only 39.67 s long

A bracket with no partner is marked as you type.

stack(                   // this ( is never closed

A file that does not exist, or a line that fails when the script runs, is marked on save.

Hover info

Rest the pointer on a name to see what it is.

Kind Made by Accepts
Video video timing, sound, placement, colour
Audio sound timing and sound. No picture, so no colour
Shape text, caption, captions, image, color timing, placement, colour. No source to trim
Group cat, stack everything; it applies to each clip inside

Autocomplete only offers the methods a kind accepts.

cmd+f or ctrl+f opens search in the code pane. Typing jumps to the first match. Enter goes to the next, shift+enter to the previous, esc closes.

When the text is exactly a clip's name, the timeline also jumps to that clip.

clip_6
// selects clip_6 in the code and moves the playhead to it

Folding

Click a gutter arrow to hide a block or a run of definitions. cmd+opt+[ folds at the caret, cmd+opt+] unfolds.

Layout

Drag the edge between panes to resize. cmd+= and cmd+- change the code size. cmd+0 resets.

History

Every save keeps a version of the script on your Mac, so you can see what changed and bring an earlier version back.

Open the list with the ↺ button at the right end of the code pane's header, cmd+y, File › History… or :history. It drops down above the code, newest first, grouped by day: Today, Yesterday, then the date. Each row shows when (just now, 12 min ago, then the time), what changed, and how many lines were added (green) and removed (red). The newest is marked current unless the code on screen has unsaved changes. A change to the numbers in one call on a named clip reads like dome · temperature -4 → -10 or camp · trim 12, 18 → 12, 20; any other change shows its first changed line, and a restore reads ↺ restored 11:31.

Click a version, or move with j and k (or the arrow keys) and press enter, to compare it with the code on screen, saved or not. Red lines are only in that version, green lines came after it with their line number, the rest is dimmed, and long unchanged stretches fold to ⋯ 12 unchanged lines. ]c and [c (or ↑ and ↓ in the bar) jump between changes, ← back or esc returns to the list, and esc again closes it.

Restore this version (or r) puts that version back into the script and saves it as a new version on top; the list stays open. Nothing is lost: the code that was on screen is kept as a version first, even if it was not saved, and cmd+z undoes the restore. While the file has changed on disk, pick keep mine or use disk first.

Every command is also in the menu bar, with its shortcut. File has New (cmd+n), Open… (cmd+o), Open Recent, Save (cmd+s), History… (cmd+y), Export… (cmd+shift+e) and Close Window (cmd+w). Help › What's New opens the changelog.

Export… (also ⋯ › export) opens the export dialog. It picks where to save, the resolution (the timeline's size, 4K, 1080p or 720p), the format (H.264, HEVC, or ProRes 422 saved as .mov), the quality (High, Standard or Small), the range (the whole timeline or the selected clip) and whether to include audio. Enter exports, Esc cancels, and the choices are remembered for the script in ~/Library/Application Support/Origami/export, so they never travel with a shared project. The export is written to a hidden file beside the destination and moved into place when it finishes, so a failed or cancelled export leaves any file that was already there untouched. If the file already exists, Origami asks first: Replace writes over it, Keep Both saves the new export next to it as name 2.mp4, and Cancel goes back to the dialog. 4K draws text and shapes at full size, so names and captions stay sharp; video is scaled up from the clips. :export name.mp4 still exports straight away at the timeline's size.