Regarding change on render setting [SOLVED]



  • 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!!

    save document and load the latest one

    c4d.documents.SaveDocument(doc, newProjectName, c4d.SAVEPROJECT_DIALOGSALLOWED, c4d.FORMAT_C4DEXPORT)
    c4d.documents.LoadDocument(newProjectName, c4d.SCENEFILTER_DIALOGSALLOWED)
    c4d.documents.LoadFile(newProjectName)

    set output render image name

    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:

    save document and load the latest one

    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)

    set output render image name

    rd = doc.GetActiveRenderData()
    rd[c4d.RDATA_PATH] = renderName


Log in to reply