Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnimationControl - setting text to text layer #15

Open
robbbsen opened this issue Mar 16, 2019 · 1 comment
Open

AnimationControl - setting text to text layer #15

robbbsen opened this issue Mar 16, 2019 · 1 comment

Comments

@robbbsen
Copy link

robbbsen commented Mar 16, 2019

Hi. First of all thanks for providing a method to change running animations, exactly what I was looking for in react.

What I'm trying to do:
I would like to change the string of a text layer.

What happens:
Just nothing. No error. The animations isnt changing its text.

My code (the important snippets):

import Lottie from 'lottie-react-web';
import anim_CpuUsage from './animations/cpuUsage.json'

// stuff

render() {
    // ...
    <Lottie
        options={{
              loop: true,
              autoplay: true,
              animationData: anim_CpuUsage
            }}
            animationControl={{
              // My AfterEffects layer is called "Layer50"!


              'Layer50,Text,Source Text': "10"               
            }}
          />
   // ...
}

What I've tried:
I tried setting different property paths like

  • 'Layer50,Text,Source Text': "10"
  • 'Layer50,Text,SourceText': "10"
  • 'Layer50,Text,Source_Text': "10"
  • 'Layer50,Text,Source-Text': "10"
  • 'Layer50,Text,Source': "10"
  • 'Layer50,Text,Source,Text': "10"
  • 'Text,Text,Source,Text': "10"
  • 'Layer50,Transform,Position': [10, 10], // For troubleshooting, works! So its about text-layers only

Nothing works.

I would appreciate it if you could tell me the right declaration of a text layers text-property. I have attached my very basic animation (for testing purposes) if that helps in any way.
Thank you very much

animation.zip

@NessDan
Copy link

NessDan commented Oct 19, 2020

Ever figure this out??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants