https://github.com/geospace-code/stellarium-scripts
Examples of .ssc scripts for Stellarium
https://github.com/geospace-code/stellarium-scripts
stellarium
Last synced: 11 months ago
JSON representation
Examples of .ssc scripts for Stellarium
- Host: GitHub
- URL: https://github.com/geospace-code/stellarium-scripts
- Owner: geospace-code
- License: mit
- Created: 2019-08-14T17:34:03.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-08-22T14:28:15.000Z (over 2 years ago)
- Last Synced: 2025-01-11T16:38:43.693Z (about 1 year ago)
- Topics: stellarium
- Homepage: https://stellarium.org/
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stellarium .ssc example scripts
Stellarium can be used repeatably via ECMAScript
[.ssc scripts](https://stellarium.org/doc/head/scripting.html).
Stellarium has been steadily enhancing scripting capabilities and general capabilities, so there's often a benefit to running a newer version of Stellarium.
## Usage
From Stellarium, press F12 to open script load / run dialog.
## Parameters
Here are a few relevant parameters.
FOV = field of view.
```javascript
LabelMgr.deleteAllLabels() // clear off any labels that clutter view
core.setDate("2000-01-23T04:45:15","utc",true) // use UTC time
core.setTimeRate(0) // do not advance time, pause at the specified time
StelMovementMgr.zoomTo(FOV_degrees, 0) //0 disables zoom animation
core.setObserverLocation(lon, lat, alt_meters, 0, "myName") // 0 disables move animation
core.moveToRaDecJ2000(RA,DEC,0) // move to right ascension, declination : 0=without animation
core.setDiskViewport(false) // use full window, not a simultated circular lens
```
Turn on azimuthal and equatorial grids:
```javascript
GridLinesMgr.setFlagAzimuthalGrid(true)
GridLinesMgr.setFlagEquatorGrid(true)
```
Turn on constellation lines and labels
```javascript
ConstellationMgr.setFlagLines(true)
ConstellationMgr.setFlagLabels(true)
```
Turn on compass cardinal points (NESW) and turn off landscape
```javascript
LandscapeMgr.setFlagCardinalsPoints(true)
LandscapeMgr.setFlagLandscape(false)
```