|
@@ -234,7 +234,7 @@ Enumerations
|
|
|
|
|
|
.. rst-class:: classref-enumeration
|
|
|
|
|
|
-enum **TrackType**:
|
|
|
+enum **TrackType**: :ref:`🔗<enum_Animation_TrackType>`
|
|
|
|
|
|
.. _class_Animation_constant_TYPE_VALUE:
|
|
|
|
|
@@ -316,7 +316,7 @@ Animation tracks play animations in other :ref:`AnimationPlayer<class_AnimationP
|
|
|
|
|
|
.. rst-class:: classref-enumeration
|
|
|
|
|
|
-enum **InterpolationType**:
|
|
|
+enum **InterpolationType**: :ref:`🔗<enum_Animation_InterpolationType>`
|
|
|
|
|
|
.. _class_Animation_constant_INTERPOLATION_NEAREST:
|
|
|
|
|
@@ -370,7 +370,7 @@ Cubic interpolation with shortest path rotation.
|
|
|
|
|
|
.. rst-class:: classref-enumeration
|
|
|
|
|
|
-enum **UpdateMode**:
|
|
|
+enum **UpdateMode**: :ref:`🔗<enum_Animation_UpdateMode>`
|
|
|
|
|
|
.. _class_Animation_constant_UPDATE_CONTINUOUS:
|
|
|
|
|
@@ -404,7 +404,7 @@ Same as :ref:`UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>` but
|
|
|
|
|
|
.. rst-class:: classref-enumeration
|
|
|
|
|
|
-enum **LoopMode**:
|
|
|
+enum **LoopMode**: :ref:`🔗<enum_Animation_LoopMode>`
|
|
|
|
|
|
.. _class_Animation_constant_LOOP_NONE:
|
|
|
|
|
@@ -438,7 +438,7 @@ Repeats playback and reverse playback at both ends of the animation.
|
|
|
|
|
|
.. rst-class:: classref-enumeration
|
|
|
|
|
|
-enum **LoopedFlag**:
|
|
|
+enum **LoopedFlag**: :ref:`🔗<enum_Animation_LoopedFlag>`
|
|
|
|
|
|
.. _class_Animation_constant_LOOPED_FLAG_NONE:
|
|
|
|
|
@@ -472,7 +472,7 @@ This flag indicates that the animation has reached the start of the animation an
|
|
|
|
|
|
.. rst-class:: classref-enumeration
|
|
|
|
|
|
-enum **FindMode**:
|
|
|
+enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
|
|
|
|
|
.. _class_Animation_constant_FIND_MODE_NEAREST:
|
|
|
|
|
@@ -511,7 +511,7 @@ Property Descriptions
|
|
|
|
|
|
.. rst-class:: classref-property
|
|
|
|
|
|
-:ref:`bool<class_bool>` **capture_included** = ``false``
|
|
|
+:ref:`bool<class_bool>` **capture_included** = ``false`` :ref:`🔗<class_Animation_property_capture_included>`
|
|
|
|
|
|
.. rst-class:: classref-property-setget
|
|
|
|
|
@@ -527,7 +527,7 @@ Returns ``true`` if the capture track is included. This is a cached readonly val
|
|
|
|
|
|
.. rst-class:: classref-property
|
|
|
|
|
|
-:ref:`float<class_float>` **length** = ``1.0``
|
|
|
+:ref:`float<class_float>` **length** = ``1.0`` :ref:`🔗<class_Animation_property_length>`
|
|
|
|
|
|
.. rst-class:: classref-property-setget
|
|
|
|
|
@@ -546,7 +546,7 @@ The total length of the animation (in seconds).
|
|
|
|
|
|
.. rst-class:: classref-property
|
|
|
|
|
|
-:ref:`LoopMode<enum_Animation_LoopMode>` **loop_mode** = ``0``
|
|
|
+:ref:`LoopMode<enum_Animation_LoopMode>` **loop_mode** = ``0`` :ref:`🔗<class_Animation_property_loop_mode>`
|
|
|
|
|
|
.. rst-class:: classref-property-setget
|
|
|
|
|
@@ -563,7 +563,7 @@ Determines the behavior of both ends of the animation timeline during animation
|
|
|
|
|
|
.. rst-class:: classref-property
|
|
|
|
|
|
-:ref:`float<class_float>` **step** = ``0.0333333``
|
|
|
+:ref:`float<class_float>` **step** = ``0.0333333`` :ref:`🔗<class_Animation_property_step>`
|
|
|
|
|
|
.. rst-class:: classref-property-setget
|
|
|
|
|
@@ -585,7 +585,7 @@ Method Descriptions
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **add_track**\ (\ type\: :ref:`TrackType<enum_Animation_TrackType>`, at_position\: :ref:`int<class_int>` = -1\ )
|
|
|
+:ref:`int<class_int>` **add_track**\ (\ type\: :ref:`TrackType<enum_Animation_TrackType>`, at_position\: :ref:`int<class_int>` = -1\ ) :ref:`🔗<class_Animation_method_add_track>`
|
|
|
|
|
|
Adds a track to the Animation.
|
|
|
|
|
@@ -597,7 +597,7 @@ Adds a track to the Animation.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`StringName<class_StringName>` **animation_track_get_key_animation**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`StringName<class_StringName>` **animation_track_get_key_animation**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_animation_track_get_key_animation>`
|
|
|
|
|
|
Returns the animation name at the key identified by ``key_idx``. The ``track_idx`` must be the index of an Animation Track.
|
|
|
|
|
@@ -609,7 +609,7 @@ Returns the animation name at the key identified by ``key_idx``. The ``track_idx
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **animation_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, animation\: :ref:`StringName<class_StringName>`\ )
|
|
|
+:ref:`int<class_int>` **animation_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, animation\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_Animation_method_animation_track_insert_key>`
|
|
|
|
|
|
Inserts a key with value ``animation`` at the given ``time`` (in seconds). The ``track_idx`` must be the index of an Animation Track.
|
|
|
|
|
@@ -621,7 +621,7 @@ Inserts a key with value ``animation`` at the given ``time`` (in seconds). The `
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **animation_track_set_key_animation**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, animation\: :ref:`StringName<class_StringName>`\ )
|
|
|
+|void| **animation_track_set_key_animation**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, animation\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_Animation_method_animation_track_set_key_animation>`
|
|
|
|
|
|
Sets the key identified by ``key_idx`` to value ``animation``. The ``track_idx`` must be the index of an Animation Track.
|
|
|
|
|
@@ -633,7 +633,7 @@ Sets the key identified by ``key_idx`` to value ``animation``. The ``track_idx``
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`float<class_float>` **audio_track_get_key_end_offset**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`float<class_float>` **audio_track_get_key_end_offset**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_audio_track_get_key_end_offset>`
|
|
|
|
|
|
Returns the end offset of the key identified by ``key_idx``. The ``track_idx`` must be the index of an Audio Track.
|
|
|
|
|
@@ -647,7 +647,7 @@ End offset is the number of seconds cut off at the ending of the audio stream.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`float<class_float>` **audio_track_get_key_start_offset**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`float<class_float>` **audio_track_get_key_start_offset**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_audio_track_get_key_start_offset>`
|
|
|
|
|
|
Returns the start offset of the key identified by ``key_idx``. The ``track_idx`` must be the index of an Audio Track.
|
|
|
|
|
@@ -661,7 +661,7 @@ Start offset is the number of seconds cut off at the beginning of the audio stre
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Resource<class_Resource>` **audio_track_get_key_stream**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`Resource<class_Resource>` **audio_track_get_key_stream**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_audio_track_get_key_stream>`
|
|
|
|
|
|
Returns the audio stream of the key identified by ``key_idx``. The ``track_idx`` must be the index of an Audio Track.
|
|
|
|
|
@@ -673,7 +673,7 @@ Returns the audio stream of the key identified by ``key_idx``. The ``track_idx``
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **audio_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, stream\: :ref:`Resource<class_Resource>`, start_offset\: :ref:`float<class_float>` = 0, end_offset\: :ref:`float<class_float>` = 0\ )
|
|
|
+:ref:`int<class_int>` **audio_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, stream\: :ref:`Resource<class_Resource>`, start_offset\: :ref:`float<class_float>` = 0, end_offset\: :ref:`float<class_float>` = 0\ ) :ref:`🔗<class_Animation_method_audio_track_insert_key>`
|
|
|
|
|
|
Inserts an Audio Track key at the given ``time`` in seconds. The ``track_idx`` must be the index of an Audio Track.
|
|
|
|
|
@@ -687,7 +687,7 @@ Inserts an Audio Track key at the given ``time`` in seconds. The ``track_idx`` m
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`bool<class_bool>` **audio_track_is_use_blend**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`bool<class_bool>` **audio_track_is_use_blend**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_audio_track_is_use_blend>`
|
|
|
|
|
|
Returns ``true`` if the track at ``track_idx`` will be blended with other animations.
|
|
|
|
|
@@ -699,7 +699,7 @@ Returns ``true`` if the track at ``track_idx`` will be blended with other animat
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **audio_track_set_key_end_offset**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, offset\: :ref:`float<class_float>`\ )
|
|
|
+|void| **audio_track_set_key_end_offset**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, offset\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Animation_method_audio_track_set_key_end_offset>`
|
|
|
|
|
|
Sets the end offset of the key identified by ``key_idx`` to value ``offset``. The ``track_idx`` must be the index of an Audio Track.
|
|
|
|
|
@@ -711,7 +711,7 @@ Sets the end offset of the key identified by ``key_idx`` to value ``offset``. Th
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **audio_track_set_key_start_offset**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, offset\: :ref:`float<class_float>`\ )
|
|
|
+|void| **audio_track_set_key_start_offset**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, offset\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Animation_method_audio_track_set_key_start_offset>`
|
|
|
|
|
|
Sets the start offset of the key identified by ``key_idx`` to value ``offset``. The ``track_idx`` must be the index of an Audio Track.
|
|
|
|
|
@@ -723,7 +723,7 @@ Sets the start offset of the key identified by ``key_idx`` to value ``offset``.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **audio_track_set_key_stream**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, stream\: :ref:`Resource<class_Resource>`\ )
|
|
|
+|void| **audio_track_set_key_stream**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, stream\: :ref:`Resource<class_Resource>`\ ) :ref:`🔗<class_Animation_method_audio_track_set_key_stream>`
|
|
|
|
|
|
Sets the stream of the key identified by ``key_idx`` to value ``stream``. The ``track_idx`` must be the index of an Audio Track.
|
|
|
|
|
@@ -735,7 +735,7 @@ Sets the stream of the key identified by ``key_idx`` to value ``stream``. The ``
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **audio_track_set_use_blend**\ (\ track_idx\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ )
|
|
|
+|void| **audio_track_set_use_blend**\ (\ track_idx\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_Animation_method_audio_track_set_use_blend>`
|
|
|
|
|
|
Sets whether the track will be blended with other animations. If ``true``, the audio playback volume changes depending on the blend value.
|
|
|
|
|
@@ -747,7 +747,7 @@ Sets whether the track will be blended with other animations. If ``true``, the a
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Vector2<class_Vector2>` **bezier_track_get_key_in_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`Vector2<class_Vector2>` **bezier_track_get_key_in_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_bezier_track_get_key_in_handle>`
|
|
|
|
|
|
Returns the in handle of the key identified by ``key_idx``. The ``track_idx`` must be the index of a Bezier Track.
|
|
|
|
|
@@ -759,7 +759,7 @@ Returns the in handle of the key identified by ``key_idx``. The ``track_idx`` mu
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Vector2<class_Vector2>` **bezier_track_get_key_out_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`Vector2<class_Vector2>` **bezier_track_get_key_out_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_bezier_track_get_key_out_handle>`
|
|
|
|
|
|
Returns the out handle of the key identified by ``key_idx``. The ``track_idx`` must be the index of a Bezier Track.
|
|
|
|
|
@@ -771,7 +771,7 @@ Returns the out handle of the key identified by ``key_idx``. The ``track_idx`` m
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`float<class_float>` **bezier_track_get_key_value**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`float<class_float>` **bezier_track_get_key_value**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_bezier_track_get_key_value>`
|
|
|
|
|
|
Returns the value of the key identified by ``key_idx``. The ``track_idx`` must be the index of a Bezier Track.
|
|
|
|
|
@@ -783,7 +783,7 @@ Returns the value of the key identified by ``key_idx``. The ``track_idx`` must b
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **bezier_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, value\: :ref:`float<class_float>`, in_handle\: :ref:`Vector2<class_Vector2>` = Vector2(0, 0), out_handle\: :ref:`Vector2<class_Vector2>` = Vector2(0, 0)\ )
|
|
|
+:ref:`int<class_int>` **bezier_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, value\: :ref:`float<class_float>`, in_handle\: :ref:`Vector2<class_Vector2>` = Vector2(0, 0), out_handle\: :ref:`Vector2<class_Vector2>` = Vector2(0, 0)\ ) :ref:`🔗<class_Animation_method_bezier_track_insert_key>`
|
|
|
|
|
|
Inserts a Bezier Track key at the given ``time`` in seconds. The ``track_idx`` must be the index of a Bezier Track.
|
|
|
|
|
@@ -797,7 +797,7 @@ Inserts a Bezier Track key at the given ``time`` in seconds. The ``track_idx`` m
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`float<class_float>` **bezier_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`\ ) |const|
|
|
|
+:ref:`float<class_float>` **bezier_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`\ ) |const| :ref:`🔗<class_Animation_method_bezier_track_interpolate>`
|
|
|
|
|
|
Returns the interpolated value at the given ``time`` (in seconds). The ``track_idx`` must be the index of a Bezier Track.
|
|
|
|
|
@@ -809,7 +809,7 @@ Returns the interpolated value at the given ``time`` (in seconds). The ``track_i
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **bezier_track_set_key_in_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, in_handle\: :ref:`Vector2<class_Vector2>`, balanced_value_time_ratio\: :ref:`float<class_float>` = 1.0\ )
|
|
|
+|void| **bezier_track_set_key_in_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, in_handle\: :ref:`Vector2<class_Vector2>`, balanced_value_time_ratio\: :ref:`float<class_float>` = 1.0\ ) :ref:`🔗<class_Animation_method_bezier_track_set_key_in_handle>`
|
|
|
|
|
|
Sets the in handle of the key identified by ``key_idx`` to value ``in_handle``. The ``track_idx`` must be the index of a Bezier Track.
|
|
|
|
|
@@ -821,7 +821,7 @@ Sets the in handle of the key identified by ``key_idx`` to value ``in_handle``.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **bezier_track_set_key_out_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, out_handle\: :ref:`Vector2<class_Vector2>`, balanced_value_time_ratio\: :ref:`float<class_float>` = 1.0\ )
|
|
|
+|void| **bezier_track_set_key_out_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, out_handle\: :ref:`Vector2<class_Vector2>`, balanced_value_time_ratio\: :ref:`float<class_float>` = 1.0\ ) :ref:`🔗<class_Animation_method_bezier_track_set_key_out_handle>`
|
|
|
|
|
|
Sets the out handle of the key identified by ``key_idx`` to value ``out_handle``. The ``track_idx`` must be the index of a Bezier Track.
|
|
|
|
|
@@ -833,7 +833,7 @@ Sets the out handle of the key identified by ``key_idx`` to value ``out_handle``
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **bezier_track_set_key_value**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, value\: :ref:`float<class_float>`\ )
|
|
|
+|void| **bezier_track_set_key_value**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, value\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Animation_method_bezier_track_set_key_value>`
|
|
|
|
|
|
Sets the value of the key identified by ``key_idx`` to the given value. The ``track_idx`` must be the index of a Bezier Track.
|
|
|
|
|
@@ -845,7 +845,7 @@ Sets the value of the key identified by ``key_idx`` to the given value. The ``tr
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **blend_shape_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, amount\: :ref:`float<class_float>`\ )
|
|
|
+:ref:`int<class_int>` **blend_shape_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, amount\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Animation_method_blend_shape_track_insert_key>`
|
|
|
|
|
|
Inserts a key in a given blend shape track. Returns the key index.
|
|
|
|
|
@@ -857,7 +857,7 @@ Inserts a key in a given blend shape track. Returns the key index.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`float<class_float>` **blend_shape_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const|
|
|
|
+:ref:`float<class_float>` **blend_shape_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Animation_method_blend_shape_track_interpolate>`
|
|
|
|
|
|
Returns the interpolated blend shape value at the given time (in seconds). The ``track_idx`` must be the index of a blend shape track.
|
|
|
|
|
@@ -869,7 +869,7 @@ Returns the interpolated blend shape value at the given time (in seconds). The `
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **clear**\ (\ )
|
|
|
+|void| **clear**\ (\ ) :ref:`🔗<class_Animation_method_clear>`
|
|
|
|
|
|
Clear the animation (clear all tracks and reset all).
|
|
|
|
|
@@ -881,7 +881,7 @@ Clear the animation (clear all tracks and reset all).
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **compress**\ (\ page_size\: :ref:`int<class_int>` = 8192, fps\: :ref:`int<class_int>` = 120, split_tolerance\: :ref:`float<class_float>` = 4.0\ )
|
|
|
+|void| **compress**\ (\ page_size\: :ref:`int<class_int>` = 8192, fps\: :ref:`int<class_int>` = 120, split_tolerance\: :ref:`float<class_float>` = 4.0\ ) :ref:`🔗<class_Animation_method_compress>`
|
|
|
|
|
|
Compress the animation and all its tracks in-place. This will make :ref:`track_is_compressed<class_Animation_method_track_is_compressed>` return ``true`` once called on this **Animation**. Compressed tracks require less memory to be played, and are designed to be used for complex 3D animations (such as cutscenes) imported from external 3D software. Compression is lossy, but the difference is usually not noticeable in real world conditions.
|
|
|
|
|
@@ -895,7 +895,7 @@ Compress the animation and all its tracks in-place. This will make :ref:`track_i
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **copy_track**\ (\ track_idx\: :ref:`int<class_int>`, to_animation\: :ref:`Animation<class_Animation>`\ )
|
|
|
+|void| **copy_track**\ (\ track_idx\: :ref:`int<class_int>`, to_animation\: :ref:`Animation<class_Animation>`\ ) :ref:`🔗<class_Animation_method_copy_track>`
|
|
|
|
|
|
Adds a new track to ``to_animation`` that is a copy of the given track from this animation.
|
|
|
|
|
@@ -907,7 +907,7 @@ Adds a new track to ``to_animation`` that is a copy of the given track from this
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **find_track**\ (\ path\: :ref:`NodePath<class_NodePath>`, type\: :ref:`TrackType<enum_Animation_TrackType>`\ ) |const|
|
|
|
+:ref:`int<class_int>` **find_track**\ (\ path\: :ref:`NodePath<class_NodePath>`, type\: :ref:`TrackType<enum_Animation_TrackType>`\ ) |const| :ref:`🔗<class_Animation_method_find_track>`
|
|
|
|
|
|
Returns the index of the specified track. If the track is not found, return -1.
|
|
|
|
|
@@ -919,7 +919,7 @@ Returns the index of the specified track. If the track is not found, return -1.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **get_track_count**\ (\ ) |const|
|
|
|
+:ref:`int<class_int>` **get_track_count**\ (\ ) |const| :ref:`🔗<class_Animation_method_get_track_count>`
|
|
|
|
|
|
Returns the amount of tracks in the animation.
|
|
|
|
|
@@ -931,7 +931,7 @@ Returns the amount of tracks in the animation.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`StringName<class_StringName>` **method_track_get_name**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`StringName<class_StringName>` **method_track_get_name**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_method_track_get_name>`
|
|
|
|
|
|
Returns the method name of a method track.
|
|
|
|
|
@@ -943,7 +943,7 @@ Returns the method name of a method track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Array<class_Array>` **method_track_get_params**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`Array<class_Array>` **method_track_get_params**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_method_track_get_params>`
|
|
|
|
|
|
Returns the arguments values to be called on a method track for a given key in a given track.
|
|
|
|
|
@@ -955,7 +955,7 @@ Returns the arguments values to be called on a method track for a given key in a
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **position_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, position\: :ref:`Vector3<class_Vector3>`\ )
|
|
|
+:ref:`int<class_int>` **position_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, position\: :ref:`Vector3<class_Vector3>`\ ) :ref:`🔗<class_Animation_method_position_track_insert_key>`
|
|
|
|
|
|
Inserts a key in a given 3D position track. Returns the key index.
|
|
|
|
|
@@ -967,7 +967,7 @@ Inserts a key in a given 3D position track. Returns the key index.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Vector3<class_Vector3>` **position_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const|
|
|
|
+:ref:`Vector3<class_Vector3>` **position_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Animation_method_position_track_interpolate>`
|
|
|
|
|
|
Returns the interpolated position value at the given time (in seconds). The ``track_idx`` must be the index of a 3D position track.
|
|
|
|
|
@@ -979,7 +979,7 @@ Returns the interpolated position value at the given time (in seconds). The ``tr
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **remove_track**\ (\ track_idx\: :ref:`int<class_int>`\ )
|
|
|
+|void| **remove_track**\ (\ track_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Animation_method_remove_track>`
|
|
|
|
|
|
Removes a track by specifying the track index.
|
|
|
|
|
@@ -991,7 +991,7 @@ Removes a track by specifying the track index.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **rotation_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, rotation\: :ref:`Quaternion<class_Quaternion>`\ )
|
|
|
+:ref:`int<class_int>` **rotation_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, rotation\: :ref:`Quaternion<class_Quaternion>`\ ) :ref:`🔗<class_Animation_method_rotation_track_insert_key>`
|
|
|
|
|
|
Inserts a key in a given 3D rotation track. Returns the key index.
|
|
|
|
|
@@ -1003,7 +1003,7 @@ Inserts a key in a given 3D rotation track. Returns the key index.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Quaternion<class_Quaternion>` **rotation_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const|
|
|
|
+:ref:`Quaternion<class_Quaternion>` **rotation_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Animation_method_rotation_track_interpolate>`
|
|
|
|
|
|
Returns the interpolated rotation value at the given time (in seconds). The ``track_idx`` must be the index of a 3D rotation track.
|
|
|
|
|
@@ -1015,7 +1015,7 @@ Returns the interpolated rotation value at the given time (in seconds). The ``tr
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **scale_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, scale\: :ref:`Vector3<class_Vector3>`\ )
|
|
|
+:ref:`int<class_int>` **scale_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, scale\: :ref:`Vector3<class_Vector3>`\ ) :ref:`🔗<class_Animation_method_scale_track_insert_key>`
|
|
|
|
|
|
Inserts a key in a given 3D scale track. Returns the key index.
|
|
|
|
|
@@ -1027,7 +1027,7 @@ Inserts a key in a given 3D scale track. Returns the key index.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Vector3<class_Vector3>` **scale_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const|
|
|
|
+:ref:`Vector3<class_Vector3>` **scale_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Animation_method_scale_track_interpolate>`
|
|
|
|
|
|
Returns the interpolated scale value at the given time (in seconds). The ``track_idx`` must be the index of a 3D scale track.
|
|
|
|
|
@@ -1039,7 +1039,7 @@ Returns the interpolated scale value at the given time (in seconds). The ``track
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **track_find_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, find_mode\: :ref:`FindMode<enum_Animation_FindMode>` = 0, limit\: :ref:`bool<class_bool>` = false\ ) |const|
|
|
|
+:ref:`int<class_int>` **track_find_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, find_mode\: :ref:`FindMode<enum_Animation_FindMode>` = 0, limit\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Animation_method_track_find_key>`
|
|
|
|
|
|
Finds the key index by time in a given track. Optionally, only find it if the approx/exact time is given.
|
|
|
|
|
@@ -1053,7 +1053,7 @@ If ``limit`` is ``true``, it does not return keys outside the animation range.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`bool<class_bool>` **track_get_interpolation_loop_wrap**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`bool<class_bool>` **track_get_interpolation_loop_wrap**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_get_interpolation_loop_wrap>`
|
|
|
|
|
|
Returns ``true`` if the track at ``track_idx`` wraps the interpolation loop. New tracks wrap the interpolation loop by default.
|
|
|
|
|
@@ -1065,7 +1065,7 @@ Returns ``true`` if the track at ``track_idx`` wraps the interpolation loop. New
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`InterpolationType<enum_Animation_InterpolationType>` **track_get_interpolation_type**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`InterpolationType<enum_Animation_InterpolationType>` **track_get_interpolation_type**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_get_interpolation_type>`
|
|
|
|
|
|
Returns the interpolation type of a given track.
|
|
|
|
|
@@ -1077,7 +1077,7 @@ Returns the interpolation type of a given track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **track_get_key_count**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`int<class_int>` **track_get_key_count**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_get_key_count>`
|
|
|
|
|
|
Returns the number of keys in a given track.
|
|
|
|
|
@@ -1089,7 +1089,7 @@ Returns the number of keys in a given track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`float<class_float>` **track_get_key_time**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`float<class_float>` **track_get_key_time**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_get_key_time>`
|
|
|
|
|
|
Returns the time at which the key is located.
|
|
|
|
|
@@ -1101,7 +1101,7 @@ Returns the time at which the key is located.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`float<class_float>` **track_get_key_transition**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`float<class_float>` **track_get_key_transition**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_get_key_transition>`
|
|
|
|
|
|
Returns the transition curve (easing) for a specific key (see the built-in math function :ref:`@GlobalScope.ease<class_@GlobalScope_method_ease>`).
|
|
|
|
|
@@ -1113,7 +1113,7 @@ Returns the transition curve (easing) for a specific key (see the built-in math
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Variant<class_Variant>` **track_get_key_value**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`Variant<class_Variant>` **track_get_key_value**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_get_key_value>`
|
|
|
|
|
|
Returns the value of a given key in a given track.
|
|
|
|
|
@@ -1125,7 +1125,7 @@ Returns the value of a given key in a given track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`NodePath<class_NodePath>` **track_get_path**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`NodePath<class_NodePath>` **track_get_path**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_get_path>`
|
|
|
|
|
|
Gets the path of a track. For more information on the path format, see :ref:`track_set_path<class_Animation_method_track_set_path>`.
|
|
|
|
|
@@ -1137,7 +1137,7 @@ Gets the path of a track. For more information on the path format, see :ref:`tra
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`TrackType<enum_Animation_TrackType>` **track_get_type**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`TrackType<enum_Animation_TrackType>` **track_get_type**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_get_type>`
|
|
|
|
|
|
Gets the type of a track.
|
|
|
|
|
@@ -1149,7 +1149,7 @@ Gets the type of a track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`int<class_int>` **track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, key\: :ref:`Variant<class_Variant>`, transition\: :ref:`float<class_float>` = 1\ )
|
|
|
+:ref:`int<class_int>` **track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, key\: :ref:`Variant<class_Variant>`, transition\: :ref:`float<class_float>` = 1\ ) :ref:`🔗<class_Animation_method_track_insert_key>`
|
|
|
|
|
|
Inserts a generic key in a given track. Returns the key index.
|
|
|
|
|
@@ -1161,7 +1161,7 @@ Inserts a generic key in a given track. Returns the key index.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`bool<class_bool>` **track_is_compressed**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`bool<class_bool>` **track_is_compressed**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_is_compressed>`
|
|
|
|
|
|
Returns ``true`` if the track is compressed, ``false`` otherwise. See also :ref:`compress<class_Animation_method_compress>`.
|
|
|
|
|
@@ -1173,7 +1173,7 @@ Returns ``true`` if the track is compressed, ``false`` otherwise. See also :ref:
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`bool<class_bool>` **track_is_enabled**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`bool<class_bool>` **track_is_enabled**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_is_enabled>`
|
|
|
|
|
|
Returns ``true`` if the track at index ``track_idx`` is enabled.
|
|
|
|
|
@@ -1185,7 +1185,7 @@ Returns ``true`` if the track at index ``track_idx`` is enabled.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`bool<class_bool>` **track_is_imported**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`bool<class_bool>` **track_is_imported**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_track_is_imported>`
|
|
|
|
|
|
Returns ``true`` if the given track is imported. Else, return ``false``.
|
|
|
|
|
@@ -1197,7 +1197,7 @@ Returns ``true`` if the given track is imported. Else, return ``false``.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_move_down**\ (\ track_idx\: :ref:`int<class_int>`\ )
|
|
|
+|void| **track_move_down**\ (\ track_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Animation_method_track_move_down>`
|
|
|
|
|
|
Moves a track down.
|
|
|
|
|
@@ -1209,7 +1209,7 @@ Moves a track down.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_move_to**\ (\ track_idx\: :ref:`int<class_int>`, to_idx\: :ref:`int<class_int>`\ )
|
|
|
+|void| **track_move_to**\ (\ track_idx\: :ref:`int<class_int>`, to_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Animation_method_track_move_to>`
|
|
|
|
|
|
Changes the index position of track ``track_idx`` to the one defined in ``to_idx``.
|
|
|
|
|
@@ -1221,7 +1221,7 @@ Changes the index position of track ``track_idx`` to the one defined in ``to_idx
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_move_up**\ (\ track_idx\: :ref:`int<class_int>`\ )
|
|
|
+|void| **track_move_up**\ (\ track_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Animation_method_track_move_up>`
|
|
|
|
|
|
Moves a track up.
|
|
|
|
|
@@ -1233,7 +1233,7 @@ Moves a track up.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_remove_key**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ )
|
|
|
+|void| **track_remove_key**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Animation_method_track_remove_key>`
|
|
|
|
|
|
Removes a key by index in a given track.
|
|
|
|
|
@@ -1245,7 +1245,7 @@ Removes a key by index in a given track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_remove_key_at_time**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`\ )
|
|
|
+|void| **track_remove_key_at_time**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Animation_method_track_remove_key_at_time>`
|
|
|
|
|
|
Removes a key at ``time`` in a given track.
|
|
|
|
|
@@ -1257,7 +1257,7 @@ Removes a key at ``time`` in a given track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_set_enabled**\ (\ track_idx\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>`\ )
|
|
|
+|void| **track_set_enabled**\ (\ track_idx\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_Animation_method_track_set_enabled>`
|
|
|
|
|
|
Enables/disables the given track. Tracks are enabled by default.
|
|
|
|
|
@@ -1269,7 +1269,7 @@ Enables/disables the given track. Tracks are enabled by default.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_set_imported**\ (\ track_idx\: :ref:`int<class_int>`, imported\: :ref:`bool<class_bool>`\ )
|
|
|
+|void| **track_set_imported**\ (\ track_idx\: :ref:`int<class_int>`, imported\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_Animation_method_track_set_imported>`
|
|
|
|
|
|
Sets the given track as imported or not.
|
|
|
|
|
@@ -1281,7 +1281,7 @@ Sets the given track as imported or not.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_set_interpolation_loop_wrap**\ (\ track_idx\: :ref:`int<class_int>`, interpolation\: :ref:`bool<class_bool>`\ )
|
|
|
+|void| **track_set_interpolation_loop_wrap**\ (\ track_idx\: :ref:`int<class_int>`, interpolation\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_Animation_method_track_set_interpolation_loop_wrap>`
|
|
|
|
|
|
If ``true``, the track at ``track_idx`` wraps the interpolation loop.
|
|
|
|
|
@@ -1293,7 +1293,7 @@ If ``true``, the track at ``track_idx`` wraps the interpolation loop.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_set_interpolation_type**\ (\ track_idx\: :ref:`int<class_int>`, interpolation\: :ref:`InterpolationType<enum_Animation_InterpolationType>`\ )
|
|
|
+|void| **track_set_interpolation_type**\ (\ track_idx\: :ref:`int<class_int>`, interpolation\: :ref:`InterpolationType<enum_Animation_InterpolationType>`\ ) :ref:`🔗<class_Animation_method_track_set_interpolation_type>`
|
|
|
|
|
|
Sets the interpolation type of a given track.
|
|
|
|
|
@@ -1305,7 +1305,7 @@ Sets the interpolation type of a given track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_set_key_time**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`\ )
|
|
|
+|void| **track_set_key_time**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Animation_method_track_set_key_time>`
|
|
|
|
|
|
Sets the time of an existing key.
|
|
|
|
|
@@ -1317,7 +1317,7 @@ Sets the time of an existing key.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_set_key_transition**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, transition\: :ref:`float<class_float>`\ )
|
|
|
+|void| **track_set_key_transition**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, transition\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Animation_method_track_set_key_transition>`
|
|
|
|
|
|
Sets the transition curve (easing) for a specific key (see the built-in math function :ref:`@GlobalScope.ease<class_@GlobalScope_method_ease>`).
|
|
|
|
|
@@ -1329,7 +1329,7 @@ Sets the transition curve (easing) for a specific key (see the built-in math fun
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_set_key_value**\ (\ track_idx\: :ref:`int<class_int>`, key\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ )
|
|
|
+|void| **track_set_key_value**\ (\ track_idx\: :ref:`int<class_int>`, key\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_Animation_method_track_set_key_value>`
|
|
|
|
|
|
Sets the value of an existing key.
|
|
|
|
|
@@ -1341,7 +1341,7 @@ Sets the value of an existing key.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_set_path**\ (\ track_idx\: :ref:`int<class_int>`, path\: :ref:`NodePath<class_NodePath>`\ )
|
|
|
+|void| **track_set_path**\ (\ track_idx\: :ref:`int<class_int>`, path\: :ref:`NodePath<class_NodePath>`\ ) :ref:`🔗<class_Animation_method_track_set_path>`
|
|
|
|
|
|
Sets the path of a track. Paths must be valid scene-tree paths to a node and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by ``":"``.
|
|
|
|
|
@@ -1355,7 +1355,7 @@ For example, ``"character/skeleton:ankle"`` or ``"character/mesh:transform/local
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **track_swap**\ (\ track_idx\: :ref:`int<class_int>`, with_idx\: :ref:`int<class_int>`\ )
|
|
|
+|void| **track_swap**\ (\ track_idx\: :ref:`int<class_int>`, with_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Animation_method_track_swap>`
|
|
|
|
|
|
Swaps the track ``track_idx``'s index position with the track ``with_idx``.
|
|
|
|
|
@@ -1367,7 +1367,7 @@ Swaps the track ``track_idx``'s index position with the track ``with_idx``.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`UpdateMode<enum_Animation_UpdateMode>` **value_track_get_update_mode**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const|
|
|
|
+:ref:`UpdateMode<enum_Animation_UpdateMode>` **value_track_get_update_mode**\ (\ track_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_value_track_get_update_mode>`
|
|
|
|
|
|
Returns the update mode of a value track.
|
|
|
|
|
@@ -1379,7 +1379,7 @@ Returns the update mode of a value track.
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-:ref:`Variant<class_Variant>` **value_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const|
|
|
|
+:ref:`Variant<class_Variant>` **value_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Animation_method_value_track_interpolate>`
|
|
|
|
|
|
Returns the interpolated value at the given time (in seconds). The ``track_idx`` must be the index of a value track.
|
|
|
|
|
@@ -1391,7 +1391,7 @@ Returns the interpolated value at the given time (in seconds). The ``track_idx``
|
|
|
|
|
|
.. rst-class:: classref-method
|
|
|
|
|
|
-|void| **value_track_set_update_mode**\ (\ track_idx\: :ref:`int<class_int>`, mode\: :ref:`UpdateMode<enum_Animation_UpdateMode>`\ )
|
|
|
+|void| **value_track_set_update_mode**\ (\ track_idx\: :ref:`int<class_int>`, mode\: :ref:`UpdateMode<enum_Animation_UpdateMode>`\ ) :ref:`🔗<class_Animation_method_value_track_set_update_mode>`
|
|
|
|
|
|
Sets the update mode (see :ref:`UpdateMode<enum_Animation_UpdateMode>`) of a value track.
|
|
|
|