Previously I tested your idea with print commands, all worked nice, but now I see that the values don’t get written to the data file.
The problem is that even if the parameter script is run when you move the object, or open the settings, it runs in a sandboxed mode, and the changes won’t be applied unless any parameter changes.
If you change some hidden parameter, eg. increment a counter, it will work – interestingly, toggling a boolean isn’t enough, maybe because the param script runs even number of times.
Library Platform, Software Engineer