Remove textures from material

Forums: 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 viewforum.php?f=18

Remove textures from material

Postby HHbomb » Tue Jan 25, 2022 11:41 am

HHbomb Tue Jan 25, 2022 11:41 am
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 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1307
Joined: Wed Jun 30, 2010 8:45 pm

Re: Remove textures from material

Postby neonZorglub » Tue Feb 01, 2022 11:48 am

neonZorglub Tue Feb 01, 2022 11:48 am
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
neonZorglub
OctaneRender Team
OctaneRender Team
 
Posts: 899
Joined: Sun Jul 31, 2016 10:08 pm

Re: Remove textures from material

Postby HHbomb » Tue Feb 01, 2022 3:40 pm

HHbomb Tue Feb 01, 2022 3:40 pm
Thanks !
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
HHbomb
Licensed Customer
Licensed Customer
 
Posts: 1307
Joined: Wed Jun 30, 2010 8:45 pm

Return to Autodesk 3Ds Max


Who is online

Users browsing this forum: No registered users and 17 guests

Fri Apr 26, 2024 11:17 am [ UTC ]