Celestia/Celx Scripting/CELX Lua Methods/CEL command unmark

unmark
unmark { object  } 

If an object was previously marked, this command unmarks it.

CELX equivalent-1:

Based on the celestia:unmark method.


 * Find the object with name  to be unmarked and store in "objectname".

objectname = celestia:find(  )


 * Remove marker on "objectname" using Celestia method.

celestia:unmark(objectname)

Summarized:

objectname = celestia:find(  ) celestia:unmark(objectname)

CELX equivalent-2:

Based on the object:unmark method.


 * Find the object with name  to be unmarked and store in "objectname".

objectname = celestia:find(  )
 * Remove marker on "objectname" using object method.

objectname:unmark

Summarized:

objectname = celestia:find(  ) objectname:unmark

Example: This example unmarks Earth.

CEL:

unmark { object "Sol/Earth" }

CELX with the celestia:unmark method:

earth = celestia:find("Sol/Earth") celestia:unmark(earth)

CELX with the object:unmark method:

earth = celestia:find("Sol/Earth") earth:unmark

Back to CEL command index