

Use the number from a text layer in a slider parseFloat(thisComp.layer("text").text.sourceText) Īlways keep Anchor Point centred tempx = thisLayer.sourceRectAtTime(time,false).width/2 + thisLayer.sourceRectAtTime(time,false).left Get Source text and Style FOR AE2019+ var t = thisComp.layer("tool").text.sourceText If ((time > timeToStart) & (time 0 ) value else 0 Get the number of words in a text layer myText = text.sourceText Start wiggling at time 2 seconds and stop wiggling it at time 4 seconds: timeToStart = 2 Stop wiggling it at time 4 seconds: timeToStop = 4 W = linear(t, 0, loopTime, wiggle1, wiggle2) Wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime) Posted by Alexander Vinogradov on Decemat 3:53 pm I’m trying to add an expression for Opacity but AE tells me that thisComp is undefined as well as thisComp. Wiggle(fps,amount,octaves = 1, amp_mult = 0.5,(Math.round(time*fps))/fps) Wiggle +ve only var myWiggle = wiggle(5,100) V Jumpy Wiggle 2 is similar to 1, but works at a defined FPS so your “jump” will happen at a regular pace. Jumpy Wiggle //Jumpy Wiggle 1 (moves at a random FPS)

Wiggle X and Y separately: ,wiggle(1,100)] Great for lower thirds, no keyframes required – apply to layer’s opacity, the animation will start on the inPoint and end on the OutPoint fadeDuration = 0.75 įadeIn = easeIn(time,inPoint,inPoint + fadeDuration, 0, 100) įadeOut = easeOut(time,outPoint - fadeDuration, outPoint,0,100) X = position + (time - inPoint) *veloc Īuto fade in and out Layer depending on layer in/out points SeedRandom(index,true) // set pre-run for endTĭrifting text from layer InPoint veloc = -10 //horizontal velocity (pixels per second) In a random amount of time and pause in this position for a random amount of time moveMin =. RadiansToDegrees(Math.atan2(delta,delta)) Rotation delay from the layer above delayFrames = thisComp.layer("control").effect("delayvalue")("Slider") Scale delay from the layer above 5 frame delayFrames = 5 Value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t) Ĭonstant Stroke when scaling s = transform.scale V = velocityAtTime(key(n).time - ameDuration/10) Animation and Movement Bounce and Overshoot n = 0 if (numKeys > 0) Bounce and Overshoot v2 amp = 0.05 I have split each expression up into sections. I won’t be able to credit each expression as I have gathered these all in a Word Doc that I have been adding to for years. Most of these expressions I have found or made myself with the help of Dan Ebberts or the Creative Cow forum. I’ve been using expressions more and more over the years and have collected loads of useful and time-saving hacks that help me in my projects, some of these expressions date back to 2006 but still are useful and relevant today.

To use an expression, just ALT-CLICK on any parameter that has a stopwatch icon It makes animations and your life easy! It may seem scary if you are new, but trust me, they are so useful and will become your best friend the more you use them and understand them. Keep these around for the next time you need to easily create any type of text versioning, especially for an ocean of compositions.An After Effect expression is a programming Javascript language code that you insert in The expressions used are in two parts:ĬompName = thisComp.name //Be sure to use thisComp.name if you’re planning on duplicating the compĬompName.substring(0, compName.indexOf(“,”))ĬompName.substring(compName.indexOf(“,”)+2)
#After effects expressions thiscomp how to#
Sergei walks through how to set that all up and shows how the expressions work.

This can be a great way to make many changes to a lower third, simply by duplicating a composition and titling it. Working with expressions in After Effects, Sergei shows how you can automatically change a type layer to reflect what the composition name is. Have a lot of labels, lower thirds, or any other type versioning to do in After Effects? Then you should check out this tip by Ukramedia’s Sergei Prokhnevskiy. Ukramedia’s Sergei Prokhnevskiy Shows a Tick That Will Have You Replacing Text Layer Names With Composition Names in After Effects
