Is there a script to scale luminance?

I'm know nothing of DS scripting, so please tell me if this is a nonsense idea.

I want to export HDR output to other applications, but default settings from Iray don't produce usable data.  Image attached.  I can assemble a scene built from Stonemason's Sci-Fi Kit, pop in Gothy Punk Victoria 8 HD, and render an Iray image that looks pretty adequate as a tone-mapped TIFF with an exposure value of 13.  When I bring in the corresponding EXR into Adobe AE, it's not so good.  Everything's way overexposed, and light sources simply overflow into useless NAN's.  Post processing the image to bring levels down still fails to recover meaningful values from the light source pixels.  However, if I seek out everything in the scene that emits light and reduce their luminances (in this case by 10,000), then the EXR pixels fall into a recognizable range, and lowering the exposure value in the tone mapping tab to 0 will give the TIFF image a reasonable appearance, too.

This isn't difficult in a simple scene with a handful of emitters, but a heavy scene with thousands of surfaces to manage becomes unwieldy.  Here's my imaginary script idea.  Please tell me if anything like it exists.  It would go like this.

  • I would select the objects in my scene I want processed, most likely all of them.
  • I would launch the script.
  • The script would have a field where I must enter a floating-point number.
  • There would be a checkbox where I could opt to also process the environment intensity.
  • I would click the "Go" button.
  • The script would search all selected objects to find surfaces with an emission value.
  • It would change the luminance of those surfaces, multiplying them by the number I entered.
  • It would do the same for all selected light objects,
  • and it would change the environment intensity in the same way, if the checkbox was selected.

Such a script would be a colossal time saver for me.  Does anybody know of one?  If there aren't any, is there a scripting guru who can give guidance, or who can put together a basic one?  I bet others besides me could find uses for it.  Any help is appreciated.  Thanks for reading.

Hallelujah!
Disciple

LuminanceCompared.jpg
864 x 648 - 181K

Comments

Sign In or Register to comment.