Now if you like the workflow of Master Properties and CSVs, you're really going to love the workflow of Master Properties with CSVs and expressions.
Using CSV data with master properties
In this exercise, we're actually going to use a CSV to change the subtitle of our title graphic here, but we're going to use an expression to automatically have the subtitle change every time we duplicate a composition.
So, let me show you how we can build that.
I'll go ahead and just click once in the Master Properties and Expression composition here.
This is my master composition, and I'm going to go back to the beginning and press the Spacebar to preview the animation, and you can see I've got a title animation here called TRAVEL ZONE.
Now, I'm going to press the Spacebar to stop playback and I have a version composition already set up, so I'll double click on Version 1 and here, you'll notice I have a CSV file which I've already imported and added into the Timeline.
In that file, I have a subtitle.
And in that subtitle column, it has three different properties.
And for my Master Properties and Expressions composition, I already added a Master property to be able to change the subtitle text.
Linking CSV subtitle data to a master property
So, what I'll do is, I'll go to the property pickwhip for the subtitle text, and I'll point it at Subtitle 0 and it's going to pull that information from that specific row inside of my CSV.
I know that may not seem like a big deal, but let's go ahead and open up the arrow to the left of the stopwatch for my subtitle text.
In here, you can see I have an expression that's been written.
Now, the first thing I'm going to do is make note of the name of this column which is Subtitle.
So, I'm going to go up here under my Versions and I'm going to rename this composition.
I'll click on the composition; I'll press Return and I'll call it Subtitle 0.
So, the name of the column is subtitle and this is Subtitle 0.
Now, I'm going to go here
Modifying expressions to reference composition names
to where it says Subtitle 0 and I'll click once, and I'm just going to delete everything inside these two brackets.
And this time, I'll go ahead and start to type the word this, and I'm going to choose thisComp, so I'll click once on that and press Return, and then I'll type .na and I'll click once on name and I'll press Return.
So, the last section of this expression is going to say (thisComp.name).
And I'll click outside of there just once and it doesn't look like anything's happened, but let's go up here to the Version's composition
Duplicating compositions to auto-generate subtitles
and I'll click once on Subtitle 0 to make sure it's selected, and I'll press Command D to duplicate it.
And it's going to skip to Subtitle 2, but that's okay.
I'll press Return and I'll just rename this Subtitle 1.
And then, I'll press Command D to duplicate that again and now I have Subtitle 2.
And if I had more fields here in my CSV, I could keep duplicating the composition and it's going to keep pulling more information from each one of these different rows.
So, let's look at the results.
Subtitle 0 has the first row of information with the first column, and I'll go ahead and double click.
Now, Subtitle 1 has TRAVEL ZONE, which is the second thing in my spreadsheet.
In here I'll go ahead and double click, Subtitle 2 – TRAVEL WAYS.
So, when it comes to actually working extraordinarily quickly by combining Master Properties and CSVs, you can work even faster by adding an expression on top of it.
This sample file contains Adobe Stock assets you can use to practice what you learn in this tutorial. If you want to use the sample file beyond this tutorial, you can purchase licenses on Adobe Stock. Check out the ReadMe file in the folder for the terms that apply to your use of this sample file.
What you learned: How to write an expression to automatically pull data from different fields in a CSV file
Link a CSV to the text in a composition
Add the CSV into the composition.
Use the Property Link Pick Whip from the source text of a Master Property to link it to a field from the CSV.
Customize the expression to automatically pull from the next row as the name of the composition updates
Rename the composition to match the name of the column in the CSV.
Change the last bracket of the expression to say (thisComp.name).
Duplicate the composition in the Project panel, and each time the name changes the last number of that comp, the expression will now pull from the next row in the CSV.
You can control how Adobe websites use cookies and similar technologies by making choices below. But note that if you disable cookies and similar technologies entirely, Adobe websites may not function properly.
Cookies are small text files stored by your web browser when you use websites. There are also other technologies that can be used for similar purposes like HTML5 Local Storage and local shared objects, web beacons, and embedded scripts. These technologies help us do things like remembering you and your preferences when you return to our sites, measure how you use the website, conduct market research, and gather information about the ads you see and interact with.
You can make choices in the menu below about what cookies and other technologies you want us to use on Adobe sites when you visit them from this browser. You can always change those choices later by clicking on the Cookie Preferences link at the bottom of the page.
If enabled:
We can improve your experience by tailoring the site and the content to things we think might be of interest
We can better keep track of your preferences — like what language you prefer to use
We will better understand your likely interests so we can provide you more relevant Adobe ads and content on non-Adobe websites and in non-Adobe apps
It will help us improve the performance of our website and those of our partners who use the Adobe Experience Cloud
If disabled:
We won’t be able to remember you from session to session so the experience may not be tailored to your interests
You’ll still have access to the content of the site but certain features that depend on cookies may not function
You’ll still see ads, they just may not be as relevant to you
General information
You can control how Adobe websites use cookies and similar technologies by making choices below. But note that if you disable cookies and similar technologies entirely, Adobe websites may not function properly.
Cookies are small text files stored by your web browser when you use websites. There are also other technologies that can be used for similar purposes like HTML5 Local Storage, web beacons, and embedded scripts. These technologies help us do things like remembering you and your preferences when you return to our sites, measure how you use the website, conduct market research, and gather information about the ads you see and interact with.
You can make choices in the menu below about what cookies and other technologies you want us to use on Adobe sites when you visit them from this browser. You can always change those choices later by clicking on the Cookie Preferences link at the bottom of the page.
If enabled:
We can improve your experience by tailoring the site and the content to things we think might be of interest
We can better keep track of your preferences — like what language you prefer to use
We will better understand your likely interests so we can provide you more relevant Adobe ads and content on non-Adobe websites and in non-Adobe apps
It will help us improve the performance of our website and those of our partners who use the Adobe Experience Cloud
If disabled:
We won’t be able to remember you from session to session so the experience may not be tailored to your interests
We’ll still count your use of our site and services
You’ll still have access to the content of the site but certain features that depend on cookies may not function
You’ll still see ads, they just may not be as relevant to you
Operate the site and core servicesOperate site and measure engagement
Always active
These cookies are required, and they are used to enable the site and related services core functionality. Without them the site could not operate, so they cannot be disabled.
These cookies enable the site and related services’ core functionality and collect statistics about user engagement, such as counting active use to help us understand trends. These cookies cannot be disabled.
Measure performance
These cookies are used to analyze site usage to measure and improve performance. Without them Adobe cannot know what content is most valued and how often unique visitors return to the site, making it hard to improve information we offer to you.
These cookies are used to analyze site usage to measure and improve performance. Without them Adobe cannot know what content is most valued, making it hard to improve information we offer to you.
Extend functionality
These cookies are used to enhance the functionality of Adobe sites such as remembering your settings and preferences to deliver a personalized experience; for example, your username, your repeated visits, preferred language, your country, or any other saved preference.
Personalize advertising
These cookies are used to enable Adobe and our partners to serve ads more relevant to your interests. Without them you will still see ads, but they might not be as relevant to you.
Personalize advertising
These cookies are used to enable Adobe and our partners to serve ads more relevant to your interests. Without them you will still see ads, but they might not be as relevant to you.