Currently it appears as though we’re missing a line of code needed to bake view transforms.
Using C4D 2026.1 & RS 2026.2, if I render through Deadline with “Bake View Transform” enabled I don’t get correct gamma, but if I render through CommandLine via my own batch file (no deadline), I do get correct gamma.
From a dev:
data.SetBool(RDATA_BAKE_OCIO_VIEW_TRANSFORM_RENDER, false);
If someone can tell me which file to place it in & where I should place it, that’d be swell!
Thanks,
Luke
For anyone curious, a fix was made by making the following addition to Cinema4dbatch.py
# LUKE FIX
# This prevents the double-gamma shift in C4D 2025/2026+
deadlineC4DThreadScript.append( " if hasattr(c4d, 'RDATA_BAKE_OCIO_VIEW_TRANSFORM_RENDER'):" )
deadlineC4DThreadScript.append( " self.renderData[c4d.RDATA_BAKE_OCIO_VIEW_TRANSFORM_RENDER] = False" )
# END LUKE FIX
EDIT: A developer commented on my comment in the code:
“This attribute does not force any view transform baking. All this changes if it’s set to true, which is the default, is that the Render Engine is supposed to provide view transformed results, instead of c4d handling it on export”
1 Like