CAnimInfo Class Reference

#include <c4d_ctrack.h>

Public Member Functions

 CAnimInfo ()
 

Public Attributes

BaseDocument * doc
 
BaseList2D * op
 
BaseTime otime
 
Float64 xtime
 
Float64 fac
 
Float64 rel
 
const CKey * k1
 
const CKey * k2
 
Int32 k1idx
 
Int32 k2idx
 
Int32 cycle
 
Float64 k1time
 
Float64 k2time
 

Detailed Description

Internal.

Constructor & Destructor Documentation

◆ CAnimInfo()

CAnimInfo ( )

Member Data Documentation

◆ doc

Document.

◆ op

Original object.

◆ otime

BaseTime otime

Original time.

◆ xtime

Float64 xtime

Remapped time. Usually identical to the time delivered by doc->GetTime().
Only if there are loops and/or time curves assigned the time value is remapped into the normal range between first and last key.
It is a float value instead of a BaseTime to avoid resolution/aliasing issues.

◆ fac

Float64 fac

Factor of time between the first and the last key of the track.

◆ rel

Float64 rel

Factor between two keys. Only !=0.0 if k1 != nullptr && k2 !=nullptr.

◆ k1

const CKey* k1

Last key before or at the current time. Can be nullptr.

◆ k2

const CKey* k2

Next key strictly after the current time. Can be nullptr.

◆ k1idx

Int32 k1idx

Key index for k1.

◆ k2idx

Int32 k2idx

Key index for k2.

◆ cycle

Int32 cycle

0 for the range from first key to last key, after last key it is +1, +2,etc. before first key -1, -2, etc.
This takes into account things like time curves and allows to compute the offset of values for tracks with pre or post behavior (for instance looping).

◆ k1time

Float64 k1time

Key time for k1.

◆ k2time

Float64 k2time

Key time for k2.