Skip to content

lottie/expressions: support marker#4439

Draft
tinyjin wants to merge 1 commit into
mainfrom
jinny/exp-marker++
Draft

lottie/expressions: support marker#4439
tinyjin wants to merge 1 commit into
mainfrom
jinny/exp-marker++

Conversation

@tinyjin

@tinyjin tinyjin commented Jun 6, 2026

Copy link
Copy Markdown
Member

Expose composition markers to expressions:

  • numKeys, key(index|name), nearestKey(t)

related: #4394

test file : sample.json

Expectation Patched
CleanShot 2026-06-07 at 01 39 05 CleanShot 2026-06-07 at 01 39 35

Expose composition markers to expressions:
- numKeys, key(index|name), nearestKey(t)

related: #4394
@tinyjin tinyjin requested a review from Nor-s as a code owner June 6, 2026 16:40
Copilot AI review requested due to automatic review settings June 6, 2026 16:40
@tinyjin tinyjin self-assigned this Jun 6, 2026
@github-actions github-actions Bot added the lottie Lottie animation label Jun 6, 2026
@tinyjin tinyjin added the enhancement Improve features label Jun 6, 2026
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

Binary Size Report

Config main text main data PR text PR data Delta
arm64-clang 852,031 23,672 852,855 23,672 +824 (+0.09%)
x86-gcc 881,120 11,516 882,024 11,516 +904 (+0.10%)
x86_64-clang 856,818 22,176 857,630 22,176 +812 (+0.09%)
x86_64-gcc 862,737 21,912 863,533 21,912 +796 (+0.09%)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for accessing Lottie composition markers from the expressions runtime, aligning with the After Effects-style marker API (numKeys, key(index|name), nearestKey(t)), to address marker-driven expression workflows (ref. #4394).

Changes:

  • Exposes thisComp.marker to expressions and registers "marker" as a known magic string.
  • Implements marker object methods/properties: numKeys, key(...), nearestKey(...).
  • Wires marker object creation into LottieExpressions::buildComp(...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/loaders/lottie/tvgLottieExpressions.cpp
Comment thread src/loaders/lottie/tvgLottieExpressions.cpp
Comment thread src/loaders/lottie/tvgLottieExpressions.cpp
Comment thread src/loaders/lottie/tvgLottieExpressions.cpp
@hermet

hermet commented Jun 8, 2026

Copy link
Copy Markdown
Member

let's hold off on this until we have a practical requirement.

@hermet hermet marked this pull request as draft June 8, 2026 01:44
@hermet hermet changed the title lottie/expressions: support marker API lottie/expressions: support marker Jun 8, 2026
@hermet hermet added the compliance Specification Compliance for W3C, Lottie, SVG, etc. label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compliance Specification Compliance for W3C, Lottie, SVG, etc. enhancement Improve features lottie Lottie animation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants