OrbitPath#

OrbitPath

The path of an orbit. Created using POST /drawing/add-orbit.

A OrbitPath object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

GET /drawing/orbit-path/(id)/orbit#

The orbit.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (SpaceCenter.Orbit)

PUT /drawing/orbit-path/(id)/orbit#

The orbit.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (SpaceCenter.Orbit) – The new value.

GET /drawing/orbit-path/(id)/whole-orbit#

Whether the whole orbit is drawn, up to where it leaves the sphere of influence of its body. When false, the orbit is drawn from GET /drawing/orbit-path/(id)/start-true-anomaly to GET /drawing/orbit-path/(id)/end-true-anomaly.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (bool)

PUT /drawing/orbit-path/(id)/whole-orbit#

Whether the whole orbit is drawn, up to where it leaves the sphere of influence of its body. When false, the orbit is drawn from GET /drawing/orbit-path/(id)/start-true-anomaly to GET /drawing/orbit-path/(id)/end-true-anomaly.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/orbit-path/(id)/start-true-anomaly#

The true anomaly at which the path starts, in radians.

Note

Setting this sets GET /drawing/orbit-path/(id)/whole-orbit to false.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (double)

PUT /drawing/orbit-path/(id)/start-true-anomaly#

The true anomaly at which the path starts, in radians.

Note

Setting this sets GET /drawing/orbit-path/(id)/whole-orbit to false.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (double) – The new value.

GET /drawing/orbit-path/(id)/end-true-anomaly#

The true anomaly at which the path ends, in radians.

Note

Setting this sets GET /drawing/orbit-path/(id)/whole-orbit to false.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (double)

PUT /drawing/orbit-path/(id)/end-true-anomaly#

The true anomaly at which the path ends, in radians.

Note

Setting this sets GET /drawing/orbit-path/(id)/whole-orbit to false.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (double) – The new value.

GET /drawing/orbit-path/(id)/visible#

Whether the object is visible.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (bool)

PUT /drawing/orbit-path/(id)/visible#

Whether the object is visible.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/orbit-path/(id)/color#

The color of the path.

Note

For a path drawn with more than one color, this is the color at its start.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (StdLib.ColorRGB)

PUT /drawing/orbit-path/(id)/color#

The color of the path.

Note

For a path drawn with more than one color, this is the color at its start.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (StdLib.ColorRGB) – The new value.

GET /drawing/orbit-path/(id)/colors#

The colors of the path, blended evenly from its start to its end.

Note

Throws an exception if the list is empty or holds more than 8 colors.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (list<StdLib.ColorRGB>)

PUT /drawing/orbit-path/(id)/colors#

The colors of the path, blended evenly from its start to its end.

Note

Throws an exception if the list is empty or holds more than 8 colors.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (list<StdLib.ColorRGB>) – The new value.

GET /drawing/orbit-path/(id)/thickness#

The thickness of the path.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (float)

PUT /drawing/orbit-path/(id)/thickness#

The thickness of the path.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (float) – The new value.

GET /drawing/orbit-path/(id)/start-arrow#

Whether an arrow head is drawn at the start.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (bool)

PUT /drawing/orbit-path/(id)/start-arrow#

Whether an arrow head is drawn at the start.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/orbit-path/(id)/end-arrow#

Whether an arrow head is drawn at the end.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (bool)

PUT /drawing/orbit-path/(id)/end-arrow#

Whether an arrow head is drawn at the end.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/orbit-path/(id)/arrow-size#

The size of the arrow heads, relative to the thickness.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (float)

PUT /drawing/orbit-path/(id)/arrow-size#

The size of the arrow heads, relative to the thickness.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (float) – The new value.

GET /drawing/orbit-path/(id)/dashed#

Whether the path is drawn as a dashed line.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (bool)

PUT /drawing/orbit-path/(id)/dashed#

Whether the path is drawn as a dashed line.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/orbit-path/(id)/label#

Text drawn halfway along the path, facing the camera. Empty for no label.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (string)

PUT /drawing/orbit-path/(id)/label#

Text drawn halfway along the path, facing the camera. Empty for no label.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (string) – The new value.

GET /drawing/orbit-path/(id)/material#

Material used to render the object. Creates the material from a shader with the given name.

Parameters:
  • id – The identifier of the OrbitPath object.

Response JSON Object:
  • value (string)

PUT /drawing/orbit-path/(id)/material#

Material used to render the object. Creates the material from a shader with the given name.

Parameters:
  • id – The identifier of the OrbitPath object.

Request JSON Object:
  • value (string) – The new value.

POST /drawing/orbit-path/(id)/remove#

Remove the object.

Parameters:
  • id – The identifier of the OrbitPath object.