Maxscript activate custom AOV pass ?

Forums: 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 viewforum.php?f=18

Maxscript activate custom AOV pass ?

Postby HHbomb » Mon Mar 11, 2024 1:12 pm

HHbomb Mon Mar 11, 2024 1:12 pm
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 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1307
Joined: Wed Jun 30, 2010 8:45 pm

Re: Maxscript activate custom AOV pass ?

Postby neonZorglub » Mon Mar 18, 2024 1:26 am

neonZorglub Mon Mar 18, 2024 1:26 am
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
neonZorglub
OctaneRender Team
OctaneRender Team
 
Posts: 899
Joined: Sun Jul 31, 2016 10:08 pm

Re: Maxscript activate custom AOV pass ?

Postby HHbomb » Mon Mar 18, 2024 9:50 am

HHbomb Mon Mar 18, 2024 9:50 am
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 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1307
Joined: Wed Jun 30, 2010 8:45 pm

Return to Autodesk 3Ds Max


Who is online

Users browsing this forum: No registered users and 21 guests

Sat Apr 27, 2024 2:15 pm [ UTC ]