Boethos Tutorial - November 2017 update

Опубликовано: 05 Август 2026
на канале: CR Green
490
12

A newer tutorial showing how to use my Boethos code and the CrossUI Interface Builder to create an interface for your ExtendScript script. Boethos and the pertinent links are available at my website, crgreen.com.
Main difference in the new interface:

You must now start working on the CrossUI RAD page by clicking on either "Blank Project" or "Classic Layout", and hit "OK", (you may need to change the name) then, before going to the "proto-interface" stage (my term - in CrossUI it's what happens when you hit the "debug application" button), you MUST save your work with the little black triangle save button.

Some notes from the Boethos info page:

1: Do not use "Simple" widgets; use "Advanced" widgets (this applies to Label, Button & Checkbox).

2: Do not use the Radio Group; use Checkbox and enter "radio" in its "theme" property to render those buttons as radio buttons in ExtendScript.

3: In the CS JavaScript API (ExtendScript), a "panel" control can be titled or untitled. In crossui, use "Group" for a titled panel, use "Block" for an untitled panel.

4: Note that there is a UI control known as a "Group" in ExtendScript, which is essentially the same as an untitled Panel (or a Block in crossui), but Boethos does not support it. The crossui "Panel" and the ExtendScript "Panel" are not the same, and should not be confused with each other

5: (the difference between ExtendScript and crossui Groups and Panels is confusing, so get used to using Groups and Blocks in crossui to render titled and untitled panels, respectively, in ExtendScript).

6: The (horizontal) Slider will be rendered as a slider; the Vertical Slider will be rendered as a scrollbar.

7: In crossui, a List (not "Multimode") will be rendered as a listbox. If you enter "treeview" in its theme property, it will be rendered as a treeview control. A "Combo Input" -- sub-category "Drop List Input" -- will be rendered as a dropdownlist in ExtendScript.

8: On the ExtendScript side, listbox and dropdownlist controls are given generic three-item arrays. A treeview is given several lines of code to add generic hierarchical node-and-item contents to it. So, for these three widget classes, don't bother editing their "items" property.

9: Images are not given valid file paths, and are commented out, so you'll have to uncomment them and add a valid [.png] file path.

10: Parenting is allowed, but only with Groups and Blocks (as parents), and only one level deep (no children of children).