Library

Creating and organizing files

Create, rename, move, duplicate, copy, delete and find your files.

Create

Right-click a folder, or the empty space, then New…. The File > New menu does the same, and has a shortcut for two of them: Cmd+N for a shader, Cmd+P for a pipeline. The file is made in the folder selected in the explorer, or at the root when none is.

Type the name on the row itself and press Enter. You do not need to type the extension, and typing it does not double it.

The context menu

  • Add / Remove Vertex Shader: creates or removes the .vs beside a .fs.
  • Open, Show in Finder (Alt+Cmd+R).
  • To Shader… (a pipeline): makes the shader the pipeline compiles to, beside it, with no dialog. See Sharing.
  • Copy, Cut, Paste.
  • Export…: see Sharing.
  • Rename, Duplicate, Delete.

The context menu of the empty space (and of the name of the opened folder) is the one of a folder, for the library itself: New…, Show in Finder, Paste, Import… and Export as… (the whole library, as a .istlib or a ZIP). There is nothing to copy, cut, rename, duplicate or delete there.

Rename, move, duplicate

These operations keep everything that depends on a file consistent. A shader's .vs follows it, and so do its open tabs. Documents write the paths of their images relative to themselves: when you move or rename a document, or an image one depends on, Studio writes those paths again (in shaders, notes and pipelines) so they keep pointing at the same image. If one cannot be written, the console says which; the move itself is done.

A document does not have to be saved first, nor the documents that use an image you move. Their unsaved changes stay unsaved: they follow the file to its new name or folder, with the paths of their images written again, and the file on disk is rewritten the same way. What changes is the undo history of those documents, which starts again after the move.

To move a file or a folder out of its folder, drop it on the name of the opened folder at the top of the explorer, on a file at the root, or on the empty space under the list.

Copy and paste

Copy, cut and paste work inside the library and with the Finder: drop files from the Finder onto the explorer, or paste them, and they are copied in. From the Finder, nothing is overwritten: a name already taken becomes "name copy".

The other way works too: Copy in the explorer also puts the files on the system clipboard, so you can paste them in the Finder, in another folder, a mail or another library. A shader brings its .vs with it, and a folder goes whole. Pasting in the explorer itself is unchanged: it still reads what you copied in Studio. Cut stays inside Studio: pasted in the Finder it would copy, and leave the original where it is. This was tried with the Finder on macOS; the file managers of Windows and Linux have not been tried yet.

A single file can also be dragged out of the explorer onto the Finder or the desktop: a copy lands where it is dropped. This takes one file at a time (a selection or a folder does not leave this way, and a shader leaves without its .vs: use Copy and paste), and it is checked on macOS only.

An application that takes files but does not read that drag (the media bin of VDMX, for instance) needs a real file: hold Option (⌥) while you start the drag. The file then leaves as the Finder would give it. This drag belongs to the system: it is not taken by the explorer, the canvas of a pipeline or the viewers of Studio, so use it only to go out. It is tried on macOS only.

When files come the other way and the sidebar shows another activity, hold them over the Explorer icon of the activities bar: it opens, and you can drop them in.

Between two windows

Each window has its own library, and a copy in one can be pasted in the other: select the pipelines or shaders, Copy, then Paste in the other window. Dragging them from one window to the other copies them too (it never moves what has the same name in the other library).

The images a pipeline or a shader imports come with it, and the same goes for a paste from the Finder. An image beside the document, or below it, keeps its place relative to it. One that sits elsewhere (../Images/a.png) is put in an images/ folder next to the copy, and the pipeline or shader is changed to say so. You can rename or move that folder afterwards: the pipelines follow. An image the folder already has and that is the same is not copied again. If it differs, Studio asks once: Keep both (the new one is named "name copy"), Replace, Keep the existing ones or Cancel, which pastes none of that document.

Inside the library, pasting (or moving by cut and paste or by drag) a file onto a name the folder already has asks what to do. Replace puts the file in the way in the Trash and takes its place, Keep both (copies only) names the new one "name copy", and Cancel changes nothing. A .vs is replaced along with its .fs. Pasting beside the original is a duplicate, not a conflict.

Delete

Delete sends the file, or the folder and everything in it, to the Trash after asking. The tabs of what disappears are closed and their drafts forgotten.

Show in Finder

File > Show in Finder (Alt+Cmd+R), or the context menu, reveals the selected file.

Ratings

The Info section of the inspector has a row of five stars. Rate your shaders; Studio remembers it for the library. The rating lives in Studio's own state, not in your files. It goes with a shader, a pipeline or a library when you share them as a .istshader, a .istpipe or a .istlib: see Your notes travel.

Tests

The Info section of the inspector has a selector where you can add a software where you tested the shader. This allows you to keep track of which software environments you have used for testing, making it easier to reproduce or continue your work later. This lives in Studio's own state, not in your files.