Page 1 of 1

Remove textures from material

Posted: Tue Jan 25, 2022 11:41 am
by HHbomb
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.

Re: Remove textures from material

Posted: Tue Feb 01, 2022 11:48 am
by neonZorglub
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

Re: Remove textures from material

Posted: Tue Feb 01, 2022 3:40 pm
by HHbomb
Thanks !