I am thinking of making it possible to record user actions in a script. Lets say the user creates a panel by adding modulators. Then he makes some property changes to make the modulators look correct(colors, position, font etc). Then he adds some lua code in the callbacks and he is done.
Now he wants to make a similar panel again but does not want to start from scratch. If I could provide a way to record all these property changes and modulator creation, into a lua script that can simply be ‘played back’ in the lua context of a new panel, then it would produce the same panel again.
If I want to implement this where would be the best place to track property changes for modulators that are added to a panel ? Do I need to add code to record property changes, in each modulator’s class ?
Like to record changes for CtrlrImageSlider do I add code in CtrlrImageSlider::setComponentValue() ?
Creating a new panel itself is not currently possible to record as an equivalent Lua command I guess. But maybe modulator creation is ?