Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] General Discussion => Topic started by: NicolasC on 2021-03-16, 15:06:41

Title: Maxscript access to LightMix
Post by: NicolasC on 2021-03-16, 15:06:41
Hello,

Is it possible to define LightMix creation options with Maxscript ? so far, the Corona Maxscript Wiki only shows how to access to Setup Dialog, right ?

Thank you.
Title: Re: Maxscript access to LightMix
Post by: NicolasC on 2021-04-12, 15:07:08
No one ?
I really need to be able to generate LightMix as a prerender script ...

Thanks :)
Title: Re: Maxscript access to LightMix
Post by: clemens_at on 2021-04-12, 15:19:20
can you be more specific, what exactly will this script do?
Title: Re: Maxscript access to LightMix
Post by: NicolasC on 2021-04-12, 16:09:51
Hello,
I need a prerender script that will generate LightMix with only visible lights, removing the previous LightMix setup.
Title: Re: Maxscript access to LightMix
Post by: clemens_at on 2021-04-12, 17:50:40
Code: [Select]
showClass "CShading_LightSelect*.*"
Title: Re: Maxscript access to LightMix
Post by: NicolasC on 2021-04-12, 18:12:12
Ok, thanks, but that's not the specific area I search MXS access for ;)
More about LightMix setup, like enclosed screenshot.
BTW @clemens_at, I answered you by PM.
Title: Re: Maxscript access to LightMix
Post by: Frood on 2021-04-12, 21:23:47
Hi Nicolas,

there is just no further access to the options in that window. You would have to do add/remove (and configure) the REs in the script via Render Element Manager yourself. Depending on what you want to achieve you may also consider using "Render hidden lights" on/off, but when it is about saving (VFB) ram that does not help anything of course.


Good Luck



Title: Re: Maxscript access to LightMix
Post by: NicolasC on 2021-04-12, 22:20:18
Good evening Frood :)

Hmmm that doesn't sounds good for me apparently ... I really need some more automation to smooth my workflow as much as possible. In a nutshell, I use Pulze Scene Manager (& Render Manager FYI) as batch rendering tool, and I really love it, so I need to optimize LightMix creation to avoid too many layers, when my camera is in another area for example, or simply for different furniture arrangements. Obviously, I'd rather avoid splitting this in different scenes, too bothering for me and not very efficient IMHO.
I hope Corona guys will see this subject and will have something to propose :)

Anyway, thanks for trying to help,

Good night :)
Title: Re: Maxscript access to LightMix
Post by: paulkapil08 on 2021-05-17, 13:30:57
I really need to be able to generate LightMix as a prerender script ...
get-mobdro.com (https://get-mobdro.com/home/)
Title: Re: Maxscript access to LightMix
Post by: NicolasC on 2021-05-17, 15:19:36
I really need to be able to generate LightMix as a prerender script ...
Hello Paulkapil08,
Yes, so did I, and Clemens_at helped me with that ! you can find enclosed the script ;)