AnimationNodeBlendSpace1D

    Blends linearly between two of any number of of any type placed on a virtual axis.

    A resource to add to an AnimationNodeBlendTree.

    This is a virtual axis on which you can add any type of using add_blend_point.

    Outputs the linear blend of the two s closest to the node’s current value.

    Tutorials

    Methods

    void ( AnimationRootNode node, pos, int at_index=-1 )
    get_blend_point_count ( ) const
    get_blend_point_node ( point ) const
    float ( int point ) const
    void ( int point )
    void ( int point, node )
    voidset_blend_point_position ( point, float pos )
    • max_space

    The blend space’s axis’s upper limit for the points’ position. See add_blend_point.


    • min_space
    Default
    Setterset_min_space(value)
    Getterget_min_space()

    The blend space’s axis’s lower limit for the points’ position. See add_blend_point.


    • snap

    Position increment to snap to when moving a point on the axis.


    Default“value”
    Setterset_value_label(value)
    Getterget_value_label()

    Label of the virtual axis of the blend space.

    Method Descriptions


    • get_blend_point_count ( ) const

    Returns the number of points on the blend axis.


    Returns the AnimationNode referenced by the point at index point.


    • get_blend_point_position ( int point ) const

    Returns the position of the point at index point.


    • void remove_blend_point ( point )

    Removes the point at index point from the blend axis.


    • void set_blend_point_node ( int point, node )

    Updates the position of the point at index point on the blend axis.