Previous Up Next

M3setAnimKey2
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 an integer (0 to 255).
The only 3D objects from this tree than can be animated are those having an animation node as a child.

I M3setAnimKey2 (
S3d _session_
H3d _top_
I _frame0_
I _frame1_
I _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