Here is how to create a script that executes in a loop, i.e. it starts again after it finishes. It may be useful, for example, if Stellarium is used for an unattended multimedia kiosk at a museum or similar setting.
Suppose your script is called "myscript.sts". As the last action, add a command that reloads it, like this:
# myscript.sts - This is my script
. # Various commands
script filename "myscript.sts" action play
This requires Stellarium 0.7.0 or later. Press CTRL-C to stop the script.
You seem to have CSS turned off.
Please don't fill out this field.
If you come up with good scripts, it could be interesting if I put them on the Stellarium website. Some people might need an example to get started with scripting. Thanks, and keep experimenting!
Hi (Ciao Paolo)
<script filename "myscript.sts" action play> function
<image filename "myimage.png" action load > function
work on my system (Win XP)...
Any idea ?
All the files were in there. I solved the problem : I had to add a blank line ([enter]) after the <script filename "myscript.sts" action play> function...
That's strange, but now it works !
And that a real pleasure to play with script in Stellarium...
I don't use Windows, so I can only suggest checking that the files are in the correct directories mentioned in this posting by Rob Spearman: