Skip to content

Repository files navigation

Stellarium .ssc example scripts

Stellarium can be used repeatably via ECMAScript .ssc scripts. 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.

LabelMgr.deleteAllLabels()// clear off any labels that clutter viewcore.setDate("2000-01-23T04:45:15","utc",true)// use UTC timecore.setTimeRate(0)// do not advance time, pause at the specified timeStelMovementMgr.zoomTo(FOV_degrees,0)//0 disables zoom animationcore.setObserverLocation(lon,lat,alt_meters,0,"myName")// 0 disables move animationcore.moveToRaDecJ2000(RA,DEC,0)// move to right ascension, declination : 0=without animationcore.setDiskViewport(false)// use full window, not a simultated circular lens

Turn on azimuthal and equatorial grids:

GridLinesMgr.setFlagAzimuthalGrid(true)GridLinesMgr.setFlagEquatorGrid(true)

Turn on constellation lines and labels

ConstellationMgr.setFlagLines(true)ConstellationMgr.setFlagLabels(true)

Turn on compass cardinal points (NESW) and turn off landscape

LandscapeMgr.setFlagCardinalsPoints(true)LandscapeMgr.setFlagLandscape(false)

About

Examples of .ssc scripts for Stellarium

Topics

Resources

Code of conduct

Contributing

Stars

4 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors