Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Is there a way to add AOV output drivers with Python?

4 ANTWORTEN 4
Antworten
Nachricht 1 von 5
Anonymous
565 Aufrufe, 4 Antworten

Is there a way to add AOV output drivers with Python?

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!

Tags (3)
Beschriftungen (3)
4 ANTWORTEN 4
Nachricht 2 von 5
Stephen.Blair
als Antwort auf: Anonymous

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.



// Stephen Blair
// Arnold Renderer Support
Nachricht 3 von 5
antoniocarbajoLJEKG
als Antwort auf: Anonymous

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

Nachricht 4 von 5

Since this question is in the Arnold Core Renderer space, my previous answer still applies. You can use the Arnold Python API to load the ass file, inspect the outputs, and modify them (eg add driver nodes, update the options.output parameter)


// Stephen Blair
// Arnold Renderer Support
Nachricht 5 von 5
antoniocarbajoLJEKG
als Antwort auf: Anonymous

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;

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report