I'm trying to denoise existing files by adding variance to new output drivers for a lot of the AOV's. Is there a way to script this?
Thanks!
You need to render to get the variance AOVs.
You could use the Python api to update an ass file (add driver nodes, update the options.output parameter) and then render.
back to this question, if I have certain AOVs on my scene let's say diffuse and specular and I want to run a script to search for those AOVs and create a new driver output for each of them and set this new output to variance, is there a way to do so ?
Thanks
createNode aiAOVDriver -n "holaD";
createNode aiAOVFilter -n "holaF";
setAttr "holaF.ai_translator" -type "string" "variance";
connectAttr holaF.message aiAOV_test.outputs[1].filter;
connectAttr holaD.message aiAOV_test.outputs[1].driver;
setAttr "defaultRenderGlobals.currentRenderer" -l 0;
setAttr "defaultRenderGlobals.currentRenderer" -type "string" arnold;
deleteUI "unifiedRenderGlobalsWindow";
unifiedRenderGlobalsWindow;