PIES Studio 1.9 · Documentation

The editor: Code and Canvas

Every screen, function and event in the PIES Studio editor can be read and changed two ways: drawn, or written as PiLang code. This page covers how you switch between the two and what helps you while you write. The full tour of the editor is in the user manual.

Design and Code, Canvas and Code

Each editor tab has one view switch in its own toolbar row, at the left, before the palette:

Code is always the option on the right. The selected option is shown as a filled segment, each option has an icon and a label, and its tooltip shows the keyboard shortcut. The tab remembers your choice for that kind of tab, so the next function you open comes up in the view you used last.

Both views edit one draft. A change in Code shows on the canvas or designer when you switch back, and the reverse; nothing is saved until you save the tab, the same as any other edit.

A function tab with Code selected in the view switch

Writing in Code

Code is a text editor. Click anywhere and type: one step per line, written as the step's name with its arguments in brackets, such as Create Record(assets, $record, result), and blocks indented by four spaces:


IF ($record.site != "")
    Create Record(assets, $record, result)
    Return Data($result)
End If

The PiLang reference lists every step and its arguments.

Functions that use Switch, Try or Parallel blocks open read-only in Code; edit those on the Canvas.

The canvas reads the same words

On the Canvas each node is titled with the step's name and shows its arguments underneath, such as Create Record over (assets, $record, result) — the same words as its line in Code.

The Steps list and the Outline

Where sentences still appear

PiLang code is the name of a step wherever you edit it. The plain-English sentence for a step appears: