demo scripting
-
Topic authorbillybob884
- Posts: 986
- Joined: 16.08.2002
- With us: 22 years 3 months
- Location: USA, East Coast
-
Topic authorbillybob884
- Posts: 986
- Joined: 16.08.2002
- With us: 22 years 3 months
- Location: USA, East Coast
I even tried a simple little thing like:
doesn't work. I've got celestia pre 6, 768mb ram, geforce2, win me.
Code: Select all
{
print { text "Beginning tour... Press the ESC key to cancel." }
}
doesn't work. I've got celestia pre 6, 768mb ram, geforce2, win me.
Howdy Mike,
You may want to take a look at Chris' demo.cel that comes with Celestia for some example code.
Here is how he begins his demo:
In Celestia's .CEL scripting, certain commands require one or more parameters to be used. With the print command, you need to tell it where to display the text and for how long. This is done via the origin and duration parameters.
Then, if you want the user to see the text, you need to code a wait command after the print command that has a duration equal to or greater than the duration specified in the print command -- just like Chris' lines above shows.
Hope this helps!
You may want to take a look at Chris' demo.cel that comes with Celestia for some example code.
Here is how he begins his demo:
Code: Select all
print { text "Beginning demo . . .\nPress ESC to end." origin "center" duration 2 }
wait { duration 2.0 }
In Celestia's .CEL scripting, certain commands require one or more parameters to be used. With the print command, you need to tell it where to display the text and for how long. This is done via the origin and duration parameters.
Then, if you want the user to see the text, you need to code a wait command after the print command that has a duration equal to or greater than the duration specified in the print command -- just like Chris' lines above shows.
Hope this helps!
-Don G.
My Celestia Scripting Resources page
Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.
My Celestia Scripting Resources page
Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.
-
Topic authorbillybob884
- Posts: 986
- Joined: 16.08.2002
- With us: 22 years 3 months
- Location: USA, East Coast
Mike,
If you post your script, or at least several commands before and after your print command, maybe we can help.
If you post your script, or at least several commands before and after your print command, maybe we can help.
-Don G.
My Celestia Scripting Resources page
Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.
My Celestia Scripting Resources page
Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.
-
Topic authorbillybob884
- Posts: 986
- Joined: 16.08.2002
- With us: 22 years 3 months
- Location: USA, East Coast
Congratulations Mike! Glad to hear you got it to work.
If you're interested, I posted a "template" script over in the Celestia Scripting forum (http://ennui.shatters.net/forum/viewtopic.php?t=2961).
If you're interested, I posted a "template" script over in the Celestia Scripting forum (http://ennui.shatters.net/forum/viewtopic.php?t=2961).
-Don G.
My Celestia Scripting Resources page
Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.
My Celestia Scripting Resources page
Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.