Remove textures from material

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.
I try to remove all maps to octane diffuse materials. I succeed for some slots :
-----------------------------------------------------
OCD = getclassinstances Diffuse_material
for mat in OCD do
(
mat.transmission_input_type = 3 --none
)
-----------------------------------------------------
but I can't manage to remove displacement or emission slot.
with : mat.displacement = undefined I get error. (???)

Thanks.
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
neonZorglub
OctaneRender Team
Posts: 1018
Joined: Sun Jul 31, 2016 10:08 pm

Hi HHbomb,

Thank you for reporting this issue.
There is a bug preventing to clear textures from maxscript this way..
I can't think of a work around for current version.
This will be fixed in the next release.

That will also allow you to do things like mat.transmission_tex = undefined
(witch might be better than changing the type to none, as that keeps a reference to the texture..)
Thanks
HHbomb
Licensed Customer
Posts: 1377
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

Thanks !
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
Post Reply

Return to “Autodesk 3Ds Max”