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 synopsis simInt simSaveScene(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.saveScene(string filename)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page