Hi !
Is there a way with maxscript to check ( or uncheck ) a custom AOV pass ? ex : custom AOV 1
Thanks
Maxscript activate custom AOV pass ?
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
- neonZorglub
- Posts: 1017
- Joined: Sun Jul 31, 2016 10:08 pm
Yes, you can use OctaneMaxFPI.VPAddPass with the pass IDHHbomb wrote:Hi !
Is there a way with maxscript to check ( or uncheck ) a custom AOV pass ? ex : custom AOV 1
Thanks
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
Hi NZ...
I didn't remember you made a post on this. Thanks

YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |