On 04/12/2015 at 08:08, xxxxxxxx wrote:
What about creating a new render setting via Python and setting the parameters you want in the script?
Here is a sample of one I created as part of another script. newDoc at the end is the new document I had created that I was inserting the render settings into. You might use doc instead if the current document you are inserting the render settings into.
def renderSettings() :
dNewRD = documents.RenderData() # create new render setting
dNewRD.SetName("Render Library Preview")
sketch = c4d.BaseList2D(1011015) #object id found by GetType()
dNewRD.InsertVideoPostLast(sketch)# add S&T to render setting
dNewRD[c4d.RDATA_FORMAT] = c4d.FILTER_JPG
dNewRD[c4d.RDATA_ANTIALIASING] = c4d.RDATA_ANTIALIASING_BEST
dNewRD[c4d.RDATA_AAMAXLEVEL] = c4d.RDATA_AAMAXLEVEL_2
dNewRD[c4d.RDATA_AATHRESHOLD] = .04
dNewRD[c4d.RDATA_PATH] = targetPath + "/" + objName + ".c4d"
newDoc.InsertRenderData(dNewRD) # insert new render setting into document
newDoc.SetActiveRenderData(dNewRD) #set new setting as the active render setting