Changeset View
Changeset View
Standalone View
Standalone View
node_wrangler.py
| Context not available. | |||||
| # Set brightness of viewer to compensate for Film and CM exposure | # Set brightness of viewer to compensate for Film and CM exposure | ||||
| intensity = 1/context.scene.cycles.film_exposure # Film exposure is a multiplier | intensity = 1/context.scene.cycles.film_exposure # Film exposure is a multiplier | ||||
| intensity /= pow(2, (context.scene.view_settings.exposure)) # CM exposure is measured in stops/EVs (2^x) | intensity /= 2 ** context.scene.view_settings.exposure # CM exposure is measured in stops/EVs (2^x) | ||||
| emission.inputs[1].default_value = intensity | emission.inputs[1].default_value = intensity | ||||
| else: | else: | ||||
| Context not available. | |||||