THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/07/2011 at 08:37, xxxxxxxx wrote:
Hi folks,
I bet this will be a pretty easy answer for you pros.
Can anybody tell me how to upate the actual RenderData ?
I want to achive that the Outputname of a file is changed to whatever I want to.
renderdata = doc.GetActiveRenderData()
rd_bc = renderdata.GetDataInstance()
renderoutput = os.path.split(rd_bc.GetData(5041))
new_name ="Blabla"
new_output = os.path.join(renderoutput[0],new_name)
print "New:", new_output
rd_bc.SetData(5041,new_output)
renderdata.Message(5041)
But the only thing that happens is that the box in the rendersettings turns blank.
But if I recheck it afterwards
renderdata = doc.GetActiveRenderData()
rd_bc = renderdata.GetDataInstance()
renderoutput = os.path.split(rd_bc.GetData(5041))
print renderoutput[1]
It seems to work fine.
I guess I forgot to pass an information to C4D !?
Can anybody help me out please ?