Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script for setting inPoint and outPoint of images using .csv

  • Script for setting inPoint and outPoint of images using .csv

    Posted by Kyle Ussery on September 30, 2020 at 5:59 am

    Hello all,

    I have a number of Power Points from a client. I’ve exported each slide as an image, and have .csv files with time stamps for each slide.

    I’d like to create a script that imports the images into a new comp, and sets the in and point of each layer according to the time stamp column on the .csv

    The .csv is formatted like this:

    Slide 1,0:17

    Slide 2 ,0:47

    Slide 3 ,0:53

    The slides are Slide 1.jpg, Slide 2.jpg, Slide 3.jpg, etc.

    I have a small amount of experience with scripting, but this is beyond my skillset at this point.

    Is this possible? Any help is greatly appreciated. Thanks!

    Kyle Ussery replied 5 years, 7 months ago 3 Members · 4 Replies
  • 4 Replies
  • Tomas Bumbulevičius

    September 30, 2020 at 9:42 am

    Hey Kyle, this is surely possible and is relatively simple to achieve.

    Few things:
    1. Where images will be inside the project? Whether its a folder, root, etc. I suggest placing all of them into a folder.
    2. When images are placed into the comp, what are their sizes, in relation to the comp resolution? Is resizing/fitting needed? If yes, to fit the comp, or fully fill?
    3. Images would be static, one ends where other starts?
    4. As a suggestion, I would always recommend to get rid of spaces in file names. Its just makes life easier, without encoding/decoding issues at all. But not a must – just my suggestion for the future, as well as personal preference:)

    Cheers.

  • Kyle Ussery

    September 30, 2020 at 1:26 pm

    Thanks Thomas! These are all great pieces of info to think about.

    1. I’ll put all the images in a folder in the project.

    2. The images will be 1920×1080 inside of a 1920×1080 comp.

    3. Correct, no animation on images, just static, one ends and another starts.

    4. I can definitely clean up the naming convention.

    How should I get this script started?

  • Stephen Dixon

    October 1, 2020 at 12:57 am

    You could do it with expressions controlling the slide’s opacity, thsi would be less overhead than writing a script. Expressions can work with external data files like csv, you can read about it here: https://helpx.adobe.com/after-effects/using/data-driven-animations.html

    You could write an expression that reads the csv, checks to see if the time was greater than the slide’s start time and less than the next slide’s start time, and if so turn the opacity to 100%.

  • Kyle Ussery

    October 1, 2020 at 1:32 am

    Thanks Stephen,

    That’s a good idea too. I’m much more versed in expressions than scripts, just wasn’t sure how to approach it. But that sounds like a good direction.

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