Maxscript activate custom AOV pass ?

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
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
Post Reply
HHbomb
Licensed Customer
Posts: 1377
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

Hi !
Is there a way with maxscript to check ( or uncheck ) a custom AOV pass ? ex : custom AOV 1
Thanks
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
neonZorglub
OctaneRender Team
Posts: 1017
Joined: Sun Jul 31, 2016 10:08 pm

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
HHbomb
Licensed Customer
Posts: 1377
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

Hi NZ...
:oops: I didn't remember you made a post on this. Thanks
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
Post Reply

Return to “Autodesk 3Ds Max”