Answers.Body: <p>Found the answer <a href="https://forums.adobe.com/thread/967614" rel="noreferrer">here</a>.
  Copying any positional keyframes out of After Effects generates a text file like this:</p>
  
  <pre><code>Adobe After Effects 8.0 Keyframe Data
  
      Units Per Second    25
      Source Width    100
      Source Height   100
      Source Pixel Aspect Ratio   1
      Comp Pixel Aspect Ratio 1
  
  Transform   Scale
      Frame   X percent   Y percent   Z percent   
          100 100 100 
  
  Transform   Position
      Frame   X pixels    Y pixels    Z pixels    
      0   960 540 0   
      1   980 540 0   
      2   980 520 0   
      3   1000    520 0   
      4   1000    518 0   
      5   630 498 0   
  
  
  End of Keyframe Data
  </code></pre>
  
  <p>To manipulate it, just modify the text, copy the text, and paste it back into AE.  Works like a charm</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-24T11:49:38.780Z
Answers.Text: I was oing to suggest scripting, but this is much easier. A neat hack
Answers.UserDisplayName: stib
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-23T15:50:02.063Z
Answers.LastActivityDate: 2017-02-23T15:50:02.063Z
Answers.UserDisplayName: tomh
Body: <p>If I have a .csv file of x / y coordinates, representing positional data of an object in an animation, what's the easiest way to apply that to a 2D null in After Effects?</p>
  
  <p>Eg:</p>
  
  <pre><code>Frame,Xpos,Ypos
  1,33,360
  2,34,361
  3,38,370
  </code></pre>
  
  <p>I ask because I'm trying to track movement of an object from a D3.js without having to endlessly motion-track objects.</p>
  
Tags: <after-effects><after-effects-expressions>
Title: How to import 2D position data into After Effects
UserDisplayName: tomh
ThreadText: # How to import 2D position data into After Effects
  
  (Asked by: username_0 on 2017-02-20)
  
  If I have a .csv file of x / y coordinates, representing positional data of an object in an animation, what's the easiest way to apply that to a 2D null in After Effects?
  
  Eg:
  
  ```
  Frame,Xpos,Ypos
  1,33,360
  2,34,361
  3,38,370
  
  ```
  
  I ask because I'm trying to track movement of an object from a D3.js without having to endlessly motion-track objects.
  
  **Tags:** after-effects, after-effects-expressions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-02-23. Score: 5
  
  Found the answer [here](https://forums.adobe.com/thread/967614).
  Copying any positional keyframes out of After Effects generates a text file like this:
  
  ```
  Adobe After Effects 8.0 Keyframe Data
  
      Units Per Second    25
      Source Width    100
      Source Height   100
      Source Pixel Aspect Ratio   1
      Comp Pixel Aspect Ratio 1
  
  Transform   Scale
      Frame   X percent   Y percent   Z percent   
          100 100 100 
  
  Transform   Position
      Frame   X pixels    Y pixels    Z pixels    
      0   960 540 0   
      1   980 540 0   
      2   980 520 0   
      3   1000    520 0   
      4   1000    518 0   
      5   630 498 0   
  
  End of Keyframe Data
  
  ```
  
  To manipulate it, just modify the text, copy the text, and paste it back into AE. Works like a charm
  
  > **Comments:**
  > **username_1**: I was oing to suggest scripting, but this is much easier. A neat hack  
  
  ---
  
  