Page 1 of 1
Maxscript how to add a render pass ?
Posted: Wed Aug 30, 2023 1:32 pm
by HHbomb
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

Re: Maxscript how to add a render pass ?
Posted: Sun Sep 17, 2023 10:26 pm
by neonZorglub
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=41dc536b ... 6e#p427409