Free Function Friday Complete Series
Welcome to the epic collection of all forty episodes of Free Function Friday. A series specifically about After Effects ExtendScript coding and how it could be levied to speed up repetitive tasks, inform us on aspects of our project, and allow us to create helpful automation. Free Function Friday was a spinoff series from the very popular After Effects ExtendScript Training series created back in 2013. It had packed many hours of training into nineteen episodes. Some of which were multipart episodes. Free Function Friday continued the free educational training of ExtendScript with newer information, better techniques, and more reusable code. It was meant as a further jumping point for non and seasoned programmers alike. Most of the code talked about could be combined to build your own scripts easily, others as tools to help script development, or to address a specific area of After Effects. As mentioned above, this new series had forty episodes and comes in at eleven hours and forty minutes of training content. All for free.
My hope for this series as with the last few, is that you find it useful in some way. Whether you are a beginner wanting to get started in scripting After Effects, an intermediate ExtendScript coder that is wanting some more tools to add to their collection, or an advanced programmer just looking for a bit of understanding of how the ExtendScript language operates. There’s usually something for everyone.
Below is a list of each episode and a brief description. You may want to right click on the links and open in them in a new tab/window just so the full list is still easily accessible for you. Happy learning!
Download the entire series for $15 at gumroad.com/davidtorno
EP1: getLayerEffects Retrieves all of the plugin effects on a layer.
EP2: runMenuCmd Will trigger a menu command as if the cursor clicked it.
EP3: aeToOSFolder Will recreate your AE folder structure in the OS folder of your choice.
EP4: itemLongestSide Returns which side of a layer or comp is longest.
EP5: collectAllPrecomps Returns an Array collection of any compositions that have been precomposed.
EP6: getSelLayBlendMode Tells you the blending mode setting of a layer in a more readable way.
EP7: moveToFolder Will move a project item(s) into a specific project folder.
EP8: retrievePrimaryComps Returns an Array collection of CompItem objects that have NOT been precomposed.
EP9: resizeComp Will resize your composition from the center outwards.
EP10: collectFontsUsed returns an Array collection of the fonts used in your project.
EP11: findCompByName Will find and return any CompItem object that matches a name you supply it.
EP12: aeVer Returns the version of After Effects in a more manageable way.
EP13: importAFile Imports a folder of files or a specific file format of your choice.
EP14: getAllTextLayers Returns an Array collection of TextLayer objects.
EP15: itemFolderHierarchy Returns the project folder heirarchy path to a project item.
EP16: layerPropMatchNames Returns and Array collection of property matchNames for a Layer Object.
EP17: getAELanguage Returns the After Effects language name in a more sensible form.
EP18: getThirdPartyFX Returns an Object Array containing data on third party plugins installed in After Effects.
EP19: showHideControls Makes showing and hiding multiple ScriptUI control and container elements easier.
EP20: collectCompCameras Returns an Array collection of CameraLayer objects.
EP21: getLightType Returns the light type of a LightLayer.
EP22: getCurComp Returns the currently open CompItem object.
EP23: changeFolderPaths Changes renderqueue item “Output To” folder path, with options to choose Queued, Unqueued, or both.
EP24: collectAllSolids Returns an Array collection of SolidSource FootageItem objects.
EP25: applyPluginEffect Applies a plugin to multiple layers at once.
EP26: currentTime Returns the current time, with options for customizing the separator, and choosing from military or standard formatting.
EP27: layersAtCurTime Returns an Array collection of layer objects that are actively present at the composition’s current time indicator.
EP28: isLayerRetimed Checks a composition layer to see if it is retimed, and returns an object Array of boolean values for each type of layer retiming.
EP29: addCompMarker Will apply a comp marker to the current composition at the current time indicator location.
EP30: removeUnusedEffects Will search the entire project and remove plugin effects that are not being used.
EP31: getKeysBasic Returns and Array collection of keyframe data for a property.
EP32: locateMidPoint Will return a vector array value for the mid point between two or more selected layers.
EP33: removeUnusedSolids Will search through the project items and remove any SolidSource item that is not being used.
EP34: removeKeyframes Removes keyframes from a property you supply it.
EP35: fpsCheck Returns an Array collection of item names that do not match a specified frames per second (fps) value you supply it.
EP36: getLabelColorNames Returns an Array collection of project/layer Label Color names.
EP37: getMaskPaths Returns mask shape path data for an AVLayer object.
EP38: setMaskPaths Applies mask shape path data to an AVLayer.
EP39: getLayFXMatchNames Returns plugin effect matchNames easily for use in scripts.
EP40: fillCompWithShape Translates a chosen mask shape path into a ShapeLayer and copies it by a chosen amount randomly within the composition 2D space.
Legal note: The Adobe ExtendScript code talked about in this article and accompanying embedded video(s), URL links, and/or graphic images are not guaranteed to be compatible with every version of After Effects. David Torno, ProVideo Coalition, and Moviola will not be held liable for any misuse or incorrect use of the provided ExtendScript code. Use at your own risk.
All of the code I provide in this series, has been created and tested in After Effects CC 2014. Unless otherwise specified in the episode, the code should be compatible with After Effects CS6 through CC 2015. I’ve done my best to avoid depreciated code (code that Adobe removed at some point), and made these functions as compatible as possible. There will however be the occasional piece of code that is brand new as of a certain version of After Effects and therefore will not be backwards compatible from that version. I will mention these if that is the case.
With that said, all the code I provide in this series is open source and free to use in your scripts. I highly encourage you to expand and improve upon the code I provide and start making your own custom functions as well, but please do not repost the code I show in this series as is and claim it as your own. If you use any of the code provided in this series please give credit where credit is due. This series is meant to provide, what I feel is useful code, as well as to hopefully further explain ExtendScript and it’s quirks. While the functions we build throughout this series can perform a task all on their own, they are not meant to be a solo script. How you combine them together and expand upon them is when you will gain the most from these functions.