Celestia/Celx Scripting/CELX Lua Methods/CEL command select
select
editselect { object <string> }
Selects the specified object <string> in order to perform other commands on it.
Arguments:
- object <string>
- The name of a planet, moon, asteroid, comet, galaxy, spacecraft, etc.. No default.
If you are currently positioned outside of our Solar System, and want to select an object inside of our Solar System,
you must include "Sol/" (our sun's name) in the <string>.
CELX equivalent:
Based on the celestia:select() method;
- Find an object with name <string> which must be selected and store in "objectname".
objectname = celestia:find( <string> )
- Use celestia:select() method to select "objectname".
celestia:select(objectname)
Summarized:
objectname = celestia:find( <string> ) celestia:select(objectname)
Example-1:
Select the star Aldebaran.
CEL:
select { object "Aldebaran" }
CELX with the celestia:select() method:
aldebaran = celestia:find("Aldebaran") celestia:select(aldebaran)
Example-2:
Select planet Mars when in our Solar System:
CEL:
select { object "Mars" }
CELX with the celestia:select() method:
mars = celestia:find("Mars") celestia:select(mars)
Example-3:
Select planet Mars when in or outside our Solar System:
CEL:
select { object "Sol/Mars" }
CELX with the celestia:select() method:
mars = celestia:find("Sol/Mars") celestia:select(mars)