Undo/redo in CMB

Is there a way to undo (and potentially redo) an operation in CMB?

As a concrete example: I select multiple entities in the resources and then assign a colour to them. Then I deselect the entities and perform other operations. To get back to the original colours, I would have to find the original colour, select again the previously selected entities, and then set the original colour.

There is the menu item Edit → Undo, but it is grayed out. I can only undo/redo the camera position with Edit → Camera Undo.

I think an undo/redo feature would be powerful. Maybe the vtkUndoStack class could be a starting point?

Because operations in SMTK modify their inputs (unlike pipelines in ParaView, which never modify their inputs), it is more difficult to generate the proper “inverse” of an operation. We haven’t had funding to implement undo/redo but it is something we would like to do.

OK, please keep me updated in this thread if you implement undo/redo in the future. Thank you.