Add actions to set up the 2018 and 2021 launch times

This commit is contained in:
Malin E
2021-09-27 15:12:25 +02:00
parent a7bbea3fca
commit 779eb6c82f
3 changed files with 26 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ local JWSTModel = {
Parent = transforms.JWSTRotation.Identifier,
TimeFrame = {
Type = "TimeFrameInterval",
Start = "2018 OCT 01 14:05:52",
Start = "2018 OCT 01 14:06:03",
End = "2021 OCT 01"
},
Renderable = {

View File

@@ -10,7 +10,7 @@ local JWSTTrail = {
Parent = transforms.L2.Identifier,
TimeFrame = {
Type = "TimeFrameInterval",
Start = "2018 OCT 01 13:18:00",
Start = "2018 OCT 01 14:06:03",
End = "2021 OCT 01"
},
Renderable = {

View File

@@ -39,6 +39,22 @@
"is_local": false,
"name": "Toggle JWST field of view and view band",
"script": "local list = openspace.getProperty('{mission_jwst_fov}.*.Enabled'); for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end"
},
{
"documentation": "Set the time to the 2018 launch time of JWST",
"gui_path": "/JWST",
"identifier": "profile.set.2018_launch",
"is_local": false,
"name": "Set to 2018 launch time",
"script": "openspace.time.setTime('2018-10-01T14:06:03')"
},
{
"documentation": "Set the time to the 2021 launch time of JWST",
"gui_path": "/JWST",
"identifier": "profile.set.2021_launch",
"is_local": false,
"name": "Set to 2021 launch time",
"script": "openspace.time.setTime('2021-12-18T14:06:03')"
}
],
"assets": [
@@ -112,6 +128,14 @@
{
"action": "profile.toggle.jwst_fov",
"key": "V"
},
{
"action": "profile.set.2018_launch",
"key": "J"
},
{
"action": "profile.set.2021_launch",
"key": "K"
}
],
"mark_nodes": [