ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Dynamic values to control point chart

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ronan De Lacy
Dynamic values to control point chart
on Sep 18, 2018 at 11:50:21 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]




Return to posts index

Kalleheikki Kannisto
Re: Dynamic values to control point chart
on Sep 20, 2018 at 6:51:56 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]