Get Value from Light Meter


#1

Hi! Fairly new to MaxScript but getting along fine for most parts.

However, I have just started exploring Light Meters (using 3dsMax 2017 since it’s not available in later versions).

What I want to do is to calculate the value of the meter in the script (rather in the viewport), and then use that value for further scripting.

Example, i either wanna take the value from my Light Meter called l and put it in a if command
(if l.[value] < 50 then …)
or, i want to use that value in another part of the script
(box.height = [lvalue])

Autodesk help gives me the command LightMeterManager.calculateMeters index useRenderTimes useRenderSettings

Not entirely sure how to translate this into a value since I am a beginner still. Anyone has worked with Light Meters before and can help me out so I can keep developing my script?

Thank you!