Thank you @m_magalhaes
Posts made by swever
RE: Baking MoGraph color animation to keyframes.
Thanks for the reply @lasselauch
I think I've already managed to do the same thing that this MographToNulls_Python.c4d does. I will definitely have a look at it but I think it does the same. What I am trying to figure out now is how to bake. I need each object to have a unique material and have each frame of each materials' color keyframed. And it has to be the material color, because what I am working on is an animation for drone show and the tools down the pipeline are parsing this parameter.
Here is an example .c4d that shows all stages that I managed to work out so far: https://wetransfer.com/downloads/cc50d50d6669ef1218535fce8891369920200311165106/26744dba1a0a24a1938cf2af47d668fd20200311165106/839449
Baking MoGraph color animation to keyframes.
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.