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

Title: CoronaMtl to CoronaLightMtl Script
Post 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
Title: Re: CoronaMtl to CoronaLightMtl Script
Post by: maru on 2019-05-16, 16:33:50
What exactly would such script do?
Title: Re: CoronaMtl to CoronaLightMtl Script
Post by: g.croitor on 2019-05-16, 16:36:53
Move maps from diffuse to lightmtl texmap, Useful when have 100 different materials.
Title: Re: CoronaMtl to CoronaLightMtl Script
Post by: maru on 2019-05-17, 15:59:31
I am sure some user with maxscript knowledge could help here. Unfortunately I lack it myself.
Title: Re: CoronaMtl to CoronaLightMtl Script
Post by: Christa Noel on 2019-05-24, 13:52:35
Move maps from diffuse to lightmtl texmap, Useful when have 100 different materials.
here some codes if it is not too late.
Code: [Select]
(
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
Title: Re: CoronaMtl to CoronaLightMtl Script
Post by: Philip kelly on 2019-05-24, 15:10:37
What exactly would such script do?

Love it..............