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=427409Hopefully those IDs and names should never change in the future, but you could add a sanity check in your scripts..
Thanks