THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/08/2007 at 03:19, xxxxxxxx wrote:
Cinema 4D Version: 10.111
Platform: Windows ;
Language(s) : C++ ;
I want my expression tag to create keyframes for an object linked in the attribute manager. So while the animation is playing, the expression should not only work on the object the tag is attached to, but also create keyframes for another object.
Is there any example code available about how to create tracks and keyframes for specific object attributes in R10.1?
Thanks for any examples, links and tipps!
On 30/08/2007 at 03:19, xxxxxxxx wrote:
Look at the Morphmixer example in the SDK for how to create tracks. It's in the CreateKey() function of the Morphmixer example. You should also find some code snippets through the forum search.
On 30/08/2007 at 03:34, xxxxxxxx wrote:
Thanks, Matthias! I'll look at the Morphmixer example
On 30/08/2007 at 14:06, xxxxxxxx wrote:
OK, that works pretty fine for REAL values.
But how do I set keyframes for global position and global rotation of the camera?
On 31/08/2007 at 01:10, xxxxxxxx wrote:
Here is how you would allocate a Vector track for the position for example:
On 31/08/2007 at 01:16, xxxxxxxx wrote:
Yes, that's exactly what I was looking for, thanks!
Where can I find all these IDs like VECTOR_X? Are they in the .h/.res file of BaseObject or OBase? E.g. where Do I have to search to find out how to set keys for rotation, too?
Please don't misunderstand me. I am not looking for complete solutions to all my problems. More for general information on how to access a problem and where to search for solutions So I can help myself in the future.
On 31/08/2007 at 06:12, xxxxxxxx wrote:
You use the same VECTOR_X/Y/Z for rotations (H/P/B) but use ID_BASEOBJECT_ROTATION in place of ID_BASEOBJECT_POSITION.
VECTOR_X/Y/Z are defined in resource:_api:c4d_libs:lib_description.h. Just add the c4d_libs to your include search path (if not already there).
On 31/08/2007 at 08:37, xxxxxxxx wrote:
Works perfectly. Thank you guys again!