Page 1 of 1

Maxscript activate custom AOV pass ?

Posted: Mon Mar 11, 2024 1:12 pm
by HHbomb
Hi !
Is there a way with maxscript to check ( or uncheck ) a custom AOV pass ? ex : custom AOV 1
Thanks

Re: Maxscript activate custom AOV pass ?

Posted: Mon Mar 18, 2024 1:26 am
by neonZorglub
HHbomb wrote:Hi !
Is there a way with maxscript to check ( or uncheck ) a custom AOV pass ? ex : custom AOV 1
Thanks
Yes, you can use OctaneMaxFPI.VPAddPass with the pass ID

To get the pass ID of a "Custom AOV xx" :
Enable a Custoom AOV pass by hand, and get the list of pass IDs with
lst = OctaneMaxFPI.VPGetPassList()
that should show something like
#(0, 505)

or just do
passID = OctaneMaxFPI.VPPassIdFromName "Custom AOV 5"

then, enable the pass, with for example:
OctaneMaxFPI.VPAddPass 505
OctaneMaxFPI.VPAddPass passID

see more detail here:

Render passes access from MaxScript
viewtopic.php?f=27&t=62173&p=427409

Hopefully those IDs and names should never change in the future, but you could add a sanity check in your scripts..

Thanks

Re: Maxscript activate custom AOV pass ?

Posted: Mon Mar 18, 2024 9:50 am
by HHbomb
Hi NZ...
:oops: I didn't remember you made a post on this. Thanks