Automating your work  
Top  Previous  Next


ImageWarp contains built-in scripting environment that allows you to record and automate your image editing, processing and analysis actions.
 
1.viewscript Click the Show Script button on the View toolbar. That will open the Script Editor.  
 
2.scriptrecord Click the Record button on the top of the Script Editor to activate the recording mode.  

To record your drawing actions
 
Start editing your images by using the Selections and Drawing Tools. As you do this, your action will appear in the Script Editor in form of graphic commands. The following drawing actions will be recorded:  
 
1.drawrectselect drawroundselect drawfreeselect drawmagicwand Application of any selection tool.  
 
2.drawpicker Choosing the draw color and fill color.  
 
3.drawpencil drawbrush Drawing with the Pencil and Brush  
 
4.drawline drawrectangledrawellipsedrawtext Overlaying Lines, Rectangles, Ellipses and Text.  
 
5.drawfill drawwarp Application of the Flood and Warp tools.  
 
To record your image processing actions
 
1.From ImageWarp menu choose an image processing command.  
 
2.If this opens a functional dialog (such as Filters or Morphology), select the desired function and adjust its parameters.  
 
3.Click Apply to execute the function. The corresponding script command will be recorded to the Script Editor.  
 
4.As an alternative, click the Record button on the functional dialog. ImageWarp will record the command to the Script Editor without executing the function. This will work even if the Script Editor in not set into the recording mode.  

To modify your script
 
1.viewscript Bring the Script Editor on the screen by clicking the Show Script button on the View toolbar.  
 
2.Edit the script by deleting the existing operators or inserting new ones. For example, add "do" operator to the beginning and "loop" to the end of your script to enforce the repetition of the recorded actions. Refer to ImageWarp Language Reference for more details.  

To execute your script
 
1.scriptrun Click the Execute button on the top of the Script Editor. All your recorded actions will be automatically repeated.  
 
2.scriptsave Click the Save button on the top of the Script Editor to save your script in a file.  
 
3.To execute one of the recently open or saved scripts, from the Script menu select the desired script file.  

To debug your script
 
1.scriptbreakpoint Click the script line at which you want the execution to pause. Click the Toggle Breakpoint button on the top of the Script Editor. A red stop-sing icon will appear next to the selected line.  
 
2.scriptrun Click the Execute button. The execution will stop at the breakpoint and the yellow arrow will appear on the left.  
 
3.scriptstep To step through your script, repeatedly click the Step button. The yellow arrow will move down marking the statement to be executed next.  
 
4.scriptstepinto If the next statement is a subroutine or function call, you can step into it by clicking the Step Into button. As you step through the script, watch the values of the variables changing in the Variables panel on the right.