sim.writeCustomTableData

Adds or removes custom table data to be stored and saved together with an object, the scene, the app, or the app's storage. If the data is attached to an object, then the sysCall_data callback function is called asynchronously for the simulation- or customization script attached to that object

Synopsis

sim.writeCustomTableData(int objectHandle, string tagName, dict/list tableData) sim.writeCustomTableData(int objectHandle, string tagName, table tableData)

Arguments

  • objectHandle: handle of the object where the data has to be stored, sim.handle_scene, sim.handle_app or sim.handle_appstorage
  • tagName: string that identifies the data. An empty string will remove all custom data
  • tableData: data to store. An empty array effectively removes the custom data from the object


See also: