Author Topic: CoronaMtl to CoronaLightMtl Script  (Read 5349 times)

2019-05-16, 16:25:35

g.croitor

  • Active Users
  • **
  • Posts: 18
    • View Profile
Hi,

Just wondering if there is a script that allows to convert coronamtl to coronalightmtl?

Best,
George

2019-05-16, 16:33:50
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12711
  • Marcin
    • View Profile
What exactly would such script do?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-05-16, 16:36:53
Reply #2

g.croitor

  • Active Users
  • **
  • Posts: 18
    • View Profile
Move maps from diffuse to lightmtl texmap, Useful when have 100 different materials.

2019-05-17, 15:59:31
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12711
  • Marcin
    • View Profile
I am sure some user with maxscript knowledge could help here. Unfortunately I lack it myself.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-05-24, 13:52:35
Reply #4

Christa Noel

  • Active Users
  • **
  • Posts: 911
  • God bless us everyone
    • View Profile
    • dionch.studio
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

2019-05-24, 15:10:37
Reply #5

Philip kelly

  • Active Users
  • **
  • Posts: 513
    • View Profile
    • Sketchrender
What exactly would such script do?

Love it..............
Dell Precision T7910