Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

ScriptAction

MikhailTymchukDX edited this page Apr 12, 2017 · 2 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