I'm trying to dynamically generate scripts and associate them to scene objects, but I'm facing issues when it comes to customization scripts. Here is the kind of code I'm running
Code: Select all
local script = sim.addScript (scType) sim.setScriptText (script, scText) sim.setScriptAttribute (script, sim.scriptattribute_enabled, true) sim.associateScriptWithObject(script, object)
If I check the source code on github (file interfaces/simInternal.cpp of the repository CoppeliaSimLib), the line 5842 seems to suggest that the function should word for both customization scripts and child scripts, but lines 5855 to 5860, only the child scripts seems to be taken into account and the customization scripts seems to simply be ignored.