After Effects ExtendScript Training: Ep. 15 part 2

July 13th 2012 08:20:53am

In this episode:

  • Create keyframes
  • Read keyframe values
  • Set keyframe values
  • Create function to collect all keyframes on a property (Key types: Hold, Easy Ease, Ease In, Ease Out, Roving)
  • Create function to transfer keyframes to another layer (Key types: Hold, Easy Ease, Ease In, Ease Out, Roving)

Update: 3/19/2017 Added code fix download
****This particular episode appears to have a few code mistakes on my part and needed some updating as it has been confusing some users when trying to learn it. I appologize for the headaches it may have caused. I have recently, with the help of viewer input, corrected the code and have decided to provide a zipped JSX of that corrected code. You can grab it at the green button to the right.

Still watch the video for most of the explanation on doing this, but please read through the JSX for notes that will explain what each part is doing.

Welcome to episode 15 of the After Effects ExtendScript Training series. This week, it’s keyframes, keyframes, keyframes. Back in episodes 4, 5, and 6, we went over reading values and setting values on various project items and layer properties, but we never took that step down into the next level of the hierarchy and talk about keyframes. The fact of the matter was that keyframes are and are not as straight forward as you may think. Because of this, it was necessary to give keyframes their own episode. Which quickly became a two part episode as well.

We will go through and manually create standard keyframes on a property, read keyframe values from a property, as well as transfer keyframes from one layer property to another layer property. This will also involve building some handy functions which will allow us to deal with standard, hold, ease and roving keyframes. We have lots to go over, so let’s get started.

Checkout more:
Expression Shorts Sample Images Part 2
After Effects ExtendScript Training: Ep. 19 Part 2
X-Particles Tangential Advection
Organize Project Assets Pro After Effects Script
X-Particles Custom Crown Splash