Hi
this is working as intended I would say
The View Transform is applied everywhere else.
That is the issue. I cannot generate the same output as C4D with a script.
If I Batch render the scene via commandline or if I start to render the output files via the Picture Viewer.
So either everything else is broken
or it is just that this script render does not work the same way as all other file outputs in Cinema4D.
And I assume the Batch render and the Picture Viewer render work as customers expect it (otherwise you would have fixed it already).
If you render .exr files, then you have an option to "Bake View Transform".
If you render any other file format, this option is unchangeable and always activated (internally).
And for both output types it does not work to bake the View Transform into the file if I try it via script.