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: 

MtoA - can't create AOVs with shaders of the same type in Python

2 REPLIES 2
Reply
Message 1 of 3
fabriceQ224F
213 Views, 2 Replies

MtoA - can't create AOVs with shaders of the same type in Python

Hi,

I'd like to understand why we can't create 2 AOV's with 2 shaders of the same type?

For example:

import mtoa.aovs as aov

shd = 'aiUtility'

aovInt = aov.AOVInterface()
newAOV = aovInt.addAOV('util1', aovShader = shd)

aovInt2 = aov.AOVInterface()
newAOV2 = aovInt2.addAOV('util2', aovShader = shd)

This creates 2 AOV's, but only one aiUtility is connected to them.

I checked what's happening in aovs.py (in MtoA scripts installation folder). After a comment saying '# second, see if shaders of this type already exist in the scene', it indeed removes the opportunity to create a second shader of the same type.

Why is it forbidden to create 2 different shaders of the same type with addAOV function?

Tags (3)
Labels (3)
2 REPLIES 2
Message 2 of 3

In the last line, shouldn't it be aovInt2 ?



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

You're right, I changed it

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

Post to forums  

Autodesk Design & Make Report