Regular API function

simGetConfigurationTree / sim.getConfigurationTree

Description Deprecated
C/C++
synopsis
char* simGetConfigurationTree(int objectHandle)
C/C++
parameters
objectHandle: handle of the object that is at the base of the tree (all objects built on top of this one (including this one)) will have their configuration retrieved. sim.handle_all will retrieve the configuration for the whole scene
C/C++
return value
Configuration data if operation was successful, nullptr otherwise. The returned data should be deleted with simReleaseBuffer when not used anymore
Lua
synopsis
string buffer=sim.getConfigurationTree(int objectHandle)
Lua
parameters
Similar to the C-function counterpart. In addition, child scripts can use the argument sim.handle_self to retrieved the configuration tree of the object that the child script is attached to
Lua
return values
buffer: use that value to restore the configuration tree with sim.setConfigurationTree.