openspace.sessionRecording

Functions overview

Name

Documentation

disableTakeScreenShotDuringPlayback

Used to disable that renderings are saved during playback

enableTakeScreenShotDuringPlayback

Enables that rendered frames should be saved during playback

fileFormatConversion

Performs a conversion of the specified file to the most most recent file format, creating a copy of the recording file

isPlayingBack

Returns true if session recording is currently playing back a recording

isRecording

Returns true if session recording is currently recording a recording

setPlaybackPause

Pauses or resumes the playback progression through keyframes

startPlayback

Starts a playback session with keyframe times that are relative to the time since the recording was started (the same relative time applies to the playback)

startPlaybackApplicationTime

Starts a playback session with keyframe times that are relative to application time (seconds since OpenSpace application started)

startPlaybackRecordedTime

Starts a playback session with keyframe times that are relative to the time since the recording was started (the same relative time applies to the playback)

startPlaybackSimulationTime

Starts a playback session with keyframe times that are relative to the simulated date & time

startRecording

Starts a recording session

startRecordingAscii

Starts a recording session

stopPlayback

Stops a playback session before playback of all keyframes is complete

stopRecording

Stops a recording session

togglePlaybackPause

Toggles the pause function, i

Functions

disableTakeScreenShotDuringPlayback

Used to disable that renderings are saved during playback.

Return type: void

Signature
openspace.sessionRecording.disableTakeScreenShotDuringPlayback()

enableTakeScreenShotDuringPlayback

Enables that rendered frames should be saved during playback. The parameter determines the number of frames that are exported per second if this value is not provided, 60 frames per second will be exported.

Parameters
  • fps Integer? - Default value: 60

Return type: void

Signature
openspace.sessionRecording.enableTakeScreenShotDuringPlayback(fps)

fileFormatConversion

Performs a conversion of the specified file to the most most recent file format, creating a copy of the recording file.

Parameters
  • convertFilePath String

Return type: void

Signature
openspace.sessionRecording.fileFormatConversion(convertFilePath)

isPlayingBack

Returns true if session recording is currently playing back a recording.

Return type: Boolean

Signature
openspace.sessionRecording.isPlayingBack()

isRecording

Returns true if session recording is currently recording a recording.

Return type: Boolean

Signature
openspace.sessionRecording.isRecording()

setPlaybackPause

Pauses or resumes the playback progression through keyframes.

Parameters
  • pause Boolean

Return type: void

Signature
openspace.sessionRecording.setPlaybackPause(pause)

startPlayback

Starts a playback session with keyframe times that are relative to the time since the recording was started (the same relative time applies to the playback). When playback starts, the simulation time is automatically set to what it was at recording time. The string argument is the filename to pull playback keyframes from (the file path is relative to the RECORDINGS variable specified in the config file). If a second input value of true is given, then playback will continually loop until it is manually stopped.

Parameters
  • file String

  • loop Boolean? - Default value: false

  • shouldWaitForTiles Boolean? - Default value: true

Return type: void

Signature
openspace.sessionRecording.startPlayback(file, loop, shouldWaitForTiles)

startPlaybackApplicationTime

Starts a playback session with keyframe times that are relative to application time (seconds since OpenSpace application started). The string argument is the filename to pull playback keyframes from (the file path is relative to the RECORDINGS variable specified in the config file).

Parameters
  • file String

Return type: void

Signature
openspace.sessionRecording.startPlaybackApplicationTime(file)

startPlaybackRecordedTime

Starts a playback session with keyframe times that are relative to the time since the recording was started (the same relative time applies to the playback). The string argument is the filename to pull playback keyframes from (the file path is relative to the RECORDINGS variable specified in the config file). If a second input value of true is given, then playback will continually loop until it is manually stopped.

Parameters
  • file String

  • loop Boolean? - Default value: false

Return type: void

Signature
openspace.sessionRecording.startPlaybackRecordedTime(file, loop)

startPlaybackSimulationTime

Starts a playback session with keyframe times that are relative to the simulated date & time. The string argument is the filename to pull playback keyframes from (the file path is relative to the RECORDINGS variable specified in the config file).

Parameters
  • file String

Return type: void

Signature
openspace.sessionRecording.startPlaybackSimulationTime(file)

startRecording

Starts a recording session. The string argument is the filename used for the file where the recorded keyframes are saved. The file data format is binary.

Parameters
  • recordFilePath String

Return type: void

Signature
openspace.sessionRecording.startRecording(recordFilePath)

startRecordingAscii

Starts a recording session. The string argument is the filename used for the file where the recorded keyframes are saved. The file data format is ASCII.

Parameters
  • recordFilePath String

Return type: void

Signature
openspace.sessionRecording.startRecordingAscii(recordFilePath)

stopPlayback

Stops a playback session before playback of all keyframes is complete.

Return type: void

Signature
openspace.sessionRecording.stopPlayback()

stopRecording

Stops a recording session.

Return type: void

Signature
openspace.sessionRecording.stopRecording()

togglePlaybackPause

Toggles the pause function, i.e. temporarily setting the delta time to 0 and restoring it afterwards.

Return type: void

Signature
openspace.sessionRecording.togglePlaybackPause()