Search notes:

Stellarium API: StelMovementMgr.zoomTo

StelMovementMgr.zoomTo changes the field of view.
StelMovementMgr.zoomTo(
  100, // Angle of field of view
    0  // Duration for zoom to take place
);
//  vim: ft=javascript
//
//  ..\runScript.bat zoomTo.ssc
//  

// Go to Irchelturm
core.setObserverLocation(
   8 + 36/60 + 25.85/60/60, // core.dmsToRad( 8, 36, 25.85 ), // longitude
  47 + 32/60 + 21.48/60/60, // core.dmsToRad(47, 32, 21.48 ), // latitude
   0                                                          // Altitude
);


core.setDeltaTAlgorithm("WithoutCorrection");

core.setDate(
  '2014-01-04T05:15:00',
  'local'              , // or 'utc'
   true                  // enable Delta T correction
);

core.selectObjectByName("Saturn");
StelMovementMgr.setFlagTracking(true);

var l1 = LabelMgr.labelScreen("Zooming in", 200, 10, true, 9, '#ffc08b');
StelMovementMgr.zoomTo(0.05, 2.0);  // 2nd Parameter: duration
var l2 = LabelMgr.labelScreen("finished", 200, 22, true, 9, '#ffc08b');

core.wait(3);
 
var l3 = LabelMgr.labelScreen("Zooming out", 200, 34, true, 9, '#ffc08b');
StelMovementMgr.zoomTo(5.00, 2);
var l4 = LabelMgr.labelScreen("finished", 200, 48, true, 9, '#ffc08b');
Github repository about-Stellarium, path: /API/StelMovementMgr/zoomTo.ssc

See also

The maximum fov (field of view) can be set with StelMovementMgr.setMaxFov(…)
The keyboard shortcuts to change the zoom (Field of view, FOV) seems to be ctrl-alt-0ctrl-alt-9.
Stellarium Script API

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Wissensc...', 1758201384, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/API/StelMovementMgr/zoomTo(85): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78