Is it possible to obtain JSON data stored in the “data” data field using some method and not by the callback “dataFromJson”. I need specific JSON data at the time when the plugins module ctor is called.
“dataFromJson” seems to be called by Rack in unclear intervals. Sometimes when a new plugin instance is created, it is called, sometimes not. Is there a rule, when it is called?
Blockquote immediately after is called the “fromJson”
I wasn’t aware it is always called immediately after, will implement a “delayed” init of the params then.
Thanks also for the hint on when dataFromJson is called otherwise
Your MyModule() constructor should initialize your module in its default state. When dataFromJson() is called, its state should be replaced by the given JSON.
It is called if creating a module with a template preset, cloning a module, loading a patch, etc.