Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/03/2005 at 03:41, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.5 Platform: Windows ; Language(s) : C++ ;
--------- Hi all,
there seems to be something I am generally missing out in the Maxon SDK documentation: I am trying to write several importers/exporters for animation data. I can't however find the neccessary documentation of how to create animation tracks/sequences/keys of diverse data types. The only way to find out is to find solutions in this forum (good forum then!). Sorry for this lengthy claim, but I think Maxon should really improve the documentation of their SDK - current state is below many open source projects!
Here my actual question:
I want to create a parameter animation for the camera field of view (I managed the translation and rotation bits thanks to information found in this forum). What are the magic constants I need for these not well documented descriptors? Any code example welcome.
many many thanks in advance
..from a very frustrated SDK user
Oliver
On 10/04/2005 at 15:11, xxxxxxxx wrote:
The trick to finding the right constants is to know how to match up what's seen in C4D to a .res file in the resource. I admit that the docs could be clearer on this. In this case you're looking for Ocamera.res. In that file you'll find that you want to set CAMERAOBJECT_FOV. So do AllocValueTrack(cam, DescLevel(CAMERAOBJECT_FOV, DTYPE_REAL, MYID)) and the add value keys to animate the FOV.