Skip to content

Pasted Source Text keyframes keep their font and colours #3901

Open

Description

@vangel76

What happens

Copying a Source Text keyframe and pasting it (keys.copy / keys.paste, Edit > Paste on keyframes) keeps only the characters. Font, size, fill, stroke and the other style settings of the copied key are lost; the pasted key takes the style of the property's current value instead.

Steps

  1. Text layer, Source Text keyframed. Key A at 0 s with a red fill.
  2. Change the fill to blue at another time (or on the property's static value).
  3. Select key A, copy, move the time indicator, paste.
  4. The pasted key shows A's text in blue, not red.

Cause

Value::to_json (crates/keyframe/src/value.rs) writes a text value as its characters only (json!(t.text)). On paste, Value::coerce_json gets a string and puts those characters into a copy of the current TextDoc, so the copied key's style never reaches the clipboard. coerce_json already accepts a full TextDoc object, so the copied side is the one that loses the style.

Expected

A pasted Source Text keyframe is identical to the copied one, text and style, as in After Effects.

Found while working on #3216; the bug is older than that PR and is not part of it.

Activity

  1. vangel76 commented on Nov 18, 2026

    @vangel76
    ContributorAuthor

    I take this.

  2. ticket-craft commented on Nov 18, 2026

    @ticket-craft

    Possibly related: #1552 and #3023.

  3. added a commit that references this issue on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions