openspace

Functions overview

Name

Documentation

absPath

Passes the argument to FileSystem::absolutePath, which resolves occuring path tokens and returns the absolute path

addCustomProperty

Creates a new property that lives in the UserProperty group

addSceneGraphNode

Loads the SceneGraphNode described in the table and adds it to the SceneGraph

addScreenSpaceRenderable

/ Will create a ScreenSpaceRenderable from a lua Table and add it in the RenderEngine

addTag

Adds a Tag to a SceneGraphNode identified by the provided uri

addToPropertyValue

Add a value to the property with the given identifier

appendToListProperty

Add a value to the list property with the given identifier

bindKey

Binds a key to Lua command to both execute locally and broadcast to all clients if this node is hosting a parallel connection

boundingSphere

Returns the bounding sphere of the scene graph node with the given string as identifier

clearKey

Unbinds the key or keys that have been provided

clearKeys

Clear all key bindings

configuration

Returns the whole configuration object as a Dictionary

createDirectory

Creates a directory at the provided path, returns true if directory was newly created and false otherwise

createSingleColorImage

Creates a 1 pixel image with a certain color in the cache folder and returns the path to the file

directoryExists

Checks whether the provided directory exists

directoryForPath

This function extracts the directory part of the passed path

downloadFile

Downloads a file from Lua interpreter

dpiScaling

Extracts the DPI scaling for either the GUI window or if there is no dedicated GUI window, the first window

fadeIn

Fades in the node(s) with the given identifier over the given time in seconds

fadeOut

Fades out the node(s) with the given identifier over the given time in seconds

fileExists

Checks whether the provided file exists

getProperty

Returns a list of property identifiers that match the passed regular expression

getPropertyValue

Returns the value the property, identified by the provided URI

hasMission

Returns whether a mission with the provided name has been loaded

hasProperty

Returns whether a property with the given URI exists

hasSceneGraphNode

Checks whether the specifies SceneGraphNode is present in the current scene

interactionSphere

Returns the interaction sphere of the scene graph node with the given string as identifier

invertBooleanProperty

Inverts the value of a boolean property with the given identifier

isMaster

Returns whether the current OpenSpace instance is the master node of a cluster configuration

keyBindings

Returns the strings of the script that are bound to the passed key and whether they were local or remote key binds

layerServer

Returns the current layer server from the configuration

loadJson

Loads the provided JSON file and returns it back to the caller

loadMission

Load mission phases from file

makeIdentifier

Create a valid identifier from the provided input string

markInterestingNodes

This function marks the scene graph nodes identified by name as interesting, which will provide shortcut access to focus buttons and featured properties

markInterestingTimes

This function marks interesting times for the current scene, which will create shortcuts for a quick access

nodeByRenderableType

Returns a list of all scene graph nodes in the scene that have a renderable of the specific type

printDebug

Logs the passed value to the installed LogManager with a LogLevel of ‘Debug’

printError

Logs the passed value to the installed LogManager with a LogLevel of ‘Error’

printFatal

Logs the passed value to the installed LogManager with a LogLevel of ‘Fatal’

printInfo

Logs the passed value to the installed LogManager with a LogLevel of ‘Info’

printTrace

Logs the passed value to the installed LogManager with a LogLevel of ‘Trace’

printWarning

Logs the passed value to the installed LogManager with a LogLevel of ‘Warning’

property

Returns a list of property identifiers that match the passed regular expression

propertyValue

Returns the value the property, identified by the provided URI

readCSVFile

Loads the CSV file provided as a parameter and returns it as a vector containing the values of the each row

readFile

Reads a file from disk and return its contents

rebindKey

Rebinds all scripts from the old key (first argument) to the new key (second argument)

removeCustomProperty

removeInterestingNodes

This function removes unmarks the scene graph nodes identified by name as interesting, thus removing the shortcuts from the features properties list

removeSceneGraphNode

Removes the SceneGraphNode identified by name or by extracting the ‘Identifier’ key if the parameter is a table

removeSceneGraphNodesFromRegex

Removes all SceneGraphNodes with identifiers matching the input regular expression

removeScreenSpaceRenderable

Given a ScreenSpaceRenderable name this script will remove it from the RenderEngine

removeTag

Removes a tag (second argument) from a scene graph node (first argument)

resetCamera

Resets the camera position to the same position where the profile originally started

resetScreenshotNumber

Reset screenshot index to 0

saveSettingsToProfile

Collects all changes that have been made since startup, including all property changes and assets required, requested, or removed

sceneGraphNodes

Returns a list of all scene graph nodes in the scene

screenSpaceRenderables

Returns a list of all screen-space renderables

setCurrentMission

Set the currnet mission

setDefaultDashboard

This function sets the default values for the dashboard consisting of ‘DashboardItemDate’, ‘DashboardItemSimulationIncrement’, ‘DashboardItemDistance’, ‘DashboardItemFramerate’, and ‘DashboardItemParallelConnection’

setDefaultGuiSorting

This function sets the default GUI sorting for the space environment to increasing size, from solar system, through Milky Way, Universe and finishing with other elements

setParent

The scene graph node identified by the first string is reparented to be a child of the scene graph node identified by the second string

setPathToken

Registers the path token provided by the first argument to the path in the second argument

setPropertyValue

Sets all property(s) identified by the URI (with potential wildcards) in the first argument

setPropertyValueSingle

Sets the property identified by the URI in the first argument

setScreenshotFolder

Sets the folder used for storing screenshots or session recording frames

takeScreenshot

Take a screenshot and return the screenshot number

toggleFade

Toggles the fade state of the node(s) with the given identifier over the given time in seconds

toggleShutdown

Toggles the shutdown mode that will close the application after the countdown timer is reached

unloadMission

Unloads a previously loaded mission

unzipFile

This function extracts the contents of a zip file

version

This function returns information about the current OpenSpace version

walkDirectory

Walks a directory and returns the contents of the directory as absolute paths

walkDirectoryFiles

Walks a directory and returns the files of the directory as absolute paths

walkDirectoryFolders

Walks a directory and returns the subfolders of the directory as absolute paths

worldPosition

Returns the world position of the scene graph node with the given string as identifier

worldRotation

Returns the world rotation matrix of the scene graph node with the given string as identifier

writeDocumentation

Writes out documentation files

Functions

absPath

Passes the argument to FileSystem::absolutePath, which resolves occuring path tokens and returns the absolute path.

Parameters
  • path String

Return type: Path

Signature
openspace.absPath(path)

addCustomProperty

Creates a new property that lives in the UserProperty group.

Parameters
  • identifier String

    • The identifier that is going to be used for the new property

  • type CustomPropertyType

    • The type of the property, has to be one of “DMat2Property”, “DMat3Property”, “DMat4Property”, “Mat2Property”, “Mat3Property”, “Mat4Property”, “BoolProperty”, “DoubleProperty”, “FloatProperty”, “IntProperty”, “StringProperty”, “StringListProperty”, “LongProperty”, “ShortProperty”, “UIntProperty”, “ULongProperty”, “DVec2Property”, “DVec3Property”, “DVec4Property”, “IVec2Property”, “IVec3Property”, “IVec4Property”, “UVec2Property”, “UVec3Property”, “UVec4Property”, “Vec2Property”, “Vec3Property”, “Vec4Property”

  • guiName String?

    • The name that the property uses in the user interface. If this value is not provided, the identifier is used instead

  • description String?

    • A description what the property is used for

  • onChange String?

    • A Lua script that will be executed whenever the property changes

Return type: void

Signature
openspace.addCustomProperty(identifier, type, guiName, description, onChange)

addSceneGraphNode

Loads the SceneGraphNode described in the table and adds it to the SceneGraph.

Parameters
  • node Table

Return type: void

Signature
openspace.addSceneGraphNode(node)

addScreenSpaceRenderable

/ Will create a ScreenSpaceRenderable from a lua Table and add it in the RenderEngine

Parameters
  • screenSpace Table

Return type: void

Signature
openspace.addScreenSpaceRenderable(screenSpace)

addTag

Adds a Tag to a SceneGraphNode identified by the provided uri

Parameters
  • uri String

  • tag String

Return type: void

Signature
openspace.addTag(uri, tag)

addToPropertyValue

Add a value to the property with the given identifier. Works on both numerical and string properties, where adding to a string property means appending the given string value to the existing string value.

Parameters
  • identifier String

  • value String | Number

Return type: void

Signature
openspace.addToPropertyValue(identifier, value)

appendToListProperty

Add a value to the list property with the given identifier. The value can be any type, as long as it is the correct type for the given property. Note that a number will be converted to a string automatically.

Parameters
  • identifier String

  • value any

Return type: void

Signature
openspace.appendToListProperty(identifier, value)

bindKey

Binds a key to Lua command to both execute locally and broadcast to all clients if this node is hosting a parallel connection.

Parameters
  • key String

  • action String

Return type: void

Signature
openspace.bindKey(key, action)

boundingSphere

Returns the bounding sphere of the scene graph node with the given string as identifier.

Parameters
  • identifier String

Return type: Number

Signature
openspace.boundingSphere(identifier)

clearKey

Unbinds the key or keys that have been provided. This function can be called with a single key or with an array of keys to remove all of the provided keys at once.

Parameters
  • key String | String[]

Return type: void

Signature
openspace.clearKey(key)

clearKeys

Clear all key bindings

Return type: void

Signature
openspace.clearKeys()

configuration

Returns the whole configuration object as a Dictionary

Return type: Table

Signature
openspace.configuration()

createDirectory

Creates a directory at the provided path, returns true if directory was newly created and false otherwise. If recursive flag is set to true, it will automatically create any missing parent folder as well

Parameters
  • path Path

  • recursive Boolean? - Default value: false

Return type: Boolean

Signature
openspace.createDirectory(path, recursive)

createSingleColorImage

Creates a 1 pixel image with a certain color in the cache folder and returns the path to the file. If a cached file with the given name already exists, the path to that file is returned. The first argument is the name of the file, without extension. The second is the RGB color, given as {r, g, b} with values between 0 and 1.

Parameters
  • name String

  • color vec3

Return type: Path

Signature
openspace.createSingleColorImage(name, color)

directoryExists

Checks whether the provided directory exists.

Parameters
  • file Path

Return type: Boolean

Signature
openspace.directoryExists(file)

directoryForPath

This function extracts the directory part of the passed path. For example, if the parameter is ‘C:\OpenSpace\foobar\foo.txt’, this function returns ‘C:\OpenSpace\foobar’.

Parameters
  • file Path

Return type: Path

Signature
openspace.directoryForPath(file)

downloadFile

Downloads a file from Lua interpreter

Parameters
  • url String

  • savePath String

  • waitForCompletion Boolean? - Default value: false

Return type: void

Signature
openspace.downloadFile(url, savePath, waitForCompletion)

dpiScaling

Extracts the DPI scaling for either the GUI window or if there is no dedicated GUI window, the first window.

Return type: Number

Signature
openspace.dpiScaling()

fadeIn

Fades in the node(s) with the given identifier over the given time in seconds. The identifier can contain a tag and/or a wildcard to target several nodes. If the fade time is not provided then the ‘OpenSpaceEngine.FadeDuration’ property will be used instead. If the third argument (endScript) is provided then that script will be run after the fade is finished.

Parameters
  • identifier String

  • fadeTime Number?

  • endScript String?

Return type: void

Signature
openspace.fadeIn(identifier, fadeTime, endScript)

fadeOut

Fades out the node(s) with the given identifier over the given time in seconds. The identifier can contain a tag and/or a wildcard to target several nodes. If the fade time is not provided then the ‘OpenSpaceEngine.FadeDuration’ property will be used instead. If the third argument (endScript) is provided then that script will be run after the fade is finished.

Parameters
  • identifier String

  • fadeTime Number?

  • endScript String?

Return type: void

Signature
openspace.fadeOut(identifier, fadeTime, endScript)

fileExists

Checks whether the provided file exists.

Parameters
  • file String

Return type: Boolean

Signature
openspace.fileExists(file)

getProperty

Returns a list of property identifiers that match the passed regular expression

Parameters
  • regex String

Return type: String[]

Signature
openspace.getProperty(regex)

getPropertyValue

Returns the value the property, identified by the provided URI. Deprecated in favor of the ‘propertyValue’ function

Return type: void

Signature
openspace.getPropertyValue()

hasMission

Returns whether a mission with the provided name has been loaded.

Parameters
  • missionName String

Return type: Boolean

Signature
openspace.hasMission(missionName)

hasProperty

Returns whether a property with the given URI exists

Parameters
  • uri String

Return type: Boolean

Signature
openspace.hasProperty(uri)

hasSceneGraphNode

Checks whether the specifies SceneGraphNode is present in the current scene.

Parameters
  • nodeName String

Return type: Boolean

Signature
openspace.hasSceneGraphNode(nodeName)

interactionSphere

Returns the interaction sphere of the scene graph node with the given string as identifier.

Parameters
  • identifier String

Return type: Number

Signature
openspace.interactionSphere(identifier)

invertBooleanProperty

Inverts the value of a boolean property with the given identifier

Parameters
  • identifier String

Return type: void

Signature
openspace.invertBooleanProperty(identifier)

isMaster

Returns whether the current OpenSpace instance is the master node of a cluster configuration. If this instance is not part of a cluster, this function also returns ‘true’.

Return type: Boolean

Signature
openspace.isMaster()

keyBindings

Returns the strings of the script that are bound to the passed key and whether they were local or remote key binds.

Parameters
  • key String

Return type: String[]

Signature
openspace.keyBindings(key)

layerServer

Returns the current layer server from the configuration

Return type: String

Signature
openspace.layerServer()

loadJson

Loads the provided JSON file and returns it back to the caller. Please note that if the JSON contains keys that array of an array type, they are converted into a Dictionary with numerical keys and the numerical keys start with 1.

Parameters
  • path Path

Return type: Table

Signature
openspace.loadJson(path)

loadMission

Load mission phases from file.

Parameters
  • mission Table

Return type: void

Signature
openspace.loadMission(mission)

makeIdentifier

Create a valid identifier from the provided input string. Will replace invalid characters like whitespaces and some punctuation marks with valid alternatives

Parameters
  • input String

Return type: String

Signature
openspace.makeIdentifier(input)

markInterestingNodes

This function marks the scene graph nodes identified by name as interesting, which will provide shortcut access to focus buttons and featured properties

Parameters
  • sceneGraphNodes String[]

Return type: void

Signature
openspace.markInterestingNodes(sceneGraphNodes)

markInterestingTimes

This function marks interesting times for the current scene, which will create shortcuts for a quick access

Parameters
  • times Table[]

Return type: void

Signature
openspace.markInterestingTimes(times)

nodeByRenderableType

Returns a list of all scene graph nodes in the scene that have a renderable of the specific type

Parameters
  • type String

Return type: String[]

Signature
openspace.nodeByRenderableType(type)

printDebug

Logs the passed value to the installed LogManager with a LogLevel of ‘Debug’. For Boolean, numbers, and strings, the internal values are printed, for all other types, the type is printed instead

Parameters
  • Unnamed parameter of type *

Return type: void

Signature
openspace.printDebug()

printError

Logs the passed value to the installed LogManager with a LogLevel of ‘Error’. For Boolean, numbers, and strings, the internal values are printed, for all other types, the type is printed instead

Parameters
  • Unnamed parameter of type *

Return type: void

Signature
openspace.printError()

printFatal

Logs the passed value to the installed LogManager with a LogLevel of ‘Fatal’. For Boolean, numbers, and strings, the internal values are printed, for all other types, the type is printed instead

Parameters
  • Unnamed parameter of type *

Return type: void

Signature
openspace.printFatal()

printInfo

Logs the passed value to the installed LogManager with a LogLevel of ‘Info’. For Boolean, numbers, and strings, the internal values are printed, for all other types, the type is printed instead

Parameters
  • Unnamed parameter of type *

Return type: void

Signature
openspace.printInfo()

printTrace

Logs the passed value to the installed LogManager with a LogLevel of ‘Trace’. For Boolean, numbers, and strings, the internal values are printed, for all other types, the type is printed instead

Parameters
  • Unnamed parameter of type *

Return type: void

Signature
openspace.printTrace()

printWarning

Logs the passed value to the installed LogManager with a LogLevel of ‘Warning’. For Boolean, numbers, and strings, the internal values are printed, for all other types, the type is printed instead

Parameters
  • Unnamed parameter of type *

Return type: void

Signature
openspace.printWarning()

property

Returns a list of property identifiers that match the passed regular expression

Parameters
  • regex String

Return type: String[]

Signature
openspace.property(regex)

propertyValue

Returns the value the property, identified by the provided URI. Deprecated in favor of the ‘propertyValue’ function

Return type: void

Signature
openspace.propertyValue()

readCSVFile

Loads the CSV file provided as a parameter and returns it as a vector containing the values of the each row. The inner vector has the same number of values as the CSV has columns. The second parameter controls whether the first entry in the returned outer vector is containing the names of the columns

Parameters
  • file Path

  • includeFirstLine Boolean? - Default value: false

Return type: String[][]

Signature
openspace.readCSVFile(file, includeFirstLine)

readFile

Reads a file from disk and return its contents.

Parameters
  • file Path

Return type: String

Signature
openspace.readFile(file)

rebindKey

Rebinds all scripts from the old key (first argument) to the new key (second argument)

Parameters
  • oldKey String

  • newKey String

Return type: void

Signature
openspace.rebindKey(oldKey, newKey)

removeCustomProperty

Parameters
  • identifier String

Return type: void

Signature
openspace.removeCustomProperty(identifier)

removeInterestingNodes

This function removes unmarks the scene graph nodes identified by name as interesting, thus removing the shortcuts from the features properties list

Parameters
  • sceneGraphNodes String[]

Return type: void

Signature
openspace.removeInterestingNodes(sceneGraphNodes)

removeSceneGraphNode

Removes the SceneGraphNode identified by name or by extracting the ‘Identifier’ key if the parameter is a table.

Parameters
  • node String | Table

Return type: void

Signature
openspace.removeSceneGraphNode(node)

removeSceneGraphNodesFromRegex

Removes all SceneGraphNodes with identifiers matching the input regular expression.

Parameters
  • name String

Return type: void

Signature
openspace.removeSceneGraphNodesFromRegex(name)

removeScreenSpaceRenderable

Given a ScreenSpaceRenderable name this script will remove it from the RenderEngine. The parameter can also be a table in which case the ‘Identifier’ key is used to look up the name from the table.

Parameters
  • identifier String | Table

Return type: void

Signature
openspace.removeScreenSpaceRenderable(identifier)

removeTag

Removes a tag (second argument) from a scene graph node (first argument)

Parameters
  • uri String

  • tag String

Return type: void

Signature
openspace.removeTag(uri, tag)

resetCamera

Resets the camera position to the same position where the profile originally started

Return type: void

Signature
openspace.resetCamera()

resetScreenshotNumber

Reset screenshot index to 0.

Return type: void

Signature
openspace.resetScreenshotNumber()

saveSettingsToProfile

Collects all changes that have been made since startup, including all property changes and assets required, requested, or removed. All changes will be added to the profile that OpenSpace was started with, and the new saved file will contain all of this information. If the argument is provided, the settings will be saved into new profile with that name. If the argument is blank, the current profile will be saved to a backup file and the original profile will be overwritten. The second argument determines if a file that already exists should be overwritten, which is ‘false’ by default.

Parameters
  • saveFilePath String?

  • overwrite Boolean? - Default value: true

Return type: void

Signature
openspace.saveSettingsToProfile(saveFilePath, overwrite)

sceneGraphNodes

Returns a list of all scene graph nodes in the scene

Return type: String[]

Signature
openspace.sceneGraphNodes()

screenSpaceRenderables

Returns a list of all screen-space renderables

Return type: String[]

Signature
openspace.screenSpaceRenderables()

setCurrentMission

Set the currnet mission.

Parameters
  • missionName String

Return type: void

Signature
openspace.setCurrentMission(missionName)

setDefaultDashboard

This function sets the default values for the dashboard consisting of ‘DashboardItemDate’, ‘DashboardItemSimulationIncrement’, ‘DashboardItemDistance’, ‘DashboardItemFramerate’, and ‘DashboardItemParallelConnection’

Return type: void

Signature
openspace.setDefaultDashboard()

setDefaultGuiSorting

This function sets the default GUI sorting for the space environment to increasing size, from solar system, through Milky Way, Universe and finishing with other elements

Return type: void

Signature
openspace.setDefaultGuiSorting()

setParent

The scene graph node identified by the first string is reparented to be a child of the scene graph node identified by the second string.

Parameters
  • identifier String

  • newParent String

Return type: void

Signature
openspace.setParent(identifier, newParent)

setPathToken

Registers the path token provided by the first argument to the path in the second argument. If the path token already exists, it will be silently overridden.

Parameters
  • pathToken String

  • path Path

Return type: void

Signature
openspace.setPathToken(pathToken, path)

setPropertyValue

Sets all property(s) identified by the URI (with potential wildcards) in the first argument. The second argument can be any type, but it has to match the type that the property (or properties) expect. If the third is not present or is ‘0’, the value changes instantly, otherwise the change will take that many seconds and the value is interpolated at each step in between. The fourth parameter is an optional easing function if a ‘duration’ has been specified. If ‘duration’ is 0, this parameter value is ignored. Otherwise, it can be one of many supported easing functions. See easing.h for available functions. The fifth argument is another Lua script that will be executed when the interpolation provided in parameter 3 finishes. The URI is interpreted using a wildcard in which ‘’ is expanded to ‘(.)’ and bracketed components ‘{ }’ are interpreted as group tag names. Then, the passed value will be set on all properties that fit the regex + group name combination.

Return type: void

Signature
openspace.setPropertyValue()

setPropertyValueSingle

Sets the property identified by the URI in the first argument. The second argument can be any type, but it has to match the type that the property expects. If the third is not present or is ‘0’, the value changes instantly, otherwise the change will take that many seconds and the value is interpolated at each step in between. The fourth parameter is an optional easing function if a ‘duration’ has been specified. If ‘duration’ is 0, this parameter value is ignored. Otherwise, it has to be one of the easing functions defined in the list below. This is the same as calling the setValue method and passing ‘single’ as the fourth argument to setPropertyValue. The fifth argument is another Lua script that will be executed when the interpolation provided in parameter 3 finishes. Avaiable easing functions: Linear, QuadraticEaseIn, QuadraticEaseOut, QuadraticEaseInOut, CubicEaseIn, CubicEaseOut, CubicEaseInOut, QuarticEaseIn, QuarticEaseOut, QuarticEaseInOut, QuinticEaseIn, QuinticEaseOut, QuinticEaseInOut, SineEaseIn, SineEaseOut, SineEaseInOut, CircularEaseIn, CircularEaseOut, CircularEaseInOut, ExponentialEaseIn, ExponentialEaseOut, ExponentialEaseInOut, ElasticEaseIn, ElasticEaseOut, ElasticEaseInOut, BounceEaseIn, BounceEaseOut, BounceEaseInOut

Return type: void

Signature
openspace.setPropertyValueSingle()

setScreenshotFolder

Sets the folder used for storing screenshots or session recording frames

Parameters
  • newFolder String

Return type: void

Signature
openspace.setScreenshotFolder(newFolder)

takeScreenshot

Take a screenshot and return the screenshot number. The screenshot will be stored in the ${SCREENSHOTS} folder.

Return type: Integer

Signature
openspace.takeScreenshot()

toggleFade

Toggles the fade state of the node(s) with the given identifier over the given time in seconds. The identifier can contain a tag and/or a wildcard to target several nodes. If the fade time is not provided then the “OpenSpaceEngine.FadeDuration” property will be used instead. If the third argument (endScript) is provided then that script will be run after the fade is finished.

Parameters
  • identifier String

  • fadeTime Number?

  • endScript String?

Return type: void

Signature
openspace.toggleFade(identifier, fadeTime, endScript)

toggleShutdown

Toggles the shutdown mode that will close the application after the countdown timer is reached

Return type: void

Signature
openspace.toggleShutdown()

unloadMission

Unloads a previously loaded mission.

Parameters
  • missionName String

Return type: void

Signature
openspace.unloadMission(missionName)

unzipFile

This function extracts the contents of a zip file. The first argument is the path to the zip file. The second argument is the directory where to put the extracted files. If the third argument is true, the compressed file will be deleted after the decompression is finished.

Parameters
  • source String

  • destination String

  • deleteSource Boolean? - Default value: false

Return type: void

Signature
openspace.unzipFile(source, destination, deleteSource)

version

This function returns information about the current OpenSpace version. The resulting table has the structure:

 Version = { Major = <number> Minor = <number> Patch = <number> }, Commit = <string> Branch = <string> 

Return type: Table

Signature
openspace.version()

walkDirectory

Walks a directory and returns the contents of the directory as absolute paths. The first argument is the path of the directory that should be walked, the second argument determines if the walk is recursive and will continue in contained directories. The default value for this parameter is “false”. The third argument determines whether the table that is returned is sorted. The default value for this parameter is “false”.

Parameters
  • path Path

  • recursive Boolean? - Default value: false

  • sorted Boolean? - Default value: false

Return type: Path[]

Signature
openspace.walkDirectory(path, recursive, sorted)

walkDirectoryFiles

Walks a directory and returns the files of the directory as absolute paths. The first argument is the path of the directory that should be walked, the second argument determines if the walk is recursive and will continue in contained directories. The default value for this parameter is “false”. The third argument determines whether the table that is returned is sorted. The default value for this parameter is “false”.

Parameters
  • path Path

  • recursive Boolean? - Default value: false

  • sorted Boolean? - Default value: false

Return type: Path[]

Signature
openspace.walkDirectoryFiles(path, recursive, sorted)

walkDirectoryFolders

Walks a directory and returns the subfolders of the directory as absolute paths. The first argument is the path of the directory that should be walked, the second argument determines if the walk is recursive and will continue in contained directories. The default value for this parameter is “false”. The third argument determines whether the table that is returned is sorted. The default value for this parameter is “false”.

Parameters
  • path Path

  • recursive Boolean? - Default value: false

  • sorted Boolean? - Default value: false

Return type: Path[]

Signature
openspace.walkDirectoryFolders(path, recursive, sorted)

worldPosition

Returns the world position of the scene graph node with the given string as identifier.

Parameters
  • identifier String

Return type: vec3

Signature
openspace.worldPosition(identifier)

worldRotation

Returns the world rotation matrix of the scene graph node with the given string as identifier.

Parameters
  • identifier String

Return type: mat3x3

Signature
openspace.worldRotation(identifier)

writeDocumentation

Writes out documentation files

Return type: void

Signature
openspace.writeDocumentation()