1
[Max] I need help! / Re: Light Mix settings in Max Script
« on: 2023-12-29, 20:28:51 »Hi,
Sorry but I'm not sure to understand what you want to do.
Do you want to save/load the individual settings of each light in the scene? Let's say we have a scene with Light_01 (color_01, intensity_01), Light_02 (color_02, intensity_02), Light_03 (color_03, intensity_03), Light_04 (color_04, intensity_04). Are you looking to write a script that would save/load these values into a file?
I'm interested in this as well because, until now, saving these settings in a .conf file and loading them later, for example after having added Light_05 to the scene, would not apply the correct values to the lights.
Yes, thats what I'm trying to do. I'm creating tool witch will load different light mix settings by camera.
There is no direct way to save/load .conf file in max script, as I know.
But you can read files as a string, or even create your own costume .conf file, and edit everything by using these comands:
Code: [Select]
renderers.current.colorMap_lightmixColors
renderers.current.colorMap_lightmixIntensities
But it's way harder to do the same thing with tone mapping settings. Witch is sad...
You have to generate random ID and write OperatorPlugin for each layer, witch is realy ugly way to do satch a simple task...
But currently there is no way to read tone maping .conf file directly. But hopefully it will be possable soon, because it's currently logged as a feature request:
(Internal ID=1007269616)
There is a topic in a forum about it: https://forum.corona-renderer.com/index.php?topic=38445.0