object lists?

All about writing scripts for Celestia in Lua and the .cel system
Topic author
astrodoc

object lists?

Post #1by astrodoc » 29.09.2004, 07:58

What does the following command do?
select { object "Sol/Earth/Moon" }

How does it differ from
select { object "Moon" }
?

Thanks in advance

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #2by selden » 29.09.2004, 11:41

The long form of the name (formally called its "path") is to make sure that the correct "Moon" is selected -- the one that orbits around the Earth.

The person who wrote it wanted to make sure that the script didn't select some other object. You might have installed an Addon which put several bodies named "Moon" in orbit around several different planets, for example.
Selden

Topic author
astrodoc

Post #3by astrodoc » 29.09.2004, 19:52

Thanks!

That makes lots of sense. I just couldn't find a clue in the docss.


Return to “Scripting”