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:
The resulting connection is drawn between the part and an icon on the free-form surface representing the script.