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
There is HaAOV() in scripts\python\htoa\object\rop.py
but I don't know if anybody has ever scripted the creation of aovs
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.
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