Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dynamic values to control point chart

  • Dynamic values to control point chart

    Posted by Ronan De lacy on September 18, 2018 at 11:50 am

    Hello,

    I’m working on creating a series of dynamic chart elements for a project for a client. I’m using Templater form DataClay to dynamically pull data form a google sheet. Everything is working on the data pull side, but the problem I’m facing at the moment is, I want each dot to begin at a certain value on keyframe 1, then animate to the dynamic value in keyframe 2.

    I’m really lost here. I’ve included the expression on the null layer controlling dot one, along with paired down project file with Templater removed. Manually changing the “S-point-1-DynamicText” layer will update y value for first dot within the range specified in my expression.

    Any help will be greatly appreciated.

    (apologies if it’s a little presumptuous to upload the project file ☺ )

    12727_dynamicchartreduced.aep.zip

    min = 0;
    max = thisComp.layer("S-point-1-Display_Ctrl").effect("Slider Control")("Slider")+100;
    val_num = thisComp.layer("S-point-1-Display_Ctrl").effect("Slider Control")("Slider");
    if(numKeys > 1){
    ease(time,key(1).time,key(2).time,min,val_num);

    }
    [value[0], val_num];

    max_movement = -600;

    newBaseLine = 881;

    myYheight = ((val_num - min) / max) * max_movement +newBaseLine;

    [value[0],myYheight]

    Kalleheikki Kannisto replied 7 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    September 20, 2018 at 6:51 pm

    Based on the description of what you want to achieve:

    min = 881;
    max = thisComp.layer("S-point-1-Display_Ctrl").effect("Slider Control")("Slider")+100;
    val_num = thisComp.layer("S-point-1-Display_Ctrl").effect("Slider Control")("Slider");
    if(numKeys > 1){
    v = ease(time,key(1).time,key(2).time,min,val_num);
    }
    [value[0], v]

    There was a whole bunch of code after this point in your expression; I didn’t understand the purpose thereof.

    Kalleheikki Kannisto
    Senior Graphic Designer

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy