I’m looking to use a .CSV file that has tracking data for an object over time. The data has the different XY position coordinates and at what time the object was at those coordinates. I want to use all this information to power a dot moving from position to position. I’d like to do it all with expressions so I can update the data and the animation will update. Anyone got any tips / strategies to attack this? I’ve got a good idea on transferring the XY positional data to AE (still open to suggestions on this one if anyone has a favorite method), but I don’t have a strategy for manipulating the times/timing. Any tips would be great. Thank you.
I hope you have some knowledge about expressions because this will be a little bit hard to explain.
I have some values, you will have to modify the expression to satisfty your needs.
My csv has 2 columns: Times and Positions. First has some numbers, second has some 2 dimension arrays.
I put my csv inside the timeline and pick-whip from the expression to "positions.csv>Data>Times 0"(layer, property, property) to see how the expression to link the first time would look like. Mine is thisComp.layer("positions.csv")("Data")("Outline")("TImes")("TImes 0").
same for Positions, i get thisComp.layer("positions.csv")("Data")("Outline")("Positions")("Positions 0");. Considering these 2 paths, my expression looks like this:
myData = thisComp.layer("positions.csv")("Data")("Outline");
while(myData("Times")("Times "+i).value < time && i < myData("Times").numProperties-1) i++