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

set
set { name  value  } 

-- Or --

set { name  value  } 

Set one of the items listed below to the value specified in the value argument.

-- OR --

CELX equivalents:

Based on five different celestia methods.


 * Set the minimum size of an orbit to be rendered. The given  is the minimum size of an orbit in pixels.

celestia:setminorbitsize(  )


 * Set the level of ambient light. The given  is the new level of ambient light and must be between 0 and 1.

celestia:setambient(  )


 * Set the FOV (Field Of View) for this observer. Convert  from degrees in radians by multiplying  with math.pi (= 3.14159265) and divide by 180 and store in "fov_radians". The Lua math.rad(  ) function can also be used for this. Then get observer instance of the active view and set the FOV.

fov_radians = math.rad(  ) obs = celestia:getobserver obs:setfov(fov_radians)


 * Set the maximum distance of stars to be rendered. The given  is the maximum distance.

celestia:setstardistancelimit(  )


 * Set the rendering style for stars. The given  must be one of "fuzzy", "point", "disc".

celestia:setstarstyle(  )

Example:

CEL:

set { name "MinOrbitSize" value 3 } set { name "AmbientLightLevel" value 0.15 }          setambientlight { brightness 0.15 } set { name "FOV" value 35.5 } set { name "StarDistanceLimit" value 2000000 } set { name "StarStyle" value "points" }

CELX with 5 different celestia methods:

celestia:setminorbitsize(3) celestia:setambient(0.15) celestia:getobserver:setfov(math.rad(35.5)) celestia:setstardistancelimit(2000000) celestia:setstarstyle("points")

Back to CEL command index