View Single Post
  #29  
Old 10-03-2012, 10:10 AM
hickny's Avatar
hickny (Peter)
Registered User

hickny is offline
 
Join Date: Jul 2005
Location: Sydney, Australia
Posts: 276
Thank you daggerstab.

I knew that somebody would know how to do it.

I'll post an updated script shortly. I have a few ideas for improvement.

Cheers


Quote:
Originally Posted by daggerstab View Post
core.setObserverLocation() can also accept a single string argument for a location in Stellarium's default list (the one in the Location window). So for example, you can use this:

Code:
// Save the current location, if it's from the default list
location = core.getObserverLocation();
 
// Set the location to Sydney
core.setObserverLocation("Sydney, Australia");
And when you finish:

Code:
core.setObserverLocation(location); //Restore the original location
Reply With Quote