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

< Celestia < Celx Scripting < CELX Lua Methods

unmark

unmark { object <string> }

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

Arguments:

object <string>
Defines the name of the object you want to unmark. No default.


CELX equivalent-1:

Based on the celestia:unmark() method.

objectname = celestia:find( <string> )
celestia:unmark(objectname)

Summarized:

objectname = celestia:find( <string> )
celestia:unmark(objectname)


CELX equivalent-2:

Based on the object:unmark() method.

objectname = celestia:find( <string> )
objectname:unmark()

Summarized:

objectname = celestia:find( <string> )
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

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.