Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Jpjapers on 2025-09-03, 12:34:28

Title: Is there a way outside of the CIE to read lightmix layer data?
Post by: Jpjapers on 2025-09-03, 12:34:28
Im looking to write a photoshop script to use when bringing EXR(CXR) into photoshop to automate the setup of lightmix layers to match what we see in the CIE. This is so that people downstream in the pipeline are able to just open the exr and have it match what we were seeing by running the script. I want to be able to read the lightmix layer data such as intensity, tint and state. I know this is contained within the cxr files but im not sure how.
This is more a 'for the devs' question but are there any tools out there that can read this data from the file?

I thought it could be done just using a plain old conf file but they dont contain the layer name and when importing the exr into photoshop the layers revert to alphabetical order instead of the order from the lightmix panel.
Title: Re: Is there a way outside of the CIE to read lightmix layer data?
Post by: Avi on 2025-09-03, 18:03:56
You can use python to get this information. Please find a simple script attached and a video showing how you can get the info out of a CXR+Conf file.

I hope this is what you were looking for. You will need to install python in your system to be able to run the script. If I mis understood you, let me know, I will try to get more info from our devs for you.

The solution i gave before will not work out of the box. I will try to find more about from our devs and update you.

Meanwhile, you can add your feature request here: https://chaoscorona.ideas.aha.io/ideas

Title: Re: Is there a way outside of the CIE to read lightmix layer data?
Post by: Jpjapers on 2025-09-04, 10:31:37
You can use python to get this information. Please find a simple script attached and a video showing how you can get the info out of a CXR+Conf file.

I hope this is what you were looking for. You will need to install python in your system to be able to run the script. If I mis understood you, let me know, I will try to get more info from our devs for you.

The solution i gave before will not work out of the box. I will try to find more about from our devs and update you.

Meanwhile, you can add your feature request here: https://chaoscorona.ideas.aha.io/ideas

I ended up using python to extract the data with the openexr library anyway but thank you! I have added an idea already about including lightmix layer names in the config files.

Title: Re: Is there a way outside of the CIE to read lightmix layer data?
Post by: Avi on 2025-09-05, 18:02:54
Hi, Just an update from our devs that it can be extracted using openexr library. So it is the right way. I hope this helps.