openspace.sessionRecording
Functions overview
Name |
Documentation |
|---|---|
Returns true if session recording is currently playing back a recording |
|
Returns true if session recording is currently recording a recording |
|
Pauses or resumes the playback progression through keyframes |
|
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) |
|
Starts a recording session |
|
Stops a playback session before playback of all keyframes is complete |
|
Stops a recording session |
|
Toggles the pause function, i |
Functions
isPlayingBack
Returns true if session recording is currently playing back a recording.
Return type: Boolean
openspace.sessionRecording.isPlayingBack()
isRecording
Returns true if session recording is currently recording a recording.
Return type: Boolean
openspace.sessionRecording.isRecording()
setPlaybackPause
Pauses or resumes the playback progression through keyframes.
pause
Boolean
Return type: void
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 file argument is the filename to the session recording file. If a second input value of true is given, then playback will continually loop until it is manually stopped.
file
Pathloop
Boolean?- Default value:falseshouldWaitForTiles
Boolean?- Default value:truescreenshotFps
Integer??- Default value:std::nullopt
Return type: void
openspace.sessionRecording.startPlayback(file, loop, shouldWaitForTiles, screenshotFps)
startRecording
Starts a recording session. The string argument is the filename used for the file where the recorded keyframes are saved.
Return type: void
openspace.sessionRecording.startRecording()
stopPlayback
Stops a playback session before playback of all keyframes is complete.
Return type: void
openspace.sessionRecording.stopPlayback()
stopRecording
Stops a recording session. dataMode has to be “Ascii” or “Binary”. If overwrite is true, any existing session recording file will be overwritten, false by default.
recordFilePath
PathdataMode
Stringoverwrite
Boolean?
Return type: void
openspace.sessionRecording.stopRecording(recordFilePath, dataMode, overwrite)
togglePlaybackPause
Toggles the pause function, i.e. temporarily setting the delta time to 0 and restoring it afterwards.
Return type: void
openspace.sessionRecording.togglePlaybackPause()