Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to format .csv data driven animations

Explorer ,
Sep 17, 2021 Sep 17, 2021

Hello,

I am trying to format a .csv file so I can have a live speed data as a value which I can link directly to a text layer.  It is for exporting telemetry from sim racing games and putting into an After Effects project.  I hacve linked the raw telemetry export data as well as a version of it what I have formatted to try and get the effect to work.  What I want is for the folder below called  KPH to be a pickable parameter for a text layer.  Not to have all the diffrent values seperate.

AfterFX_BZzPGI1x5s.pngexpand image

I hope yo understand what I mean and that you will be able to help.  Below I have linked a screnshot of the Graphics which I am making,

Thanks

vlc_RmfT1BCm1A.pngexpand image

TOPICS
Expressions , How to , Import and export , Preview , Resources , Scripting
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 17, 2021 Sep 17, 2021

dataValue([0,0])

accesses the first row/column of your spreadsheet

 

timeToFrames(time)

returns the current frame number.

Hence,

dataValue([0,timeToFrames(time)])

will use the first column for the first frame, the second colum for the second frame etc.

 

Translate
LEGEND ,
Sep 17, 2021 Sep 17, 2021

https://helpx.adobe.com/after-effects/using/data-driven-animations.html

 

You simply call up the column and row, where in your case the row would be addressed as timeToFrames(time) to fetch the entries for each individual frame.

 

Mylenium

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 17, 2021 Sep 17, 2021

Thanks fo the response,

Can you give me an example of how I would type that?

Would it be an expression?

Which layer would the expresion go on?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 17, 2021 Sep 17, 2021

Using what you have given I just get this 

Lom1138_0-1631887007748.pngexpand image

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 17, 2021 Sep 17, 2021

Okay ignore my previous replies.

Lom1138_0-1631887564109.pngexpand image

I have used what you said and what the help article said and managaed to do this. However how do I make the layer move down the column so I can have the live speed? At the moment it is just taking the value from the top cell and that is it,

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 17, 2021 Sep 17, 2021
LATEST

dataValue([0,0])

accesses the first row/column of your spreadsheet

 

timeToFrames(time)

returns the current frame number.

Hence,

dataValue([0,timeToFrames(time)])

will use the first column for the first frame, the second colum for the second frame etc.

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines