Search notes:

Stellarium API: setCurrentLandscapeName

//  vim: ft=javascript
//
//  ..\runScript.bat setCurrentLandscapeName.ssc


StelMovementMgr.zoomTo(60, 0.1);

var landscapeNames = LandscapeMgr.getAllLandscapeNames();

var i = 1;

for (var i in landscapeNames) {

  LabelMgr.deleteAllLabels();
  LabelMgr.labelScreen(landscapeNames[i], 20, 20, true, 18, '#ffc08b');

  LandscapeMgr.setCurrentLandscapeName(landscapeNames[i]);

  core.setDate('2014-01-04T12:00:00', 'local', true); revolve();
  core.setDate('2014-01-04T00:00:00', 'local', true); revolve();

  core.pauseScript();

}

LabelMgr.deleteAllLabels();


function revolve() {

  for (var azimuth=0; azimuth <= 359; azimuth+=6) {
    core.moveToAltAzi(12, azimuth, 0);
    core.wait(0.1);
  }

  
}
Github repository about-Stellarium, path: /API/LandscapeMgr/setCurrentLandscapeName.ssc

See also

Stellarium Script API

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Wissensc...', 1758201385, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/API/LandscapeMgr/setCurrentLandscapeName(75): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78