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 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,
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 |
neonZorglub
OctaneRender Team
Posts: 1017
Joined: Sun Jul 31, 2016 10:08 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=41dc536b ... 6e#p427409
Post Reply

Return to “Autodesk 3Ds Max”