Regular API function

simLoadScene / sim.loadScene (remote API equivalent: simxLoadScene)

Description Loads a previously saved scene. If current scene is not empty, a new scene will be created before switching to it and loading the scene. See also sim.saveScene, sim.loadModel, simCloseScene and sim.setBoolParameter with sim.boolparam_scene_and_model_load_messages.
C synopsis simInt simLoadScene(const simChar* filename)
C parameters
filename: scene filename. The filename extension is required ("ttt")
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=sim.loadScene(string filename)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page