Notifications
Clear all
[Closed] Setting render element path for network render
Aug 25, 2011 9:20 pm
Hello all, I am trying to have a script which submits many renders from one scene. It works fine, but one issue is that I can’t change the output path of a render element on each iteration through the loop. Here’s a relevant part of the code:
matidpath = thispath + "\\" + fivechar + "_MatID_.tif"
print ("matidpath: " + matidpath) to:scriptlog
(job.getRenderElement 1).output = matidpath
print ("output: " + (job.getRenderElement 1).output ) to:scriptlog
And here is the output. The first line changes in each iteration, but the second line doesn’t.
"
" OT-05 BEN STILLER"
"matidpath: X:\11020_TOWER_HEIST_TITLES\01_Shots\TITLES\02_Assets\3D_renders\auto005\OT-05_BEN_STILLER\OT-05_BEN_STILLER_MatID_.tif"
"output: X:\11020_TOWER_HEIST_TITLES\01_Shots\TITLES\02_Assets\3D_renders\OT_07_TOWER_HEIST_v05\OT_07_Tower_Heist_MatID.tif"
"
"
" OT-06 EDDIE MURPHY"
"matidpath: X:\11020_TOWER_HEIST_TITLES\01_Shots\TITLES\02_Assets\3D_renders\auto005\OT-06_EDDIE_MURPHY\OT-06_EDDIE_MURPHY_MatID_.tif"
"output: X:\11020_TOWER_HEIST_TITLES\01_Shots\TITLES\02_Assets\3D_renders\OT_07_TOWER_HEIST_v05\OT_07_Tower_Heist_MatID.tif"
"
I did find this discussion, but since he is not doing this via network rendering I am not sure how relevant it is. My script doesn’t throw an error when I try to assign the new path, but it doesn’t accept the assignment either. Any idea how to do this?