Regular API function

sim.writeCustomTableData

Description Adds or removes custom table data to be stored and saved together with an object, or the scene. If the tag name ends with the string "@tmp", then the data will not be saved during a scene or model save operation. The data can also be saved globally for the application (for the current CoppeliaSim session). See also the other custom data block related functions.
C/C++
synopsis
C/C++
parameters
C/C++
return value
Lua
synopsis
sim.writeCustomTableData(int objectHandle,string tagName,table tableData)
Lua
parameters
objectHandle: handle of the object where the data has to be stored, or sim.handle_scene if you wish to store the data with the scene, or sim.handle_app if you wish to store the data with the application's current session.
tagName: a string that identifies the data. An empty string will remove all custom data blocks.
tableData: the table data. An empty table effectively removes the custom data from the object.
Lua
return values
Python
synopsis
sim.writeCustomTableData(int objectHandle,string tagName,dict/list tableData)