Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: Jens on 2017-03-07, 12:35:46

Title: Lightmix conf. messes up when deleting LightSelect element.
Post by: Jens on 2017-03-07, 12:35:46
Hi

Had a couple of LightMix configurations saved so I could load them based on camera shot etc. Worked great. Only problem came when I deleted a LightSelect render element in the middle of the stack (I had 15 LightSelect elements).

After having deleted this, I later loaded the LightMix config and got a totally different looking image.

It was clear that the config file remembers each LightSelect element's value based on how that element is placed in the render elements list and NOT pr each unique render element.

So basically, by deleting my number 2 LightSelect element and then loading in the config file, all the other elements got "moved up" on the list and received wrong values.

Example:

Lightmix config:

I then delete my lightselect element called "Light Spots", load my config and I get this result:


I don't know if a each render element has a unique ID and the value could be tied to that, so even a name change on that element wouldn't mess this up.

Build was the 11-01-2017 daily on max 2016.
Title: Re: Lightmix conf. messes up when deleting LightSelect element.
Post by: Ondra on 2017-03-07, 17:39:19
this is currently by design. I am not sure if there will be better option available - because there is nothing unique that can be used to identify render elements - name can be duplicated
Title: Re: Lightmix conf. messes up when deleting LightSelect element.
Post by: Jens on 2017-03-10, 17:02:42
this is currently by design. I am not sure if there will be better option available - because there is nothing unique that can be used to identify render elements - name can be duplicated

thanks for the reply Ondra, so since deleting a render element isn't "undo"-able, is there a way to fix it if we delete said element?

On loading a  LightSelect.conf, could Corona for example check the current LightSelect "list" against the one in the config file and maybe add a dummy LightSelect to take the place of the passes missing? Thereby avoiding the values to be moved up - I have absolutely no experience with programming, so just trying to get the ball rolling ;)
Title: Re: Lightmix conf. messes up when deleting LightSelect element.
Post by: Ondra on 2017-03-16, 19:49:57
fixed in dailies (as long as the elements have different names)