Search notes:

Stellarium API: core.wait

Wait (or stops the presentation) for the given duration (data type: double) in seconds.
core.wait(duration);
//  vim: ft=javascript
//
//  ..\runScript.bat wait.ssc
//  

              txt("5");
core.wait(1); txt("4");
core.wait(1); txt("3");
core.wait(1); txt("2");
core.wait(1); txt("1");
core.wait(1); txt("");


function txt(str) {

  LabelMgr.deleteAllLabels();
  LabelMgr.labelScreen(str, 20, 20, true, 50, '#ff3311');
  
}
Github repository about-Stellarium, path: /API/core/wait.ssc

See also

core.setTimeRate(…), core.waitFor(…), → Wissenschaft/Astronomie/tools/Stellarium/script/API/core/pauseScript[core.pauseScript()
Stellarium Script API

Index