Skip to content
MikhailTymchukDX edited this page Dec 1, 2016 · 3 revisions

ScriptAction (inherits Action)

The ScriptAction is used to execute arbitrary JavaScript.

Client properties

Name Description
script JavaScript code to execute.

Client methods

Name Description
constructor(target, duration, fps, script)
doAction() Executes the script.

Client properties

script

JavaScript code to execute.

Getter name: get_script()
Setter name: set_script(value)

Client methods

constructor(target, duration, fps, script)

Params:

  • target

    • Type: Object
    • Description: Target of the animation.
  • duration

    • Type: Number
    • Description: Length of the animation in seconds. The default is 1.
  • fps

    • Type: Number
    • Description: Number of steps per second. The default is 25.
  • script

    • Type: String
    • Description: JavaScript to execute.

doAction()

Executes the script.

Clone this wiki locally