Maxscript how to add a render pass ?

Forums: Maxscript how to add a render 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 how to add a render pass ?

Postby HHbomb » Wed Aug 30, 2023 1:32 pm

HHbomb Wed Aug 30, 2023 1:32 pm
Hi,
we can switch viewport pass with "OctaneMaxFPI.ViewportSetControlState 12 x"
but how can we add it in multipass ?
How can we print the name of "OctaneMaxFPI.ViewportSetControlState 12 0" ? ( beauty )
Thanks :-)
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1308
Joined: Wed Jun 30, 2010 8:45 pm

Re: Maxscript how to add a render pass ?

Postby neonZorglub » Sun Sep 17, 2023 10:26 pm

neonZorglub Sun Sep 17, 2023 10:26 pm
HHbomb wrote:Hi,
we can switch viewport pass with "OctaneMaxFPI.ViewportSetControlState 12 x"
but how can we add it in multipass ?
How can we print the name of "OctaneMaxFPI.ViewportSetControlState 12 0" ? ( beauty )
Thanks :-)


Hi HHbomb,

Currently, you can't add passes using maxscript.

You can only read the list of pass IDs like this:
rd = renderers.current
passList = rd.interactivePasses

(using showproperties rd, notice that interactivePasses is an integer array)

Unfortunately, changing this list is currently not enough to actually update the renderer.
append rd.interactivePasses 32 --add the Shadow pass [do not work yet]

I'll add some functions for this in the next release, with pass IDs and names.

Thanks

Edit : Added several functions to control the render passes, from 14.02:
viewtopic.php?f=27&t=62173&sid=41dc536b36a1b81517c0ffc5f8fd726e#p427409
neonZorglub
OctaneRender Team
OctaneRender Team
 
Posts: 899
Joined: Sun Jul 31, 2016 10:08 pm

Return to Autodesk 3Ds Max


Who is online

Users browsing this forum: No registered users and 25 guests

Sun Apr 28, 2024 12:27 pm [ UTC ]