Regular API function

simLoadScene / sim.loadScene

Description Loads a previously saved scene.See also sim.saveScene, sim.loadModel, simCloseScene and sim.setBoolParam with sim.boolparam_scene_and_model_load_messages.
C/C++
synopsis
simInt simLoadScene(const simChar* filename)
C/C++
parameters
filename: scene filename. The filename extension is required (ttt, or simscene.xml ). By default, the current scene will be removed. Append "@keepCurrent" to the filename if the current scene should be preserved.
C/C++
return value
-1 if operation was not successful
Lua synopsis sim.loadScene(string filename/buffer)
Lua parameters
Similar to the C-function counterpart. Additionally, can also load from a buffer
Lua return values
Python synopsis sim.loadScene(string/bytes filename)