 # Matthieu Robert Related:  AExpressions

Matthieu Frémeaux Ideas to Creations: AE | Expression Driven Gauge - Part 2 Taking Control Select the null and go Effect > Expression Controls > Slider Control. This is going to be the master control. We'll interact entirely with the null object. You can press Enter to rename it. Master is going to have a range of 0-100%. 0% being empty, 100% being full. Now, we need to figure out the range of rotation we have to work with. I'm getting-50 degrees: Sweet. We can apply the expression that makes our Master Slider rotate the Null. master=thisComp.layer("Null 1").effect("Master")("Slider"); linear(master,0,100,-50,90); First we're defining a variable: master. Then, linear(). So, we tell it the control to monitor (master). Linear is one of the most common expressions I use especially when building preset effects. Okay, let's apply the expression to make the numbers change. Select the text layer, twirl down to "Source Text". Remember, you can always pick-whip controls instead of typing it all the time, or copy the variable's line to the clipboard. Confusing? OKAY!

MotionScript.com - main page MotionScript.com - main page Mathias Möhl After Effects expressions — Simon Bronson [ Open All | Close All ] 1] Numbers: Add a slider and name to 'Value' places = 3; //number of decimal places desired val = effect("Value")("Slider"); //sub in the name of your slider here factor = Math.pow(0.1, places) ; sign = ""; if (val < 0) sign = "-"; val = Math.abs(val); whole = Math.floor(val); fraction = "" + Math.round((val - whole)/factor)*factor; for (fraction; fraction.length < places+2; fraction+="0"); sign + whole + "." + fraction.substring(2, places+2). 2] Position from Layer above: thisComp.layer(index - 1).transform.position 3] Number of decimal places: //--Begin Expression nums = thisComp.layer("Deep Lime Green Solid 1").effect("Slider Control")("Slider"); numOfPlaces = 3; //--Do not modify below this line function roundTo(number, places) { num = Math.round ( Math.pow(number, places) ); 4] Number Rounding: 5] Round Decimal: Math.round(your_decimal_number_here) //--End expression 6] Random Movement: 7] Time Output: //Contains rounding + always display 2 digits 8] Looping:

AE ENHANCERS • View topic - Distribute layers in shape of sphere This expression spreads layers in a 3D space to form a sphere. How does it do it? Simply by cutting a sphere in circular slices. These slices are, in my expression, the "rows". The "middle" slice is row 0, the slice above is row 1, and so forth. The sphere is symetrical to the place (x/z) containing row 0. Let's take a closer look : The Null object "A" is in the middle of the sphere and is the parent of all the other layers. The value "a" allows to manage the space between two layers. For the sphere to be perfectly homogeneous, this space has to be identical for all layers. The radius of the "middle" slice (row 0) is d, the radius of the sphere. Code: d*a=d*cos(a*i)*x Where x is the spacing angle to row i. So we get : x=a/cos(a*i) The second difficulty is the amount of layers per slice. 2*Math.PI/spacing angle For it to always be an integer, I added the Math.round function : s=Math.round(2*Math.PI/(a/Math.cos(a*i))) From there one has to adjust the spacing angle for each row, which becomes : and

Trish and Chris Meyer Smooth Animation Tips from Rocketpanda | blog | jelly animation | jelly This is the first in a series of animation tips from our new house motion director, Rocketpanda: I created “Hotel trip” in a couple of evenings, using a small illustration Goran had produced as a simple test. I’ve been asked how I made some of the smooth moves and colour shifting; now, let me explain this one by each tool I used... Ease & Whizz This fabulous script will help you ease the property you choose from the time line. Time Displacement This one is a built-in effect in After Effects, and will shift the time alignment of the pixels of the composition you apply it to, evaluating the time shifting through a grey-scale. These triangles may explain this a little better. Duik tools This will offer you a great set of different tools, but now, I’ll only have a look at the spring one. This (above) is a good example; I just animated the rotation with two key frames, all the springiness is automated thanks to Duik. Nulls You wouldn’t believe how much I use nulls!

Related: