# Dan Ebberts's resource for AE scripting and expressions

Related:  afx scriptingScripting & Expressions

Expressions - Introduction Introduction to Expressions Before we really focus on Expressions, we should talk a little about relationships in After Effects in general. As far as I know, there are five main ways to establish relationships between elements in After Effects: Brute Force: you simply keyframe things in a way that makes them look like they’re related, even though there’s no essential connection between them. Pre-composing: You can place a number of layers together in one comp, and then use that comp as a layer in a second comp. Parenting: New to After Effects 5.0, Parenting lets you establish hierarchical relationships without pre-composing. Motion Math: Like Expressions, Motion Math is a simple programming environment within After Effects. Expressions: Expressions are similar to Motion Math, but maintain ‘live’ relationships. Of these types of relationships, Expressions may be the most powerful, but also can be the toughest to create, with the least assistance from After Effects. When to Use Expressions

MotionScript.com - main page Expressions From 1. Intertial Bounce Essentially, Inertial Bounce creates a bouncing motion of any parameter from one keyframe to the next, based on its velocity. Being that true “velocity” includes the vector (or traveling direction in 3D space), the bounce happens in whatever direction the object is traveling. This also accounts for scalar or array values, so you’ll find that this expression works just as well on 2D rotation as it does on 3D position. This expression is a bit of a community effort. Modify “amp” for the amplitude or how much bounce is present. amp = .1; freq = 2.0; decay = 2.0; n = 0; if (numKeys > 0){ n = nearestKey(time).index; if (key(n).time > time){ n--; }} if (n == 0){ t = 0; }else{ t = time - key(n).time; } if (n > 0){ v = velocityAtTime(key(n).time - thisComp.frameDuration/10); value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); }else{value} 2. //Autofade: Add to opacity 3. This is a cool expression to use on text.

wiggle loop Creating Motion Graphics by Chris & Trish Meyer | Founders by Chris and Trish Meyer Chris & Trish Meyer founded Crish Design (formerly known as CyberMotion) in the very earliest days of the desktop motion graphics industry. Their design and animation work has appeared on shows and promos for CBS, NBC, ABC, Fox, HBO, PBS, and TLC; in opening titles for several movies including Cold Mountain and The Talented Mr. Ripley; at trade shows and press events for corporate clients ranging from Apple to Xerox; and in special venues encompassing IMAX, CircleVision, the NBC AstroVision sign in Times Square, and the four-block-long Fremont... Read More After Effects CC NAB Preview A sneak peek at some of the new features planned for the next version of After Effects (plus Premiere Pro). By Chris and Trish Meyer | April 01, 2014 In preparation for the 2014 NAB Show, Adobe is previewing the features slated for the next versions of their video software. Read More 0 Comments Adobe Premiere Pro and Multiple GPUs By Chris and Trish Meyer | March 28, 2014 Read More Read More

What's your favourite AE Script? » helloluxx I’m not sure if you use scripts in your day to day workflow, whether in After Effects, Cinema4D, or what ever application you choose to abuse. I recently asked a question on Twitter to find out which After Effects scripts were the favourites of my followers. I use a few scripts all the time and knew that my selection was limited. Rather than spend hours searching online for possible gems, I thought it would be far more prudent to ask for recommendations. After 24 hours of replies, I compiled all the answers and have posted the list below. Here are a few to get you going….. For those of you that would like to get your hands dirty and learn the art of scripting. Anyway enough of all this chatter, on with the AE Scripts. Kinda Sorta rd: Kinda Sorta BG Renderer Post Render Actions BG Renderer BG Renderer Pro 3D Extruder 3D Extruder Speed:

After Effects Expressions I realize that expressions can be daunting, and some would rather copy and past useful code rather than learn the language. That’s cool with me. Therefore, I’d like to share with you my top 5 after effects expressions. These are expressions I use in just about every project, and I consider them to be incredible workflow enhancements. Download My Top 5 After Effects Expressions as FFX presets here. 1. Essentially, Inertial Bounce creates a bouncing motion of any parameter from one keyframe to the next, based on its velocity. This expression is a bit of a community effort. Modify “amp” for the amplitude or how much bounce is present. amp = .1; freq = 2.0; decay = 2.0; n = 0; if (numKeys > 0){ n = nearestKey(time).index; if (key(n).time > time){ n--; }} if (n == 0){ t = 0; }else{ t = time - key(n).time; } if (n > 0){ v = velocityAtTime(key(n).time - thisComp.frameDuration/10); value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); }else{value} Like the free content here? 2. 3. 4.

Controlling Wiggle le freelance saucisse-after-effect-expressions Bonjour à tous, ça fait un bail, je vous l'accorde, mais comme je n'avais pas écrit de nouvelles expressions, je n'allais pas venir et raconter rien du tout. Quand j'ai un problème technique dans After Effect, je cherche une solution, et quand la solution contient des expressions, ça vient logiquement s'échouer ici.C'est le cas aujourd'hui, j'ai essayé de corriger une lacune du plugin Lux de Trapcode. Ce plugin relavement connu est très pratique, puisqu'il vous permet de simuler un éclairage volumétrique, à savoir que la lumière soit filtrée par les particules dans l'air. Vous trouverez tous les renseignements ici :Trapcode Lux Peut être existe-il d'autres éditeurs qui proposent un effet équivalent, mais je n'en connais pas d'autre.En général, j'essaye d'éviter de parler de plugin, car ça ne concerne pas tout le monde, mais celui ci est assez connu.Venons en au fait :Le "défaut" de Lux (qui sera je l'espère corrigé dans un théorique 2.0 ?....) avec Lux : avec Lux+saucisse: Ensuite :

Tutorial: After Effects Expression Debugging Techniques By Michele Yamazaki on Feb 11, 2014 at 12:00 AM It’s Tutorial Tuesday! Today we’re putting one new tutorial on our blog at the top of each hour for the next 24 hours. Here’s tutorial 4 of 24 and it’s a good one! Felt Tips at AE Tuts+ has a fantastic, in depth 50 minute tutorial on fixing issues with Expressions. Check out the Tuts+ websites for more great tutorials. Looking for more on Expressions? After Effects Expressions Series 1 - 6 - Expressions demistified. Posted in Tutorial Products Mentioned Adobe After Effects CC for Teams & Businesses Make the impossible possible with the new, more connected After Effects CC. After Effects Apprentice 2nd Edition If you're new to After Effects and want to get up to speed quickly, After Effects Apprentice was created just for you. MamoWorld iExpressions Contains over 100 iExpressions – and each of them comes with an easy and intuitive to use interface. MamoWorld ExpressionTimeline

Expression language reference Return type: Number or Array. Argument type: freq, amp, octaves, amp_mult, and t are Numbers. Randomly shakes (wiggles) the value of the property. freq value is the frequency in wiggles per second. amp value is the amplitude in units of the property to which it is applied. octaves is the number of octaves of noise to add together. amp_mult is the amount that amp is multiplied by for each octave. t is the base start time. Example: position.wiggle(5, 20, 3, .5) produces about 5 wiggles per second with an average size of about 20 pixels. This example, on a two-dimensional property such as Scale, wiggles both dimensions by the same amount: v = wiggle(5, 10); [v[0], v[0]] This example, on a two-dimensional property, wiggles only along the y axis: freq = 3; amp = 50; w = wiggle(freq,amp); [value[0],w[1]]; Paul Tuersley provides a script on the AE Enhancers forum that automatically adds wiggle, smooth, and loop expressions to selected properties.

global Position After Effects ExtendScript Training Complete Series by David Torno - ProVideo Coalition After Effects ExtendScript Training is a video training series on Adobe® ExtendScript for After Effects®. Below are direct links to the entire collection right here on PVC. Enjoy and please spread the word. The After Effects ExtendScript Training series is the first comprehensive video tutorial series focused on Adobe® ExtendScript. Episode 2 (Javascript Basics p1) Episode 3 (Javascript Basics p2) Episode 4 (After Effects Object Model structure overview / Script Preparation and development tips / Single Item Access of various project items, comps and layers) Episode 5 (Access Renderqueue items, output modules and file paths / Multiple item access of project items, comps and layers / Batch change all renderqueue items file paths) Episode 6 (Collecting data into an Array() / Changing values / Various tips) Episode 7 (Create new comps and folders / Create Null, Solid, and Text layers) Episode 9 (Globally change blue solids to red / Replace solid name blue with red) Episode 11 (Build floating GUI)

Related: