Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi,
c4d.documents.KillDocument(doc) immediately closes a document without any checks
There is no c4d.documents.CloseDocument()
How would you close a document with the normal check and warning for changes that might be wanted to be saved first ?
best, Index
Just check it manually:
if currDoc.GetChanged() : c4d.gui.MessageDialog(c4d.plugins.GeLoadString(IDS_MSG_PROJECTCHANGED)) else : c4d.documents.KillDocument(currDoc) # works but ignores change status