forked from Stellarium/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsky_cultures.ssc
40 lines (36 loc) · 1006 Bytes
/
sky_cultures.ssc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Name: Sky Culture Tour
// License: Public Domain
// Author: Matthew Gates
// Shortcut: Ctrl+U,2
// Description: Look at each installed sky culture.
//
alt = 0;
LabelMgr.deleteAllLabels();
core.setDate("2006:03:14T21:21:32");
core.clear("deepspace");
core.moveToRaDec("17h 53m 0s", "66d 25m 0s");
StelMovementMgr.zoomTo(210, 5);
ConstellationMgr.setFlagBoundaries(true);
ConstellationMgr.setFlagLabels(true);
ConstellationMgr.setFlagLines(true);
ConstellationMgr.setFlagArt(true);
LandscapeMgr.setFlagAtmosphere(false);
core.setTimeRate(1);
core.moveToAltAzi(alt, 0, 90);
StelMovementMgr.zoomTo(180, 3);
core.wait(3);
allIDs = core.getAllSkyCultureIDs();
for(i=0; i<allIDs.length; i++)
{
id = allIDs[i];
core.debug("setting sky culture: " + id);
core.setSkyCulture(id);
core.wait(2);
name = core.getSkyCultureName();
lab = LabelMgr.labelScreen(name, 100, 100, false, 25, "#ff2200");
LabelMgr.setLabelShow(lab, true);
core.wait(2);
LabelMgr.deleteLabel(lab);
}
LabelMgr.deleteAllLabels();