Creating custom tool/attribute scripts

Command

Path

Custom Tool/Attribute

Tools

Custom tool/attribute scripts record the current attribute and file settings of a selected object in a script format for later use. If a tool is active, the recorded attributes and settings can be combined with the tool to allow a specific set of attributes, such as fill style or pen color, to be reactivated for use with the tool. For example, a dashed line type and red pen foreground color can be saved with the Line tool in a script for drawing red dashed lines. No scripting knowledge is necessary.

This command picks up the attributes of a single selected object. If no objects are selected when the command is run, the document defaults are used for the script.

To create a custom tool/attribute script:

1.      Select the command.

The Custom Tools dialog box opens.

2.Select which attributes should be saved in the script.

The saved attributes are used when the script is executed and can be modified or reset.

3.When prompted, name the script palette (if none exists) or select an existing script palette, and name the attribute settings script.

The script displays in a script palette, and can be run as described in Running scripts.

~~~~~~~~~~~~~~~~~~~~~~~~~

Using scripts

Running scripts

 

Was this page helpful?