Attribute-from-script connections
Attribute-from-script connections run a script whenever a particular attribute value is needed. A Smalltalk script is created so that it performs the needed calculation and returns its result. The result is then used to set the value of a part's attribute. You can create Smalltalk scripts using the Script Editor, then connect to them from within the Composition Editor. The default color of this connection type is blue. As with other connection types, an attribute-from-script connection is initiated from the source part's Connect choice in the pop-up menu and is terminated as follows:
1. Once the source attribute is selected, the mouse pointer changes to Connection mouse pointer
2. Click mouse button 1 on any open area of the free-form surface and select Attribute from script from the pop-up menu.
3. The resulting window allows you to pick from the list of existing Smalltalk scripts.
4. Once you've selected a script, select OK to complete the connection.
The resulting connection is drawn between the part and an icon on the free-form surface representing the script.
Last modified date: 06/18/2018