1
[Max] I need help! / Re: Corona 10 maxscript
« on: 2024-07-08, 09:31:23 »
... and if you don't like that getProperty and setProperty stuff (like me), you can to it as well this way:
Good Luck
Code: [Select]
-- returns undefined if no such operator in stack
fn setSimpleExposure exposurevalue enabled:true = (
pipeline = renderers.current.colorMap_pipeline
while pipeline != undefined do (
if classof pipeline == SimpleExposureOperatorPlugin then exit
pipeline = pipeline.colorMappingOperator_nextOperator
)
if pipeline != undefined then (
pipeline.colorMappingOperator_simpleExposure = exposurevalue
pipeline.colorMappingOperator_enabled = enabled
)
)
-- example calls:
setSimpleExposure 6
setSimpleExposure 2 enabled:false
if (setSimpleExposure 0.12345 enabled:true)==undefined do (
format "No simple exposure operator in stack.\n"
)
Good Luck