Skip to main content

Command Syntax

phix uses a consistent, readable command syntax inspired by professional lighting consoles. All commands follow the same basic pattern and can be entered in the command line at the bottom of the screen or in headless REPL mode.

Basic syntax#

<Action> <Object> <ID> [parameters]
PartExamples
ActionStore, Delete, Label, List, Go, Release
ObjectFixture, Group, Preset, Effect, Sequence, Executor
ID1, 1.1, 1 Thru 10, "My Group"
Parametersfade 2.5, "Name", -o, 1 1

Common patterns#

PatternExample
Select objectsFixture 1 Thru 10
Store an objectStore Group 1 "Front Wash"
Delete an objectDelete Preset 3.1
Rename an objectLabel Group 1 "New Name"
List objectsList Groups

ID notation#

Simple IDs#

fixture 1group 5

Range (Thru)#

fixture 1 thru 10

Union (+)#

fixture 1 + 3 + 7

Exclusion (-)#

fixture 1 thru 10 - 5

Preset dot-notation#

Presets use <category>.<slot> format:

preset 3.1      -- color category, slot 1preset color.1  -- same, by name

Category names and their numeric equivalents:

NumberNameAttributes
1dimmerIntensity
2positionPan, tilt
3colorRGB, CMY, color wheel
4goboGobo wheels
5beamZoom, iris, shutter
6shapersFraming, frost
7focusFocus
8controlControl attributes
9allAll attributes

Effect pool.slot notation#

effect 1.1    -- pool 1, slot 1

Flags#

Store commands accept flags:

FlagMeaning
-oOverwrite (replace existing)
-mMerge (add to existing)
-rRemove (remove from existing)
-gGlobal preset scope
-uUniversal preset scope
-sSelective preset scope

Getting help#

help     -- list all available commands?        -- same as help

Most commands also return usage info if called incorrectly:

store preset-- returns: Usage: Store Preset <category>.<slot> [name] [-o|-m|-r] [-g|-u|-s]

Undo and redo#

phix tracks a full command history. Undo and redo work for most editing operations:

undo    -- undo the last actionredo    -- redo the last undone actionhistory -- show recent command history