formZ SDK | 5.0 API Reference | Project | Modeling | Animation
Description
Moves the given animation node to the new parent. If the animation node is
an animated entity with coordinates, then the maintain_loc flag will be used.
If maintain_loc is TRUE, then its coordinates will be adjusted with respect
to its new parent so as to keep the same apparent location. If FALSE,
its coordinates will remain unchanged so the entity will appear to "jump" to its
new parent's coordinate .
Plugin Prototype
fzrt_error_td fz_anim_node_change_pos(
fzrt_int | windex, |
anim_node, | |
new_parent, | |
maintain_loc ) |
Parameters
windex [Input]
project window index
anim_node [Input]
animation node
new_parent [Input]
new parent node, or NULL for root
maintain_loc [Input]
whether or not to keep the animation entity in its apparent location. If TRUE, its coordinates will be adjusted with respect to its new parent so as to keep the same apparent location. If FALSE, its coordinates will remain unchanged so the object will appear to "jump" to its new parent coordinate . When adding to the root, this option is ignored.
Returns
Error codes
Availability
6.1.0.0
Example Files
util_anim_change_grup.fsl
util_anim_dfrm.fsl
util_anim_grup_tree.fsl
Function Set
Defined in