The PXL tool UI has 3 tabs: the main UI tab, the Output tab, and the Masking tab. The main tab supports two main modes, Develop mode and User mode.
User mode is meant to address the needs of users of the PXL script, who are interested in changing the parameters to the script, but not necessarily the script itself. Develop mode also has parameter controls as in User mode, but has a UI to edit the script using the Toxik internal editor, or read the script directly from a file (to support a developer who wishes to edit the script using an external editor), and view script compilation errors.
The PXL User mode UI is shown below. It shows a PXL tool where two parameters have been added, here named Gain and Rotation. The Develop functionality is muted, so its UI is not shown. The Reset button under the parameters is used to reset only the parameters, not the whole tool, which is done with the Reset button in the General Tool UI.
One of the UI layouts of the PXL Develop mode is shown below. In Develop mode, Develop is un-muted, so that developer functionality is exposed in the UI.
The area on the left displays the same parameters that are shown in User mode, as well as two buttons to add and delete parameters. Parameters cannot be edited, only added and removed.
Clicking the Add button pops up a modal dialog where the user types in the name of the parameter, its minimum, maximum, and default values, as well as the minimum increment to be used when changing the value in the UI. This modal dialog offers a Cancel button.
Clicking the Delete button pops up a menu where you select the parameter to be removed.
The Develop controls are to the right of the Parameter controls. The File and Edit radio buttons control whether the PXL script source is read from an external file, or from the Toxik internal editor.
The above graphic shows Edit mode, where the PXL script developer is editing the script inside the Toxik internal editor (titled Script), which is displayed to the right of the develop controls.
Select: | To: |
---|---|
Apply | compile the edited script and, if successful, applies it as the new image processing script. |
Import | display a modal dialog to read an external file into the Toxik internal editor. The contents of the external file replace the contents of the Toxik internal editor. |
Export | to display a modal dialog to write the contents of the Toxik internal editor to an external file. |
Revert | to replace the contents of the Toxik internal editor with the currently-applied script, thereby reverting the edited script back to what it was when previously applied. |
The script status and the applied script display share the right portion of the PXL UI. Push toggle buttons on the top of that column control which text viewer is shown. Both text views are read-only views. The status text viewer shows compilation errors from the latest applied script, if any. If there are no errors, the display shows a success message. The applied script viewer shows the currently-applied script. This can be useful as a reference, when the PXL script is actively undergoing editing, and you want to know what the currently-applied script is.
While in Develop mode and the PXL script is being read from an external file, you will edit the PXL file with an editor external to Toxik, then save the file to disk. You will then click on the Apply button to have Toxik read the script from the file and apply it. In this mode, the Import, Export, and Revert buttons of the Develop controls are not relevant, as they pertain to the Toxik internal editor, and are therefore not shown.