Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PYTHON - How to create and set AOV attributes (data, driver and filter)

3 REPLIES 3
Reply
Message 1 of 4
AnotherDave
845 Views, 3 Replies

PYTHON - How to create and set AOV attributes (data, driver and filter)

I've got a little script that I want to use to setup a deep AOV, what I want to do is change the driver to be deepexr rather than just exr:

1619718935621.png

1619719092634.png


I can't find out how to set the driver or filter for the AOVs. When adding an AOV I can change the data type by using aovType but I can't find out how to change the driver or filter.

mtoa.aovs.AOVInterface().addAOV('deep', aovType='float'


Anyone got any ideas?


Cheers!




Tags (1)
Labels (1)
3 REPLIES 3
Message 2 of 4
Stephen.Blair
in reply to: AnotherDave

You can set the ai_translator attribute on the driver

createNode aiAOVDriver -n "aiAOVDriver1";
    rename -uid "DCE06C62-427A-1D99-2156-979D9D057E50";
    setAttr ".ai_translator" -type "string" "deepexr";




// Stephen Blair
// Arnold Renderer Support
Message 3 of 4

do uou have python syntax?

Message 4 of 4

and i'd like to set my filter to "gaussian" and as format "tif", what should i write in python?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report