Jump to content
  • Join the online East Midlands astronomy club today!

    With active forums, two dark sites and a knowledgeable membership, East Midlands Stargazers has something for everyone.

Stellarium scripting


xanthic
 Share

Recommended Posts

Stellarium has the ablilty to run scripts, which you can write to make the software perform custom functions. Those of you at the SGL event may have seen the winter sky tour that was running on my laptop.


 


If you'd like to try it for yourself, copy these two files : -


 


https://dl.dropboxusercontent.com/u/72868350/astro/winter.ssc


https://dl.dropboxusercontent.com/u/72868350/astro/winter.inc


 


to either


 


c:\Users\<your username>\AppData\Roaming\Stellarium\scripts (for Windows Vista, Win 7, Win 8)


 


or


 


C:\Documents and Settings\<your username>\Application Data\Stellarium\scripts (if you are using XP)


 


You may need to create the scripts folder.


 


Load Stellarium and press F2 to bring up the Config menu, then click on scripts. Scroll down and click "winter" (you'll notice there are some built-in scripts too). Click on the play button on the right hand side and this will run the script. You can stop it by pressing F2 again and pressing the stop button. The script does turn off the menu and atmosphere etc, pressing CTRL+T will turn the menu feature back on.


 


The first file (winter.ssc) contains the script that run the looping tour, the second file (winter.inc) is a comma seperated list of objects for the script to use. I have annotated all the lines in the script to explain what each does. Pressing F12 brings up the scripting console where you can view and edit scripts.


 


If you are interested in writing your own scripts, the wiki page for the scripting language can be found here - http://www.stellarium.org/doc/head/scripting.html


Link to comment
Share on other sites

That was a fabulous demo Leigh - especially as we didn't have the sky on Sat night - you filled that gap in the overall event very nicely, and though I didn't spend much time in the pavilion, I was well impressed with what you did there. :)


 


(might have a play with the scripting code myself if I get time - thx for the links)


Link to comment
Share on other sites

Stellarium has the ablilty to run scripts, which you can write to make the software perform custom functions. Those of you at the SGL event may have seen the winter sky tour that was running on my laptop.

 

If you'd like to try it for yourself, copy these two files : -

 

https://dl.dropboxusercontent.com/u/72868350/astro/winter.ssc

https://dl.dropboxusercontent.com/u/72868350/astro/winter.inc

 

to either

 

c:\Users\<your username>\AppData\Roaming\Stellarium\scripts (for Windows Vista, Win 7, Win 8)

 

or

 

C:\Documents and Settings\<your username>\Application Data\Stellarium\scripts (if you are using XP)

 

You may need to create the scripts folder.

 

Load Stellarium and press F2 to bring up the Config menu, then click on scripts. Scroll down and click "winter" (you'll notice there are some built-in scripts too). Click on the play button on the right hand side and this will run the script. You can stop it by pressing F2 again and pressing the stop button. The script does turn off the menu and atmosphere etc, pressing CTRL+T will turn the menu feature back on.

 

The first file (winter.ssc) contains the script that run the looping tour, the second file (winter.inc) is a comma seperated list of objects for the script to use. I have annotated all the lines in the script to explain what each does. Pressing F12 brings up the scripting console where you can view and edit scripts.

 

If you are interested in writing your own scripts, the wiki page for the scripting language can be found here - http://www.stellarium.org/doc/head/scripting.html

Thanks for that Leigh

Will have a play.

Ade

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.