Giter Site home page Giter Site logo

Comments (5)

ReneBrainstud avatar ReneBrainstud commented on July 17, 2024 1

I got it working when i was tidying things up for you!
Turned out i needed to add the index of the slider after the name of the slider in the path reference.

var sliderProperty = animationAPI.getKeyPath('dataInput,Effects,gebruikersTotaal,0');
animationAPI.addValueCallback(sliderProperty, function(currentValue) {
return monthlyNewUsers;
});

Thanks for your help and fast responses.

from lottie-api.

bodymovin avatar bodymovin commented on July 17, 2024

Hi, how are you creating the path to the effect property?
perhaps this can help as a reference:
https://codepen.io/airnan/pen/43303c12e643556da82e89d07491df2c
check line 47 for example.

from lottie-api.

ReneBrainstud avatar ReneBrainstud commented on July 17, 2024

Your respond time is insanely fast! haha
I checked your reference and im on the right track.
the way i create my path is as follows:

var scaleProperty = animationAPI.getKeyPath('red_solid,Transform,Scale');
animationAPI.addValueCallback(scaleProperty, function(currentValue) {
return [100,monthlyNewUsers];
});

So this works because it's on the scale property. But in the following example i try to link to my slider control.
Where ''dataInput'' is the name of my AE layer, and "gebruikersTotaal" is the name of my slider.

var sliderValue = animationAPI.getKeyPath('dataInput,Effects,gebruikersTotaal');
animationAPI.addValueCallback(sliderValue, function(currentValue) {
return monthlyNewUsers;
});

This doesn't seem to work, but seems to be the same as in your reference on line 47.

from lottie-api.

bodymovin avatar bodymovin commented on July 17, 2024

do you have a link I can check?
if not, can you share the .aep?

from lottie-api.

bodymovin avatar bodymovin commented on July 17, 2024

great. Glad it works.

from lottie-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.