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

# fz_anim_node_add_cntl

Description

Adds a new controller of the given controller type to an animation node's controller list.
cntl_id should be one of the controller types (for example, FZ_ANIM_CNTL_SINE).

Plugin Prototype

fzrt_error_td fz_anim_node_add_cntl(

fzrt_int | windex,
fz_anim_node_ptr | anim_node,
fzrt_UUID_td | cntl_id,
fzrt_boolean | add_default_key,
fz_anim_node_ptr * | cntl_node )

Parameters

windex [Input]

project window index

anim_node [Input]

animation node (must be a track node)

cntl_id [Input]

controller type of new controller

add_default_key [Input]

whether or not to add a key with the default value

cntl_node [Result]

new controller node

Returns

Error codes

Availability

6.1.0.0

Example Files

util_anim_cntl.fsl
util_anim_eval_value.fsl

Function Set

fz_anim_fset

Defined in

fz_anim_api.h