class_animationtreeplayer - vkbsb/godot GitHub Wiki

AnimationTreePlayer

####Inherits: Node ####Category: Core

Brief Description

Animation Player that uses a node graph for the blending.

Member Functions

Numeric Constants

  • NODE_OUTPUT = 0
  • NODE_ANIMATION = 1
  • NODE_ONESHOT = 2
  • NODE_MIX = 3
  • NODE_BLEND2 = 4
  • NODE_BLEND3 = 5
  • NODE_BLEND4 = 6
  • NODE_TIMESCALE = 7
  • NODE_TIMESEEK = 8
  • NODE_TRANSITION = 9

Description

Animation Player that uses a node graph for the blending. This kind of player is very useful when animating character or other skeleton based rigs, because it can combine several animations to form a desired pose.

Member Function Description

add_node

Add a node of a given type in the graph with given id.

node_exists

Check if a node exists (by name).

node_rename

Rename a node in the graph.

node_get_type

Get the node type, will return from NODE_* enum.

node_get_input_count

  • int node_get_input_count ( String id ) const

Return the input count for a given node. Different types of nodes have different amount of inputs.

node_get_input_source

Return the input source for a given node input.

animation_node_set_animation

Set the animation for an animation node.