Chaos Corona Forum
Chaos Corona for 3ds Max => [Max] Corona Goodies - User Contributions => Topic started by: g.croitor on 2019-05-16, 16:25:35
-
Hi,
Just wondering if there is a script that allows to convert coronamtl to coronalightmtl?
Best,
George
-
What exactly would such script do?
-
Move maps from diffuse to lightmtl texmap, Useful when have 100 different materials.
-
I am sure some user with maxscript knowledge could help here. Unfortunately I lack it myself.
-
Move maps from diffuse to lightmtl texmap, Useful when have 100 different materials.
here some codes if it is not too late.
(
local objs=
( for i in selection where classof i.material == coronaMtl collect i
)
if objs.count != 0 then
( for i in objs do
( local lightMtl= coronaLightMtl()
local theMap= i.material.texmapdiffuse
i.material= lightMtl
i.material.texmap= theMap
)
)
)
how to: select some objects and run the script
-
What exactly would such script do?
Love it..............