Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python - HtoA

4 REPLIES 4
Reply
Message 1 of 5
am_wilkins
393 Views, 4 Replies

Python - HtoA

Hello,

I'm trying to figure out the HtoA equivalent for creating AOV:

For example:

import mtoa.aovs
mtoa.aovs.AOVInterface().addAOV('crypto_asset', aovShader='cryptomatte' )

I switched out "mtoa" for "htoa" but that didn't work...


Thank you,
Andrew

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

That script is MtoA internal API, it's not common to all the plugins


// Stephen Blair
// Arnold Renderer Support
Message 3 of 5
Stephen.Blair
in reply to: am_wilkins

There is HaAOV() in scripts\python\htoa\object\rop.py
but I don't know if anybody has ever scripted the creation of aovs



// Stephen Blair
// Arnold Renderer Support
Message 4 of 5
am_wilkins
in reply to: Stephen.Blair

Thanks, I'll check out the file / files..


Oh really? Yeah, in most cases it wouldn't be super necessary as the AOV's which are setup can just ride with the "ROPs"

But specifically for creation and management of LightGroup AOV (custom light names / aov tags) is an area that likely needs some help.

Message 5 of 5
am_wilkins
in reply to: Stephen.Blair

Hi,

I haven't managed to easily extract anything from that "rop.py" file, anymore ideas perhaps?

My plan is to script the creation of AOV with the correct LPE—based on the lights in the scene etc.

There is some houdini ui stuff such as:

hou.parm('/obj/ropnet1/light_groups/ar_aovs').set(2) #number of aov

But this isn't as useful as it would be to simply create an AOV and set the name / LPE

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

Post to forums  

Autodesk Design & Make Report