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

fz_anim_node_add_trac

Description

Adds a new track of the given track type to an animation node. If the track is not compatible, it will not be added.

To get a complete list of track types supported by the animation node anim_node, see the fz_anim_node_get_trac_list function. The trac_id identifies the type of track node that is to be added as a child to the given anim_node. Some track types are defined already (for example, FZ_TRAC_TYPE_POS_X).

Other ways of setting keyframes include: fz_anim_node_add_tracs, , .

Path tracks should be added through the function since special options may apply as well as the fact that path tracks require a path object to follow.

Plugin Prototype

fzrt_error_td fz_anim_node_add_trac(

fzrt_int

windex,

fz_anim_node_ptr

anim_node,

fzrt_UUID_td

trac_id,

fzrt_boolean

add_key,

fz_anim_node_ptr *

trac_node )

Parameters

windex [Input]

project window index

anim_node [Input]

animation node

trac_id [Input]

track type of new track

add_key [Input]

whether or not to add a key with the current value

trac_node [Result, Optional]

new track node

Returns

Error codes

Availability

6.1.0.0

Example Files

util_anim_cntl.fsl
util_anim_eval_value.fsl
util_anim_test_color.fsl

Function Set

fz_anim_fset


Defined in

fz_anim_api.h