Cheers, thanks for doing that. Just for the sake of clarity, we're just looking for a really quick and simple way to load in custom ToneMapping setups, mostly just to get the AGX workflow going (which requires two LUTs to be loaded and other things to be present in the stack). But currently this isn't accessible via scripting. That's the goal - just a dead simple script button we can hit to whack a TM stack onto selected cams.
[/quote]
Hi Alex,
Given that you have saved the custom tone mapping to a file (btw it is possible since Corona 12 via maxscript by:CoronaRenderer.CoronaFp.savePostSettings <filepath>
command), you can use this script to load it first to global tonemapping, then copy to selected cameras. This is a quick and simple way, as you mentioned :) Probably the ultimate thing will be a button in toolbar, which adds the two LUTs of yours to selected cameras. For this a bit more complex code is needed.
--Save current global tone mapping, just in case
initColorMap = renderers.current.colormap_pipeline
initColorMapFile = CoronaRenderer.CoronaFp.savePostSettings "path\to\test_post.conf"
--load saved custom config file to global tone mapping
newCoronaMap = CoronaRenderer.CoronaFp.loadPostSettings "path\to\cam_post.conf"
toCopy = renderers.current.colormap_pipeline
--copy to selected CoronaCameras
for cam in selection do (
if classOf cam == CoronaCam then (
cam.colorMappingPipeline = toCopy
cam.colorMappingOverride = true
)
)
just change the paths and it's ready.
Hope this works for you.