On 05/11/2013 at 10:03, xxxxxxxx wrote:
(My apologies in advance, I could not get the formatting for code blocks working properly.)
Is there a way to make SaveDocument() name the current document the name that the file was saved as?
When I use
c4d.documents.SaveDocument(doc, path, c4d.SAVEDOCUMENTFLAGS_DIALOGSALLOWED, c4d.FORMAT_C4DEXPORT)
the file is saved, however, the previous document name remains.
In order to deal with this, I have had to write the following, but I refuse to believe this is the correct way. I have to be missing something.
new_doc = c4d.documents.SaveDocument(doc, path, c4d.SAVEDOCUMENTFLAGS_DIALOGSALLOWED, c4d.FORMAT_C4DEXPORT)
c4d.documents.CloseAllDocuments()
c4d.documents.LoadFile(path)
TIA!