formZ SDK | 5.0 API Reference | Project | Modeling | Animation

# FZ_ANIM_MAP_FRAME_2_TIME

Description

Maps a frame to a time (in seconds). This maps a frame to its "starting" time. A frame spans a length of time, a time value is an instantaneous point in time. Therefore sometimes, when converting from frame to time, the time at the beginning of the frame is desired, and sometimes the time at the end of the frame is desired. Add 1 when necessary.

Plugin Prototype

#define FZ_ANIM_MAP_FRAME_2_TIME( frame, fps)

Parameters

fzrt_int frame [Input]

frame number.

double fps [Input]

frames per second.

Returns

returns the start time (in seconds) of the input frame.

Availability

6.1.0.0

Example Files

util_anim_eval_value.fsl

Defined in

fz_anim_api.h