Regular API function

simSaveScene / sim.saveScene

Description Saves a scene. Any existing file with same name will be overwritten. See also sim.loadScene, simCloseScene, and sim.saveModel.
C/C++
synopsis
simInt simSaveScene(const simChar* filename)
C/C++
parameters
filename: scene filename. The filename extension is required (ttt, or simscene.xml)
C/C++
return value
-1 if operation was not successful
Lua
synopsis
buffer buffer=sim.saveScene(string filename=nil)
Lua
parameters
Similar to the C-function counterpart. If nil, will return a buffer representing the serialized scene
Lua
return values
If filename is nil, a buffer representing the serialized scene will be returned
Python
synopsis
bytes buffer=sim.saveScene(string filename=None)