トップページ
> .CELXスクリプトガイド
.CELXスクリプトガイド
参考・引用元:
Lua scripting guide for Celestia(英語)
Celx Objects and Methods(英語、rtfファイル)
Lua 5.0 リファレンスマニュアル(日本語)
.CELXスクリプトについて
.CELXスクリプトとは
基本
変数と型
if、for、while文
数学関数
.CELXスクリプトの作成方法
オブジェクトの種類
例: 天体へ移動する
例: 時刻設定
例: 表示設定
.CELXスクリプト小技集
日本語の使用
関数の使用
.CELスクリプトの使用
メソッド
celestiaオブジェクト
テキストの表示
celestia:print
celestia:flash
レンダリング
celestia:show
celestia:hide
celestia:getrenderflags
celestia:setrenderflags
celestia:showlabel
celestia:hidelabel
celestia:getlabelflags
celestia:setlabelflags
celestia:getorbitflags
celestia:setorbitflags
celestia:getambient
celestia:setambient
celestia:getfaintestvisible
celestia:setfaintestvisible
celestia:getorbitflags
celestia:setorbitflags
celestia:getstardistancelimit
celestia:setstardistancelimit
celestia:getminfeaturesize
celestia:setminfeaturesize
celestia:getstarstyle
celestia:setstarstyle
celestia:getscreendimension
天体
celestia:find
celestia:getselection
celestia:select
celestia:mark
celestia:unmark
celestia:unmarkall
celestia:getstarcount
celestia:getstar
時間
celestia:gettime
celestia:settime
celestia:gettimescale
celestia:settimescale
celestia:getscripttime
celestia:tojulianday
celestia:fromjulianday
オブジェクト生成
celestia:getobserver
celestia:getobservers
celestia:newvector
celestia:newposition(数値引数)
celestia:newposition(Base64引数)
celestia:newrotation(ベクトル引数)
celestia:newrotation(数値引数)
celestia:newframe
その他
celestia:requestkeyboard
celestia:requestsystemaccess
celestia:getscriptpath
celestia:takescreenshot
celestia:createcelscript
observerオブジェクト
視点動作
observer:goto(天体・位置指定)
observer:goto(テーブル指定)
observer:gotolonglat
observer:gotolocation
observer:gotodistance
observer:gotosurface
observer:center
observer:centerorbit
observer:travelling
observer:cancelgoto
observer:follow
observer:synchronous
observer:chase
observer:lock
observer:track
observer:setposition
observer:getposition
observer:getorientation
observer:setorientation
observer:rotat
observer:lookat
observer:gettime
observer:getspeed
observer:setspeed
observer:getsurface
observer:setsurface
observer:getlocationflags
observer:setlocationflags
observer:getfov
observer:setfov
observer:getframe
observer:setframe
画面分割
observer:splitview
observer:deleteview
observer:singleview
observer:isvalid
objectオブジェクト
object:radius
object:type
object:spectraltype
object:absmag
object:name
object:getinfo
object:mark
object:unmark
object:getposition
object:getchildren
object:preloadtexture
positionオブジェクト
position:addvector
position:vectorto
position:distanceto
position:orientationto
position:singleview
position:getx
position:gety
position:getz
vectorオブジェクト
vector:getx
vector:gety
vector:getz
vector:normalize
vector:length
rotationオブジェクト
rotation:imag
rotation:real
rotation:transform
rotation:setaxisangle
rotation:slerp
frameオブジェクト
frame:to(引数: positionオブジェクト)
frame:to(引数: rotationオブジェクト)
frame:from(引数: positionオブジェクト)
frame:from(引数: rotationオブジェクト)
frame:getcoordinatesystem
frame:getrefobject
frame:gettargetobject
celscrpitオブジェクト
celscript:tick
コールバック関数
celestia_keyboard_callback
celestia_cleanup_callback
トップページ
> .CELXスクリプトガイド