THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2005 at 23:06, xxxxxxxx wrote:
Cinema 4D Version: 9.1
Platform: Windows ;
Language(s) : C++ ;
i tried to find in Sdk and in this forum the answer to my question: how to get keyframe value from a sequence.
I need to read translation and rotation keyframe value of an object at specified time.
On 02/03/2005 at 23:15, xxxxxxxx wrote:
try to use FindKey() method which comes under BaseSequence class...
On 02/03/2005 at 23:51, xxxxxxxx wrote:
ok, with FindKey or GetFirstKey i have a basekey but how i can read translation and rotation value?
On 03/03/2005 at 00:28, xxxxxxxx wrote:
Once you get BaseKey, use GetTrack() which will return BaseTrack pointer value. Once you get BaseTrack details,
I believe using GetDescriptionID() you should be able to find out what kind of track is it. Try this.
On 03/03/2005 at 11:06, xxxxxxxx wrote:
manage keyframes seem to be very hard in Cinema4D.
I was hoping in a easy method to handle keyframes.
Still i don't understand how i possible to get keyframes value.
On 03/03/2005 at 12:40, xxxxxxxx wrote:
Charles explained it exactly.
The value being modified in the TimeLine for an object (etc.) is specified by its Track (Position.X track, Rotation.B track, and so on). Tracks represent an animatable parameter, keyframes are the values of that parameter at a given time. Sequences are disjoint sets of keyframes on the Track. Simple.
So, in order to get the Position of ObjectX at time T, you need to get ObjectX, get its Position Track, get the Sequence that covers T, and then find a Key at (or near) T and read the Key's value.
On 05/03/2005 at 11:12, xxxxxxxx wrote:
Sorry for delay Kuroyume,
thanks for info, i hope to understand how it work.