Post Process Script to call a powershell or batch script with parameter(s) during image series
Dolce Saito
Posts: 192
As the title says.
Is there a knowledge or documentation for [a Post Process Script to call a powershell or batch script with parameter(s) during image series] doing this?
During image series render, after every image being rendered, I want to to be able to call a powershell (or batch) script with frame number as a parameter.
Thanks.
Post edited by Richard Haseltine on
Comments
Would it not be better to....
1) have the series of images fully rendered and saved out first,
2) then run the batch process on the renders found in the output folder,
3) then timestamp the folder - so that subsequent output doesn't over-write the first batch of renders?
Otherwise you seem to be risking removing processing power from the task of making the next render in the series. Since you would be trying to do two things at once, render a series and also post-process that same series as it outputs.
Please don't do this - put the actual question in the body text too (which would be quicker than typing "as the title says").
You could write a custom script to batch render and do the other actions after each frame - this sample, with a loop to iterate over the desired frame range, might be a starting point http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/rendering/render_post_process/start
Thanks Richard;
I've already seen this particular one. But I don't know how to call external programs like powershell or cmd. Is that also possible?
Unfortunately, I have to process each time a frame is finished. So, before the next frame, some of the images required for rendering will change.
Have a look at http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/process_dz
Thanks Richard. Exactly what I needed.