First time poster here. Have next to zero experience in any programming and python most especially. To make things worse, I am pretty new to c4d in general. But now I have this thing that I really need to implement, so I thought I should ask for help here.
What I'm trying to achieve is a toolset that would let me convert/bake mograph animation with several points (spheres) into keyframes. The parameters that need to be keyframed are position and material color. So far I have the following:
At the heart of this whole toolset is this XPresso that I was given. It lets me copy each object's position (from cloner) to corresponding objects in a null (that all have been created with "Current State to Object" command). It can even copy each object's color from mograph to individual materials (which I create using a script that I managed to cobble together by following a tutorial) for all the objects in the target null. It also assigns the same color to each object's "Display Color" for what it's worth.
Then comes the baking part. I can bake the positions using the nitrobake plugin, so I believe I don't even need to come up with any solution for that. But it won't keyframe the materials. Neither does it bake the display color to keyframes.
I think all that's left to do now is to keyframe the colors. As far as I understand, it should be as simple as reading the materials' color value (coming from the XPresso tag) at each given frame and writing this value to a keyframe, then doing that through all the keyframes. Could anybody please confirm the possibility of achieving that? Any advice on how to achieve this would be greatly appreciated.