csykes
(CSykes)
April 14, 2022, 3:07pm
1
I’m trying to use a CustomUndoEvent to wrap changes to custom object data inside of my Plugins UI. I have found if I wrap the change in a command, I can add it to a CustomUndo/CustomRedo chain, however I have found trying to do this outside of a command does not work.
–cs
dale
(Dale Fugier)
April 14, 2022, 3:56pm
2
1 Like
csykes
(CSykes)
April 14, 2022, 4:54pm
3
Hi @dale ,
I’m aware of this method, I just wanted a little clarification to know if it can be registered and used outside of a Rhino Command?
– cs
dale
(Dale Fugier)
April 14, 2022, 8:27pm
4
Hi @csykes ,
Yes, it can be used outside of a command.
– Dale
1 Like
menno
(Menno Deij - van Rijswijk)
April 15, 2022, 6:20am
5
You’ll also have to let rhino know about this using Begin/End UndoRecord
Instructs Rhino to begin recording undo information when the document is changed outside of a command. We use this, e.g., to save changes caused by the modeless layer or object properties dialogs when commands are not running.
3 Likes
csykes
(CSykes)
April 18, 2022, 3:00pm
6
Thanks @menno this solves my problem, I’d tried using it outside a command and I just could not make it work