File: planets_tour.ssc

package info (click to toggle)
stellarium 25.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,307,224 kB
  • sloc: ansic: 317,377; cpp: 214,435; xml: 48,592; javascript: 26,073; python: 2,113; perl: 734; sh: 247; makefile: 192; pascal: 169
file content (40 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (2)
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
40
//
// Name: Planet Objects Tour
// License: Public Domain
// Author: C. Gaudion, Alchymylab
// Version: 1.1
// Description: A tour of the Solar System planets

// load data array in inc file

include("common_objects.inc");


LandscapeMgr.setFlagCardinalPoints(false);
LandscapeMgr.setFlagLandscape(false);
LandscapeMgr.setFlagAtmosphere(false);

core.wait(2);

defaultWait = 10;

LabelMgr.labelScreen("The Solar System - A Tour of the Planets",200,200,true,30,"#ff0000");
core.wait(5);
LabelMgr.deleteAllLabels();

for (i=0; i<planets.length; i++)
{
	objName = planets[i];
	core.selectObjectByName(objName, true);
	
	StelMovementMgr.autoZoomIn(6);
	core.wait(defaultWait);
	
	StelMovementMgr.zoomTo(40,8);
	core.wait(defaultWait);

}

LabelMgr.labelScreen("The Solar System - A Tour of the Planets",200,200,true,30,"#ff0000");
core.wait(defaultWait);
LabelMgr.deleteAllLabels();