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,
Is there a call to c4d to ascertain if there are unsaved changes in the current session. The current session was started from opening a file from disk.
I am using R21 on Windows and using Python.
Cheers
Hi @nicholas_yue this is indeed something not documented but you can know it by accessing the c4d.DOCUMENT_USERCHANGE parameter of a document.
c4d.DOCUMENT_USERCHANGE
doc = c4d.documents.GetActiveDocument() isChanged = bool(doc[c4d.DOCUMENT_USERCHANGE])
The parameter c4d.DOCUMENT_USERCHANGE is an integer that can have 3 values:
Cheers, Maxime.
Is BaseDocument.GetChanged() what you want? See Changed Mode.