AnimationNodeBlendSpace1D

    Category: Core

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

    Properties

    voidadd_blend_point ( node, float pos, at_index=-1 )
    int ( ) const
    AnimationRootNode ( int point ) const
    get_blend_point_position ( point ) const
    voidremove_blend_point ( point )
    voidset_blend_point_node ( point, AnimationRootNode node )
    void ( int point, pos )

    Description

    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 closest to the node’s current value.

    • max_space

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


    • min_space
    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.


    Setterset_value_label(value)
    Getterget_value_label()

    Label of the virtual axis of the blend space.

    Method Descriptions

    • void add_blend_point ( node, float pos, at_index=-1 )

    Add a new point that represents a node on the virtual axis at a given position set by pos. You can insert it at a specific index using the argument. If you use the default value for at_index , the point is inserted at the end of the blend points array.



    Returns the AnimationNode referenced by the point at index point.


    • float get_blend_point_position ( point ) const

    Returns the position of the point at index .


    • void remove_blend_point ( int point )

    Removes the point at index point from the blend axis.


    Changes the AnimationNode referenced by the point at index point.


    • void set_blend_point_position ( point, float pos )

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