Notifications
Clear all

[Closed] how to cancel save file,with filePreSave callback?

CallBacks.AddScript #filePreSave “CancelSave” id:#FileScaleCheck

2 Replies
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

you can’t cancel file saving. On presave stage the file is already open for save and setting #readonly flag doesn’t not help either.

you can make a copy of the file, and on #postsave replace the file with the copy.

very thank you