Project

General

Profile

Previous Up Next

M3setAnimKey2F
Calculates the animation for the '_top_' sub-tree, at the frame interpolated between the two (floating-point) frames given as parameters.
The interpolation coefficient is expressed as a floating value (0.0 to 1.0).
The only 3D objects from this tree than can be animated are those having an animation node as a child.

I M3setAnimKey2F (
S3d _session_
H3d _top_
F _frame0_
F _frame1_
F _rate_
)
Parameters

_session_
3D Session
_top_
Tree top to be animated
_frame0_
Animation Frame #0
_frame1_
Animation Frame #1
_rate_
Interpolation rate
Return value

0 if successful, otherwise nil