User Tools

Site Tools


scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scripting [2019/12/11 09:01]
erik created
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/exporting data or to run simulations.  Scripting allows you to write short Java programs to automate tasks. They can be used for building models, for importing/exporting data or to run simulations. 
- 
-**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. 
  
 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...**.
Line 41: Line 43:
  
 Scripts can be configured to automatically execute during a simulation. The most common use is to perform post processing of results, or to export results, once a simulation has completed. They can also be used to inject parameter data or to provide visual feedback during a simulation. Scripts can be configured to automatically execute during a simulation. The most common use is to perform post processing of results, or to export results, once a simulation has completed. They can also be used to inject parameter data or to provide visual feedback during a simulation.
 +
 +==== See also ====
 +
 +  - [[Creating scripts]]
 +  - [[Example scripts|Examples]]
scripting.1576051316.txt.gz ยท Last modified: 2019/12/11 09:01 by erik