Save active doc and reopen it
On 26/06/2014 at 07:40, xxxxxxxx wrote:
I want to duplicate the active document to a fixed location and still have the original document open (or reopend).
How can this be done?
I got stuck right in the beginning, as I want a InputDialog to rename the duplicate and "documents.GetActiveDocument()" only gives me an ID and my "GetData(c4d.DOCUMENT_NAME)" isn't working.
After that I can't work out how do save it as a copy or reopen it from the old position.
Can someone please help me with this?
On 27/06/2014 at 04:03, xxxxxxxx wrote:
You should be able to get the path with a combination of:
myDoc = GetActiveDocument() originalDocPath = myDoc.GetDocumentPath() + "/" + myDoc.GetDocumentName() # ^ Might have to append the doc name to it not sure
And then just do a save document then a load document, something like..
SaveDocument(myDoc, SAVEDOCUMENTFLAGS_DIALOGSALLOWED, FORMAT_C4DEXPORT) #LoadDocument() or LoadFile()
Roughly like that i think..
On 07/07/2014 at 01:40, xxxxxxxx wrote:
Thanks a bunch! Learning Python better day by day...