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).
On 16/06/2015 at 13:16, xxxxxxxx wrote:
Hello,
The purpose is to increment save and load the latest document, and update the render name based on the document's name. However, if I ran LoadFile, the render setting would not get updated. Is there any ways to update the render name after loading the latest file? Thanks!!
c4d.documents.SaveDocument(doc, newProjectName, c4d.SAVEPROJECT_DIALOGSALLOWED, c4d.FORMAT_C4DEXPORT) c4d.documents.LoadDocument(newProjectName, c4d.SCENEFILTER_DIALOGSALLOWED) c4d.documents.LoadFile(newProjectName)
rd = doc.GetActiveRenderData() rd[c4d.RDATA_PATH] = renderName
On 16/06/2015 at 14:17, xxxxxxxx wrote:
I found the other way round to achieve what I want. Below is my code:
c4d.documents.SaveDocument(doc, newProjectName, c4d.SAVEPROJECT_DIALOGSALLOWED, c4d.FORMAT_C4DEXPORT) c4d.documents.LoadDocument(newProjectName, c4d.SCENEFILTER_DIALOGSALLOWED) c4d.documents.LoadFile(newProjectName) doc.SetDocumentName(newProjectName)