On 27/01/2015 at 19:19, xxxxxxxx wrote:
Cinema 4D Version: 15
Platform: Windows ;
Language(s) : C++ ;
I'm currently implementing an importer for C4D files into my application that supports animation. The problem I'm currently facing, is that I can't get animation data for objects like primitives.
The thing is... my application doesn't support the original Cinema primitives, so I return false in functions like AlienPrimitiveObjectData::Execute, so I can get a call to AlienPolygonObjectData::Execute. I see my object's keyframes in AlienPrimitiveObjectData::Execute but not in AlienPolygonObjectData::Execute, so I got an idea:
why not reading the animation data in AlienPrimitiveObjectData::Execute, then return false there, and wait for the AlienPolygonObjectData::Execute to apply those keyframes to my polygon object?
The problem with this, is that I have no way of relating the object from AlienPrimitiveObjectData::Execute to the object from AlienPolygonObjectData::Execute.
Is there some kind of unique id I can look at? Is this even possible, this way, or any other?