Shaders

Presets

Keep the state of the inputs of a shader or a pipeline, and come back to it with one click.

A preset is the state of the input controls at a given moment: a calm version, a wild one, the one for the second chorus. Save it once, and recall it with one click. Presets exist for shaders and for pipelines.

They are at the bottom left of the input controls. The button shows the name of the preset in use, or Presets when there is none.

What a preset keeps

  • the value of each input: sliders, options, checkboxes, colours and points;
  • the source of each image input: a file of the library, or a built-in image or video;
  • how each video and sound plays: play or pause, loop, muted;
  • which point2D inputs follow the mouse, and whether they are normalised.

A camera is not kept: it is a device of your computer, not a setting. A camera that is open stays as it is when you recall a preset.

Save, recall, change

The + button, left of the name, saves the inputs as a new preset. The menu of the name lists the presets.

ActionWhat it does
Defaults (first of the list)Gives the inputs back to the DEFAULT of the header: the sources of the images and what the inputs are bound to stay. No preset is in use then.
A preset in the listGives the inputs the state of the preset. It becomes the preset in use, and is ticked.
+, or Save as a new preset…Asks for a name and keeps the inputs as they are. A name that is taken gets a number: Calm 2.
Update "name"Keeps the inputs as they are in the preset in use. Available once the inputs have moved away from it.
Update a preset (Update another preset when one is in use)A list of the other presets: keeps the inputs as they are in the one you choose, which becomes the preset in use. After a restart no preset is in use, so this is where to update one.
Manage presets…A dialog that lists the Defaults and the presets, to rename them, keep the inputs in one of them, delete it, or bind it to a MIDI control or an OSC address. The inputs stay as they are.

A small dot beside the name says that the inputs changed since the preset in use. Move them back, and the dot goes.

Recalling a preset replaces what you gave the inputs: an input the preset does not mention goes back to the DEFAULT of the header. Presets are not written in the shader, Reset of the panel brings the inputs back to the preset in use (the defaults when none is), and Save as defaults works as before (see Input controls).

If you rename or remove an input of the shader afterwards, the presets still work: what they say of an input that is gone is ignored, and a new input keeps its default.

Bind a preset

Each preset, and the Defaults, can be recalled from a MIDI note or control, or from an OSC address: the pads of a controller become the scenes of a show.

  1. Open Manage presets….
  2. On the line of the preset (or of Defaults), press MIDI or OSC: it says it is waiting.
  3. Play the note, move the control past its first value, or send the message. The line tells what the preset is bound to.

From then on that note, that control reaching the half, or that message gives the inputs the state of the preset, which becomes the preset in use. A control that stays at the top recalls it once: it must come back down to recall it again. Unbind frees it, and a small MIDI or OSC mark beside the name in the list says which presets are bound. Esc stops the waiting.

The binding of a preset is not part of the preset: recalling or updating a preset never changes which control recalls which. It is kept with the other bindings of the document, and goes when its preset is deleted. A control that is also bound to an input does both. In the same way, each item of a list has a button of its own.

Where they are kept

In the library, in a hidden folder: .isf-studio/presets/, with one small file for each shader or pipeline (.isf-studio/presets/fx/rings.fs.json for fx/rings.fs). The explorer does not show it.

  • They follow the file: rename it, move it, copy it in Studio, and its presets go with it. A file that is sent to the Trash takes its presets with it, and a file that comes back from the Trash does not bring them back.
  • A file moved in the Finder leaves its presets behind: move it in Studio instead.
  • To keep them elsewhere, copy the library folder with its hidden folder.
  • What the inputs of a shader are bound to (the mouse, MIDI) is kept in the same hidden folder, in .isf-studio/bindings/, and follows the file in the same way. See Bind an input.

Sharing

Presets travel inside the archives of Studio:

  • a pipeline (.istpipe) carries its presets: Studio writes them in the file each time it saves the pipeline. Open a pipeline someone sent you, and its presets are there, kept in your library from then on. Delete them all, and they do not come back from the archive;
  • a shader bundle (.istshader) carries the presets of the shader, and unpacking it keeps them for the shader it makes;
  • a library (.istlib) carries the presets of its shaders and of its pipelines, and unpacking it keeps them for what it makes.

A .fs file alone does not carry them, and neither do Export, To Folder or a ZIP archive.

In the free edition

A shader or a pipeline keeps 3 presets. The menu says Pro on Save as a new preset… once you have them, and so does the title of the + button. The ones you have stay, and can still be updated, renamed and deleted. See Pricing.