Skip to content

Commit 237468c

Browse files
authored
Merge pull request #10697 from skyace65/AnimationMarkers
Document animation markers
2 parents e2c795c + 5a185cb commit 237468c

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed
Binary file not shown.
Binary file not shown.

tutorials/animation/introduction.rst

+37
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,40 @@ is being animated in its previous positions in the animation.
391391
The three dots button next to the onion skinning button opens a dropdown
392392
menu that lets you adjust how it works, including the ability to use
393393
onion skinning for future frames.
394+
395+
Animation Markers
396+
-----------------
397+
398+
Animation markers can be used to play a specific part of an animation rather than
399+
the whole thing. Here is a use case example, there's an animation file that has a
400+
character doing two distinct actions, and the project requires the whole animation,
401+
as well as both actions individually. Instead of making two additional animations,
402+
markers can be placed on the timeline, and both actions can now be played
403+
individually.
404+
405+
To add a marker to an animation right click the space above the timeline and select
406+
**Insert Marker...**.
407+
408+
.. image:: img/animation_marker_click_area.webp
409+
410+
All markers require a unique name within the animation. You can also set the color
411+
of the markers for improved organization.
412+
413+
To play the part of the animation between two markers use the :ref:`play_section_with_markers()<class_AnimationPlayer_method_play_section_with_markers>`
414+
and :ref:`play_section_with_markers_backwards()<class_AnimationPlayer_method_play_section_with_markers_backwards>`
415+
methods. If no start marker is specified then the beginning of the animation is
416+
used, and if no end marker is specified, then the end of the animation is used.
417+
418+
If the end marker is after the end of the animation then the ``AnimationPlayer`` will
419+
clamp the end of the section so it does not go past the end of the animation.
420+
421+
To preview the animation between two markers use :kbd:`Shift + Click` to
422+
select the markers. When two are selected the space between them should be
423+
highlighted in red.
424+
425+
.. image:: img/animation_marker_selected.webp
426+
427+
Now all of the play animation buttons will act as if the selected
428+
area is the whole animation. **Play Animation from Start** will treat the first
429+
marker as the start of the animation, **Play Animation Backwards from End**
430+
will treat the second marker as the end, and so on.

0 commit comments

Comments
 (0)