Author Topic: Arranging Lights in Lightmix  (Read 3146 times)

2025-05-02, 12:46:15

Raoulk

  • Active Users
  • **
  • Posts: 5
    • View Profile
Hello Professionals,

I am working on a big interior scene with at least 30 lightselects.
Sometimes I need to add new ones and they end up by the end of the list.

does somebody know of a way to rearrange them without losing the values already inputted?

Thank you
Raoul

2025-05-02, 14:30:51
Reply #1

Aram Avetisyan

  • Corona Team
  • Active Users
  • ****
  • Posts: 897
    • View Profile
Hi,

A new render element is added at the end of the list, I don't think Corona controls that, it's Max thing.
When you add a new lightmix (CShading_LightSelect) layer, other layers should stay intact, unless you re-create the lightmix.

If you do this manually through render elements dialog, old values should stay intact. Just make sure that the light you add to a new lightmix layer is not in another layer (exception is, of course, the rest).
Aram Avetisyan | chaos-corona.com
Chaos Corona QA Specialist | contact us

2025-05-03, 10:36:34
Reply #2

Tom

  • Active Users
  • **
  • Posts: 333
    • View Profile
I'm pretty sure I came across such a tool but I'm not sure as I reinstalled 3ds Max since then and it's no longer installed now.
I'm talking about "Creative Tools": a set of scripts developed by Creative Lighting: https://www.creativelighting.co/archviz-masterclass/
One of these scripts allowed me to rename and rearrange the lights order in the Corona VFB. So far as I remember lights values were not changed.
Maybe you can get in touch with Nikos and see if he's willing to sell you the tool?

2025-05-06, 10:50:53
Reply #3

jrgby

  • Active Users
  • **
  • Posts: 77
    • View Profile
Yes you can rearrange the list without losing values, though it's a slightly fiddly work-around.

Just delete the render element (or multiple) and then Ctrl+Z and it will bring it back at the end of the list with name and values intact (works in Max2025).

In this way you can sort of shuffle them into order.
« Last Edit: 2025-05-06, 11:24:43 by jrgby »

2025-05-06, 16:15:26
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13578
  • Marcin
    • View Profile
Here is a script ChatGPT wrote for me. I didn't thank him to save energy, so let's thank him here.
It can be used to move render elements up and down. You need to re-render to see the effect in the VFB though.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2025-05-06, 19:35:19
Reply #5

LorenzoS

  • Active Users
  • **
  • Posts: 327
    • View Profile
Great maru, very useful, thank you.
The perfection would be  ..see attached image.

2025-05-07, 08:57:33
Reply #6

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13578
  • Marcin
    • View Profile
Feel free to add this as an idea at https://chaoscorona.ideas.aha.io/
We already have this https://chaoscorona.ideas.aha.io/ideas/CMAX-I-111 but the description isn't very detailed, so I think it's fine to start a new idea with proper description of what you would find useful.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2025-05-07, 16:13:04
Reply #7

CharlyRT

  • Active Users
  • **
  • Posts: 163
    • View Profile
Here is a script ChatGPT wrote for me. I didn't thank him to save energy, so let's thank him here.
It can be used to move render elements up and down. You need to re-render to see the effect in the VFB though.

I always find incredible how people manage to receive something useful with ChatGPT, I have used it in many situations with no success
Carlos Rodriguez
RTstudio​
www.instagram.com/rtstudio.archviz/

2025-05-07, 17:24:56
Reply #8

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13578
  • Marcin
    • View Profile
I used one of the paid models (o4-mini-high) with its deep research feature turned on.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2025-05-07, 17:39:03
Reply #9

CharlyRT

  • Active Users
  • **
  • Posts: 163
    • View Profile
I used one of the paid models (o4-mini-high) with its deep research feature turned on.

Ohhhh, I have heard something for that, well thanks for the Script, its pretty useful, the only thing that needs is an scroll bar to adjust the size, I have done it manually.
This is something I had request in 3d Max forums but no luck with Autodesk to improve Render Elements, it needs a redesign, its pretty old.
Carlos Rodriguez
RTstudio​
www.instagram.com/rtstudio.archviz/

2025-05-08, 03:01:47
Reply #10

Tom

  • Active Users
  • **
  • Posts: 333
    • View Profile
The free version of ChatGPT isn't good to create 3ds Max scripts. I've tried it several times with no luck.
Thanks for your advice and the script Maru.

@CharlyRT: would you mind sharing the updated script? I have many render elements and the lightmix isn't accessible as it's too far in the bottom of the list and there's no scroll bar in Maru's script.

2025-05-08, 03:16:08
Reply #11

CharlyRT

  • Active Users
  • **
  • Posts: 163
    • View Profile
@tom
Sure, I also edit it to be macro you can find it as "Render Elements Organizer"
Im trying to add a button to rename elements too but I cannot find a way to do it, the only script that I have found is too old and its not really what I expected
« Last Edit: 2025-05-08, 03:28:37 by CharlyRT »
Carlos Rodriguez
RTstudio​
www.instagram.com/rtstudio.archviz/

2025-05-08, 08:25:37
Reply #12

Tom

  • Active Users
  • **
  • Posts: 333
    • View Profile

2025-05-08, 08:43:48
Reply #13

LorenzoS

  • Active Users
  • **
  • Posts: 327
    • View Profile
The perfection would be  ..see attached image.
what i meant is to be able to group (organize) the elements of the Lightmix. It would be very useful in complex projects.


2025-05-08, 18:04:29
Reply #14

Frood

  • Active Users
  • **
  • Posts: 1997
    • View Profile
    • Rakete GmbH
what i meant is to be able to group (organize) the elements of the Lightmix. It would be very useful in complex projects.

I think that's clear. But you can already do a lot by naming with a prefix and sorting. So let's continue our little sprint here: I have a snippet I call to sort render elements by name and added it to the script (button "Sort"). Additionally added buttons for refresh (re-reading the elements from the scene) and a rename option. Changed layout, added versioning, added some macro event handlers, added icon definition, added dockable option. Did not change category, so it's still to be found at category "RTstudio" as "Render Elements Organizer".

Everyone feel free to further improve/extend it :)


Good Luck

Edit: removed obsolete script


« Last Edit: 2025-05-12, 18:50:19 by Frood »
Never underestimate the power of a well placed level one spell.