Search notes:

Stellarium API: GridLinesMgr.setFlagAzimuthalGrid

GridLinesMgr.setFlagAzimuthalGrid(flag) shows or hides the grid of the horizontal coordinate system (aka topocentric coordinate system).
//  vim: ft=javascript
//
//  ..\runScript.bat setFlagAzimuthalGrid.ssc
//  


// Go to Irchelturm
core.setObserverLocation(
   0                           , // longitude (E-W)
   66.0 + 33.0/60 + 55.0/60/60 , // latitude  (N-S) / Polar circle
   0                             // Altitude
);


core.setDeltaTAlgorithm("WithoutCorrection");

core.setDate(
  '2015-03-20T23:45:00', // Equinox
  'local'              , // or 'utc'
   true                  // enable Delta T correction
);

var currentAzGrid = GridLinesMgr.getFlagAzimuthalGrid();

StelMovementMgr.zoomTo(40, 0);
core.wait(0.1);
core.moveToRaDec("40d", "80d");
GridLinesMgr.setFlagAzimuthalGrid(true);

//  In order to find short cut key to resume paused
//  script, find "actionResume_Script" in $APPDATA\Stellarium\data\shortcuts.json
//  Default: Ctrl-D, R  to resume
core.pauseScript();

GridLinesMgr.setFlagAzimuthalGrid(currentAzGrid);
Github repository about-Stellarium, path: /API/GridLinesMgr/setFlagAzimuthalGrid.ssc

See also

core.moveToAltAzi(…) looks at a pair of coordinates that are specified in the horizontal coordinate system.
The keyboard shortcut to toogle the display of the horizontal coordinate system grid is z (which seems to stand for azimutal).
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...', 1758201388, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/API/GridLinesMgr/setFlagAzimuthalGrid(81): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78