Timing tools

Small commands that save you from typing numbers and from doing work twice: copy the times of one clip onto another, split an animation block, say how new clips come in, give a clip a formula of its own, and copy how a clip looks onto others.

Most of these live in the menu of a clip, so that is where this page starts.

Right-click a clip on the timeline, or press Shift+F10 with the focus on it, and its menu opens. Its first entries add animations at the playhead, or where you clicked when the playhead is not on the clip; the rest are about the clip itself.

The menu of the clip note: Add animation with Appear, Disappear, Transform, Morph within the formula and Emphasis; Add brace, Add shape, Add line; Intro, Outro, Timing; Remove animations, Remove relations, Unlink formula (make a copy), Split at playhead (S); Lock in the preview.
The menu of a clip of a formula, on the timeline.
EntryWhat it does
Appear, Disappear, Transform, Morph within the formula, EmphasisAdd an animation block to the clip at the playhead, or where you right-clicked when the playhead is not on the clip (the Animations panel adds one at the playhead). See Animation blocks.
Add brace, Add shape, Add lineHang a new object on the clip. See Braces, Shapes and Lines and arrows.
Intro, OutroGive the clip the animation it starts or ends with. See Appearing and disappearing.
TimingCopy the clip's times, or paste times copied from another clip. See below.
Remove animationsTake off the intro, the outro and every block but the Morph ones, in one step.
Remove relationsFormulas and texts only: take off the clip's transformations of glyphs, that is its relations with other clips and its Morph blocks. A relation whose other clip is on a locked track stays, and a notice says so.
Unlink formula (make a copy)Give the clip a copy of its formula of its own. See below.
Lock in the previewMake the Preview leave that formula alone, so that something under it can be reached. The timeline and the panels still edit it, and the lock is saved with the project (Placing things in the Preview).

A brace, a shape or a line has fewer entries and some of its own (a colour, a direction, Detach, Become): they are on the pages of those objects. The Preview has a menu of its own for a clip. It shares Intro, Outro, Remove animations, Remove relations and Unlink formula (make a copy) with the timeline's, and adds the entries for copying properties (below), aligning, match colors and colours in order.

Several clips

With several clips selected, right-click one of them: the menu is of the whole selection. Its first line says how many clips and how many formulas they are.

The menu of two selected clips, energy and note: the first line says 2 clips · 2 formulas; then Edit together…, Add brace, Add shape, Apply match colors, Timing with its submenu open (From energy: Paste start, Paste end, Paste duration, Paste intro time, Paste outro time), Unlink formula (make a copy), Split at playhead (S), Lock in the preview, Duplicate and Delete 2 clips.
The menu of two selected clips, with Timing open after copying the times of energy: the pastes, and no copy.
EntryWhat it does
Edit… or Edit together…Open the formula, when the clips are of one; or open the formulas together, with one scale and one match list for all of them (Finding and organizing).
Add brace, Add shapeOne brace over them all, or one shape around them all. They are greyed out, with the reason as a tooltip, when the clips are never on screen together from the playhead on.
Apply match colorsColour their formulas by one of the project's match lists (Match colors).
TimingPaste a part of the copied timing onto all of them. There is no copy here: copying is of one clip.
Unlink formula (make a copy)Give each formula among them a copy of its own, shared by its selected clips.
Lock in the previewLock them all, or unlock them all when they are all locked.
Duplicate, DeleteCopy or delete the clips (not their formulas), as Ctrl+D and Delete do. Clips on locked tracks are left out, and the entry says so.

Copying and pasting the timing

To make two clips start together, last the same, or have intros of the same length, copy the timing of one and paste it onto the other. It is all in the Timing entry of the clip's menu, which opens a small menu beside it.

  1. Right-click the clip to copy from and choose Timing ▸ Copy timing. The entry shows its times, such as 1 s–5 s. One copy takes the start, the end and the lengths of the intro and of the outro. A clip on a locked track can be copied from too: a copy changes nothing.
  2. Right-click the clip to change, or select several, and choose what to paste.
The menu of the clip note with its Timing submenu open: Copy timing, 2 s–4.5 s; then, under From energy, Paste start (starts at 1 s), Paste end (ends at 5 s), Paste duration (4 s long), Paste intro time (1 s) and Paste outro time (1 s).
After copying the times of energy, each paste entry says what it would paste. A line names the clip they come from.
EntryWhat the clip gets
Paste startIt starts when the copied clip does, and keeps its length: the two clips are aligned on their left edge.
Paste endIt ends when the copied clip does, and keeps its length: aligned on their right edge.
Paste durationIt lasts as long as the copied clip, from where it starts.
Paste intro timeIts intro lasts as long as the copied clip's intro. Off, saying it has no intro, when the copied clip has none.
Paste outro timeIts outro lasts as long as the copied clip's outro.

Each paste is one undo step: Ctrl+Z puts the clip back as it was.

A paste does what it says, or nothing

Where a drag would stop, a paste stops too: the clip stays as it is, and a notice says why. That happens when

A notice: “note” keeps its start. The start of “energy” was not pasted where it does not fit: “note”: “energy” (1 s–5 s) is in its way on the same track.
The second clip of note is on the track of energy: it cannot start where energy does.

A paste never cuts anything: a clip made shorter than its blocks or its relations reach stays as it was. Onto several clips a paste applies to each in turn, in the order of the timeline, each planned where the ones before it left things; the ones that fit change, in one undo step, and the notice names the ones that stay.

Split

An animation block animates glyphs, and Manim cannot run two animations on one glyph at the same time. But two blocks may run at once on different glyphs: the two sides of an equation, written at the same time. Splitting a block makes that from the block you have: one block per part, all at the same time and of the same length, each with its own animation and its own glyphs.

Splitting is offered on the blocks that name glyphs: Appear, Disappear, a Transform of part of the formula and Emphasis. A block of an arrow is not split: it takes the whole arrow. Right-click the block:

The menu of an Appear block: Change animation with Appear · Write and its kin, then Duplicate, Duplicate for the other glyphs, Split into runs, Split… and Delete….
The menu of a block that names glyphs. Here Duplicate for the other glyphs is off: the only glyph the block leaves out, the =, is on screen already, so an Appear has nothing to bring in for it.

The Split dialog

Choose the glyphs that go to one new block and press Split; the others stay in the block you split. For several new blocks, choose the glyphs of the first, press Another block (it is listed under the formula, tinted like its glyphs, and a × gives its glyphs back), and choose those of the next. A glyph is in one block only, so what you choose again is taken from the block that had it. The dialog can be resized from its corner or maximized, and it keeps its size for the session: the room it gains goes to the formula.

The timeline after a split: on the clip of the equation, the two Appear blocks are folded into one group block, Write ×2 (1).
The clip of the equation after Split…, the glyphs of the right side and Split: its two blocks are folded into one group (1), Write ×2.

What a split leaves

The new blocks are a group, like Manim's AnimationGroup: they start together and last the same, each keeping its own animation, glyphs and options, and the timeline draws them as one block on one lane (Write ×2, or Group ×2 when their animations differ), so a block split in ten does not take ten lanes. A group moves and stretches as one block; its arrow, or a double-click, unfolds it into its blocks, and the arrow on the first of them folds it back. A split is one undo step, and what plays does not change: the two players above are the same scene. In the export, one animation over all the glyphs becomes one animation for each part, side by side in the same self.play:

self.play(Write(VGroup(*equation_g[:3], *equation_g[4:])), run_time=1.2)
self.play(Write(VGroup(*equation_g[:3])),
          Write(VGroup(*equation_g[4:])), run_time=1.2)

To give the right side another animation, unfold the group and change that block's animation from its menu. Groups have their own page: Groups of animation blocks.

Appears with

Appears with is a field of the formula editor (double-click a formula in the Creator, or press Enter on its card). It is the intro every new clip of that formula starts with, and its length.

The fields of the formula editor for note: Name, Tag, Size (1.3333 × 48 = 64), Colour, and Appears with set to Write for 1 s, with the hint: New clips start with it; clips still at the previous intro follow.
The top of the formula editor. Appears with is the last field.

The list holds Default (written Default (none) or Default (Write), following the Always add intro preference of the Edit menu, and Default (none) on an object that does not take the intro of that preference: a line is never grown, for one), None (appear) and every intro the object takes, GrowArrow among them for an arrow. A length field appears next to a real animation.

What it changes

The timeline after Appears with of the formula note was set to Write: the second clip of note, which had no intro, now starts with Write; the first, which fades in, kept its FadeIn.
After setting Appears with to Write for note: its clip over 6–8 s, which had no intro, now writes in; the clip over 2–4.5 s, which had its own FadeIn, kept it.

The composition editor of a LaTeX text has the same field. What intros there are, and the preference behind Default, are on Appearing and disappearing.

A formula on the timeline more than once is one object: change its LaTeX, its size or its colour and every clip shows it. That is what you want until you do not. Unlink formula (make a copy) gives one clip a copy of the formula of its own, so that editing either no longer changes the clips of the other.

The Creator's list after unlinking a clip of note: the formulas energy, note and, right after the original, the copy note2.
note has two clips. Unlinking the one on Notes gave it note2, right after the original in the Creator; the clip changes name, and the other keeps note.

The entry is off, and its tooltip says why, for a formula's only clip (there is nothing to unlink it from), when all the clips of a formula are selected together, and on a locked track: a selected clip on a locked track keeps its formula, and a notice says so. Braces, shapes and lines have no such entry: they live with their clips.

Copying and pasting properties

To make one formula look and sit like another, copy its properties and paste them. This is done in the Preview, on the clips of the scene at the playhead. Copy properties takes the state of one clip as it is shown at the playhead: its position, scale, rotation, flips, opacity, colour and the colours of its glyphs. A paste is one undo step.

The Preview's menu of the clip note with Paste properties open: All but position (× 1.25 · 8° · 80 % · #F4C867), Transformation (× 1.25 · 8°), Appearance (80 % · #F4C867), Glyph colours (none) and Position (0.00, 1.40).
After copying energy, scaled ×1.25, turned 8°, at 80 % opacity and yellow: each entry shows what it would paste.
EntryWhat it pastes
All but positionThe transformation, the appearance and the glyph colours below.
TransformationScale, rotation and flips.
AppearanceOpacity and colour.
Glyph coloursThe colours of single glyphs, onto clips of the same formula only, since they go by glyph.
PositionThe place on the frame. Pasted onto several clips it stacks them on one point, on purpose.
The bar in the top-left corner of the Preview with two clips selected: 2 clips, the align and distribute keys, Paste properties and Match colors as menus.
The bar that appears over the Preview when two clips are selected.

A paste changes what a drag in the Preview would change at the playhead: the clip's starting state, or the keyframe in effect there. A clip it cannot change now stays as it is and a notice names it: one that is not on screen at the playhead, one on a locked track, or one locked after its transformations. A line has no scale, turn or flip of its own: it takes the rest of what is pasted.

Try it

Where to go next

The animations a clip plays are on Animation blocks, and groups of blocks on Groups of animation blocks. The clip's own times in numbers are in the Timing tab of the Animations panel; moving and trimming clips with the mouse is in Working with the timeline.