Hi Tomasz,
Thanks for reaching out to us. First I'd like to note that according to our Support Procedures we cannot provide you with complete solutions:
We provide code examples but we do not provide full solutions or design applications.
We cannot debug your code for you and instead provide answers to specific problems.
Regarding your question. In short, what you're trying to do here is not easily achievable (if possible at all).
Although, you can manipulate Redshift AOVs as discussed in get the names of redshift multi passes AOV names from the render settings, I'm afraid there's no such functionality exposed for interacting the baking tool itself. This effectively means that you can simulate pressing the "Bake" button in the bakeset attributes using C4D API, but you cannot skip manual interaction in the bake tool. I'd suggest you double checking this on redshift forum as it would be the place with the most concentrated knowledge on this topic.
Regarding your related questions. First, please make sure you're dedicating your threads to a singular question or topic as explained in How to ask questions:
Singular Question: The initial posting of a support topic must contain a singular question. Do not ask ten things at once, that makes it extremely hard to answer topics. Break up your questions into multiple topics. Asking follow-up questions is allowed but they must be bound to the initial subject.
Manipulating data of the baked AOV textures. Trying to adapt them to look like on final render image is an ill-posed problem, as each AOV is some sort of "layer" of the information the renderer uses to create final rendering. I'd suggest you first check the documentation on the AOVs:
Intro to AOVs and
Redshift: Baking. If you still have end-user questions, you're very welcome to ask them on our
Support Center.
To the best of my knowledge using AOVs from the render settings is supposed to work with the Bake tool as long as you use AOV Manager to set them up.
The effect of "green normals" that you observe is likely the unexpected coordinate system for your normal data. Namely, Redshift is always working with objects in worldspace, hence the normal data is also represented the same way. The blueish normal maps are typically those that are expressed in tangent space. Unfortunately there's no built-in AOV that does this for you. To achieve this, you could potentially leverage the "
Store Color To AOV" node for that, although this would require adjusting your node material setup, e.g. like below:
8f2f671d-15d9-437f-b6f3-e77f72169666-image.png
Cheers,
Ilia