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

splitview
splitview { view  type  position   } 

Split the view for the specified  horizontal or vertical at the specified position.

CELX equivalent:

Based on the observer:splitview method.


 * Get observer instance of the active view instance (within a Multi view) and split it.

obs = celestia:getobserver obs:splitview(, )

-- OR --


 * Get observer instances of all views and split the view with identifier .

observers = celestia:getobservers observers[]:splitview(, )

Example: Split the actual (single) view in the middle vertically.

CEL:

splitview { view 1 type "V" position 0.5}

CELX:

obs = celestia:getobserver obs:splitview("V", 0.5)

Back to CEL command index