- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm working on a custom node. It modifies the timeline color, setting a custom widget created in the postConstructor call.
This widget is deleted when the node is "deleted" using the following callbacks:
MSceneMessage.kBeforeNew
MSceneMessage.kBeforeImport
MSceneMessage.kBeforeOpen
MNodeMessage.addNodePreRemovalCallback
MDGMessage.addNodeRemovedCallback
All those callbacks run a function that deletes the widget and all the callbacks the node created.
When I delete the node, the callbacks and the widget are removed. But if I do a redo, I can see the callbacks are up again, but not the widget.
Wondering how can I create the widget again after a redo of the node happens, as the constructor and the postConstructor are not called.
Thanks,
David
Solved! Go to Solution.