openspace.scriptScheduler
Functions overview
Name |
Documentation |
---|---|
Clears all scheduled scripts |
|
Load timed scripts from a Lua script file that returns a list of scheduled scripts |
|
Load a single scheduled script |
|
Returns the list of all scheduled scripts |
|
Sets the time reference for scheduled scripts to application time (seconds since OpenSpace application started) |
|
Sets the time reference for scheduled scripts to the time since the recording was started (the same relative time applies to playback) |
|
Sets the time reference for scheduled scripts to the simulated date & time (J2000 epoch seconds) |
Functions
clear
Clears all scheduled scripts.
group
Integer?
Return type: void
openspace.scriptScheduler.clear(group)
loadFile
Load timed scripts from a Lua script file that returns a list of scheduled scripts.
fileName
String
Return type: void
openspace.scriptScheduler.loadFile(fileName)
loadScheduledScript
Load a single scheduled script. The first argument is the time at which the scheduled script is triggered, the second argument is the script that is executed in the forward direction, the optional third argument is the script executed in the backwards direction, and the optional last argument is the universal script, executed in either direction.
time
String
forwardScript
String
backwardScript
String?
universalScript
String?
group
Integer?
Return type: void
openspace.scriptScheduler.loadScheduledScript(time, forwardScript, backwardScript, universalScript, group)
scheduledScripts
Returns the list of all scheduled scripts
Return type: Table[]
openspace.scriptScheduler.scheduledScripts()
setModeApplicationTime
Sets the time reference for scheduled scripts to application time (seconds since OpenSpace application started).
Return type: void
openspace.scriptScheduler.setModeApplicationTime()
setModeRecordedTime
Sets the time reference for scheduled scripts to the time since the recording was started (the same relative time applies to playback).
Return type: void
openspace.scriptScheduler.setModeRecordedTime()
setModeSimulationTime
Sets the time reference for scheduled scripts to the simulated date & time (J2000 epoch seconds).
Return type: void
openspace.scriptScheduler.setModeSimulationTime()