This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
scripting [2019/12/11 09:02] erik [See also] |
scripting [2019/12/11 09:56] (current) erik [Running a script] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Warning ==== | ||
+ | |||
+ | Scripts are unrestricted programs that can do anything. Do not run a script sent to you unless you trust the developer who wrote it. | ||
+ | |||
==== Overview ==== | ==== Overview ==== | ||
Scripting allows you to write short Java programs to automate tasks. They can be used for building models, for importing/ | Scripting allows you to write short Java programs to automate tasks. They can be used for building models, for importing/ | ||
- | |||
- | **Warning: | ||
Scripts can be imported to a project, or be run separately. Scripts that are imported in a project can be configured to launch automatically during different stages of a simulation by creating [[#Script Actions]]. | Scripts can be imported to a project, or be run separately. Scripts that are imported in a project can be configured to launch automatically during different stages of a simulation by creating [[#Script Actions]]. | ||
Line 22: | Line 24: | ||
==== Running a script ==== | ==== Running a script ==== | ||
- | To run a script which has not been imported into a project: | + | To run a script which has //not// been imported into a project: |
- | 1. Open the **Script** menu in the [[menubar]]. | + | 1. Open the **Script** menu in the [[menu bar]]. |
2. From the menu, select **Run script...**. | 2. From the menu, select **Run script...**. |