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