Script animation allow user to run a script upon clicking object. The language of script used is Javascript. User is allowed to do various complicated action by using script, such as calculation.
Screenshot above is an example to add script animation. This example is a simple calculation that can be done by script animation. It calculate the sum of value of tag1 and tag2, and display in a popup window.
alert("Result: " + (getTag('tag1') + getTag('tag2')));
Another more practical example is to toggle a tag value, which also can be done in just one line of script. User can then further animate its status by using Color animation.
setTag( 'tag_bool', !getTag('tag_bool'));