Use the Script Editor to create Qt scripts for Animate Pro.
To create a script:
|1.||Open the Script Editor window by going to the top menu and selecting Windows > Script Editor.|
The Script Editor view opens.
The New Script dialog box appears.
|3.||Enter a name in the Enter name of new script field, along with the file extension *.js and click on OK.|
The name of your script appears in the File column of the Script Editor view.
|4.||Click in the right side of the Script Editor and start writing your script. Try the following script:|
|5.||To test your script, select the function your would like to run from the File column, then, from the Script Editor toolbar, click on the Run button, or from the View menu select Play/Debug > Run.|
|‣||You may receive the message:
|‣||You may also see this message on the right side of the Script Editor:|
This is because the software jumped to the <<Sandbox>> item in the Function column. The <<Sandbox>> is provided to test scripts without saving them. Simply click on your newly created script and then try running it again.
A new 3Dpath column (or 3 separate x, y and z path columns and a velocity column) will appear in your Xsheet view with the name ColumnName.
To delete a script:
|1.||In the Script Editor, in the File column, select the script that you would like to delete.|
|2.||From the Script Editor toolbar, click on the Delete Script button
To troubleshoot errors in your script:
|•||Debug: Select the function first, then from the Script Editor toolbar, click on the Debug button
The Qt Script Debugger opens.
|•||Syntax Check: Click on the Syntax Check button.|
A window will pop-up with syntax information.