I have a script that uses the entity observer to add an attribute to any new entities added to the model. I found that adding an attribute adds to the undo history. I’d like to add attribute to occur silently and either not allow it to be undone or package it up with the entity addition in the history queue.
Is this possible using the entity observer or should I be doing this differently?
You would need to wrap the attribute assignment inside an undo operation, and specify a transparent argument so that your operation is appended to the previous operation.
Hello DanRathbun,
Is there another way beside appending the operation we want to hide to another operation ?
I’m in the same situation as benwart, I’m saving some metadata in the model and i want to make that operation invisible to the user, so he can’t undo a simple set_attribute operation on the active model.