Author Topic: CoronaColor - maxscript  (Read 295 times)

2024-10-28, 17:39:43

James Vella

  • Active Users
  • **
  • Posts: 625
    • View Profile
Is there any way to access the "Result Color Preview" color as RGB?

My current workaround to access HDR, HEX etc is by using separate functions to do the inverse calculations, but it would be just much cleaner if I could just run the .color through (similar to vray).


(Apologies I posted this in the wrong section)


2024-10-30, 16:17:15
Reply #1

James Vella

  • Active Users
  • **
  • Posts: 625
    • View Profile
Can any devs chime in on this one? I have a feeling this is not exposed to maxscript...

2024-10-31, 09:03:09
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13154
  • Marcin
    • View Profile
Hi James, the answer from our dev team is that it is not possible to get these values via maxscript, sorry. If this is crucial for you, you can request it through the ideas portal: https://chaoscorona.ideas.aha.io/
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2024-10-31, 14:27:58
Reply #3

James Vella

  • Active Users
  • **
  • Posts: 625
    • View Profile
Thanks Maru, I may do that.

As I said above I currently have functions for all the color formulas, the only one I cant work out is the HDR Rendering Color Space formula. Any tips/math on how this is being calculated?

2024-11-05, 15:11:56
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13154
  • Marcin
    • View Profile
the only one I cant work out is the HDR Rendering Color Space formula. Any tips/math on how this is being calculated?

Can you explain what exactly you mean by "HDR Rendering Color Space formula"? What exactly would you like to calculate based on what?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2024-11-05, 15:53:16
Reply #5

James Vella

  • Active Users
  • **
  • Posts: 625
    • View Profile
Based on the "Result Color Preview". I want access to the "Result Color Preview" RGB values. For example in vray when changing the type to temperature or hex etc, you can just grab the #color since it gets updated when those values change. In Corona the #color is only related to "Solid color", thus I need a different formula to inverse each one back to RGB values. But I cant work out what formula for "Rendering".

For example for "Solid HDR color".

-- RGB Primaries: sRGB
Quote
colorRed = pow colorRed 2.2 * 255.0
colorGreen = pow colorGreen 2.2 * 255.0
colorBlue = pow colorBlue 2.2 * 255.0

-- RGB Primaries: Linear
Quote
colorRed = colorRed * 255.0
colorGreen = colorGreen * 255.0
colorBlue = colorBlue * 255.0

-- RGB Primaries: Rendering
?
« Last Edit: 2024-11-05, 15:56:54 by James Vella »

Yesterday at 14:51:46
Reply #6

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13154
  • Marcin
    • View Profile
Hi, I will try to get the answers and share them here, but it may take some time. Please stay tuned.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

Yesterday at 18:33:48
Reply #7

James Vella

  • Active Users
  • **
  • Posts: 625
    • View Profile
Great thanks!