Questions tagged [after-effects-expressions]

A script used to set a property value for a layer in an After Effects composition.

Filter by
Sorted by
Tagged with
6
votes
3answers
15k views

How to loop an animated mask?

I'm trying to make a loop from an animated mask, but each time I introduce my loop expression: loopOut (type="cycle", numKeyframes = 0), After Effects is telling me that: "Expression is deactivated,...
5
votes
1answer
4k views

After Effects: Increment a Variable over time

I have following problem: I am trying to tweak the speed of a Math.sin function. Therefore I need a variable that incerements over time with a combination of a keyframed speed variable. Sounds ...
5
votes
1answer
98 views

Evolving lines with mirror effect

I would like to create evolving lines similar to those in this sequence (starting at 0:28): I know how to reveal lines, but I struggle to make the line moving so ...
4
votes
1answer
7k views

After Effects: Parent a Camera's position to a Null-Object with specific Off-Set

I am just struggling with a simple expression thing I guess. I have a camera looking at an Object in 3D Space. Actually The Object is at [0,0,0]. The Camera's position is at [29,-1637,-2248]. What I ...
4
votes
1answer
2k views

Scaling “Stroke” Effect “Brush Size” while scaling composition?

I've got a 100x100px composition with a Mask containing a Stroke effect used to animate the drawing of a vector. The problem I'm having is when I drop this composition into a larger one and attempt to ...
4
votes
2answers
6k views

Any way to change properties of subcomp based on parent comp?

I have a dozen 'main' comps which have a bunch of nested comps. I need to create about 30 versions of each main comp, with different colors. The subcomps are animated shapes, which take their color ...
3
votes
2answers
6k views

After Effects distance between two points

I have written an expression to get the distance between two points, but it does not work and I haven't a clue why. It's pretty simple: function findDistance(xa, xb, ya, yb) { return Math.sqrt( (...
3
votes
2answers
2k views

After Effects expression - define two positions, tween back and forth

So I want to do something simple: define two sets of coordinates (a "from" and a "to" position), along with a duration in frames. I want the animation to be executed, then reversed, and looped. I ...
3
votes
2answers
3k views

Can you measure the width of a character in an AE expression?

I have a type effect that requires a couple of layers, one with the type, and another moving behind the letters as they appear (simulating the little text bubbles you get when typing on an iPhone). It'...
3
votes
1answer
7k views

How to Sync a Layer's Position, to a Layer in Another (Time Remapped) Comp

So we are making a 2D animation. We have character assets in PSD. We have a "Character" Comp which contains the following: "Eyes" Comp, "Mouth" Comp and "Body" Comp. "Body" has the 2-second walk-...
3
votes
1answer
91 views

Scripting - Where is the documentation for the Layer#Effects attribute?

I have been trying to make a script that will automatically apply an effect to the selected layer. So far, it looks like this: var myLayer = app.project.activeItem.selectedLayers[0]; I have seen ...
3
votes
2answers
11k views

After Effects: Create an isometric/orthographic Camera

I know that its not possible to create an non-perspective camera in after effects. But I read about a way to fake the effect of an isometric camera in after effects. I just didn't find something ...
3
votes
1answer
24 views

Make a solid push another solid

Here's the situation: I'm not new to After Effects. I've been using it for a while and I could say I'm an intermediate user. My knowledge is limited to everything but expressions. So, I have a white ...
3
votes
1answer
2k views

Parenting a null causes unexpected results

I've built an arrow that is controlled by two nulls - one at the start point and one at the end point. Using some trigonometry in some expressions, it works. When I move the nulls, the arrow resizes ...
2
votes
1answer
357 views

How to import 2D position data into After Effects

If I have a .csv file of x / y coordinates, representing positional data of an object in an animation, what's the easiest way to apply that to a 2D null in After Effects? Eg: Frame,Xpos,Ypos 1,33,...
2
votes
2answers
2k views

Can an expression parse a text file or the expression of another property in After Effects?

I am going to have tons of layers use the same expression, but I need to be able to edit the expression later without having to edit it for every layer. I also can't simply have each layer's property ...
2
votes
1answer
29 views

random copied and being truly random

I have a comp... one null with an expression slider and the rest are image layers. the null with this expression, controls a random animation of the images beneath the null: Math.abs(Math.round(...
2
votes
1answer
255 views

Physics and Chemistry Animations in After Effects

Are there any plugins/physics simulation engines other than Newton that will be useful for creating Physics and Chemistry content in After Effects?? For example, if I have a requirement to create the ...
2
votes
1answer
49 views

changing this code to check for a collision from a specific layer

I got this code from motionscript and I would like to change it to check a specific layer instead of all the layers for a collision. Maybe within the function checklayers() and then there's the if ...
2
votes
1answer
2k views

After Effects: controlling slider in ExtendScript

I'm newbie in After Effects. I've learned how to control slider from expressions. Now I need to get value of slider in script (jsx/extendscript). How can I achieve that? I've tried (in *.jsx): var a =...
2
votes
1answer
7k views

Parent a Position X from Particular World to it's own transform xPosition

I have a layer called Blue. I applied CC Particular World to a ShapeLayer with an animated separated X Position (with 3 keyframes). The thing is that the effect doesn't move along with the shape. So ...
2
votes
1answer
167 views

After Effects: Images on whole pixel still blurry edges

I am jsut working on a new After Effects Project. I have a bunch of images I am working with and I just wondered, why the edges of images are so blurry. First I thought it might have something to do ...
2
votes
2answers
239 views

After effects position expression issue

I'm trying to make clouds move out of frame and than appear again from the other side. var vel = 100; var pInit = position.valueAtTime(0)[0]; // initial position of a cloud var tInit = (thisComp....
2
votes
1answer
506 views

AE: Hide object after random time

So, I've a bunch of objects inside a composition and my ideia is the following: I want to create an expression in one of them that will change the opacity of that object to 0 after a random time. ...
2
votes
1answer
46 views

position expression

Im trying to do an expression to my object. I want to make him come out from the side to center. I searched a lot but I didnt find any expression. I can do it with keyframes but I need expression only....
2
votes
1answer
95 views

help to animate an lower thirds that's positioned by expressions

I'm new to using expressions in after effects and I've also hardly touched Java before. However using some online tutorials and common sense, I managed to create a lower thirds title graphic ...
2
votes
2answers
2k views

Parent Pick Whip Not Showed On Effect Transform Keyframing

I wanted to parent the effect transform expression to the tracking motion (null object) When I saw the tutorials.. it showed me to click and drag the pick whip, but on my after effects there are no ...
2
votes
1answer
1k views

How do I create this slide/bouncy effect in After Effects?

The news channel in my country is using a nice bouncy/slide effect. Now I'm trying to recreate that in After Effects. I tried many effects and expressions, Googled a lot and watched many tutorials. ...
2
votes
1answer
171 views

Animate a Slider With Json File Import?

So let me explain, I have a json file with numbers and the duration of how long each number should be displayed which is 4 seconds. I want the slider to show the first number (which is 1,000) and then ...
2
votes
1answer
392 views

Animating particles with collision avoidance?

I need to drive a large number of small 2D cars around on screen in a fairly random fashion... I have the Trapcode Suite. I'd really like them not to overlap each other. What's the easiest way to ...
2
votes
1answer
123 views

Reveal entire layer in after effects with mask partial overlap

I'm looking for a way to reveal my entire layer when a portion of my mask covers the layer. I have a composition with multiple individual layers, that I want to reveal with a set matte. However lets ...
1
vote
1answer
101 views

Create an animation of a slider-crank mechanism system

I'm trying to create an animation of a slider-crank mechanism system in After Effects, but I'm finding it difficult to create a move closer to a real simulation. Would anyone have an idea how I ...
1
vote
1answer
1k views

set scale in pixels in After Effects using Expressions

You can right click on a scale, hit Edit, and then enter scale in Pixels, inches , % of Comp, of source.... I would like to set the scale in pixels. How can set the units using expressions? I tried ...
1
vote
1answer
4k views

Control key frame value with slider control

I have an object in After Effects comp and I need its scale to change from keyframe A to keyframe B and I need keyframe A to have value of 95% and keyframe B value of whatever is set via slider ...
1
vote
1answer
764 views

Link audio to opacity effect of an image in After Effects

I have 3 audio files from a podcast. 1 file from Steve, one from john, and the other is from me. I have a composition with the three audio files and also 3 png images of our faces, one for each of ...
1
vote
1answer
524 views

How to automatically pull text out of a video

I am currently experimenting with after effects and premiere to see what sort of strange things they might be capable of and was hoping someone had some insight on an Idea I had. In this situation I ...
1
vote
1answer
34 views

Defining animation once, then repeating across a selection of shapes in a cascading manner?

I have a comp with 20 windows (for a building), that I want to animate in a cascading manner (i.e. windows 1 though 20) with half a second in between each window animates in. Is there a way for me to ...
1
vote
1answer
15 views

How to link the start and pause of an animation to a specific height from a null object?

I'll try to explain a little bit more in-depth, I'm making a set of animations for a website and the client essentially wants a preview of how each element reacts to each other as you're scrolling ...
1
vote
1answer
89 views

After Effects - Can Expressions read from Extend Script?

Backstory I'm trying to learn about After Effects' different abilities. Question If I make a function using extend script like so function alertStuff() { alert("stuff") } Can I call this ...
1
vote
1answer
36 views

using images as text characters in after effects

I've made a series of comps each representing a letter from the alphabet. Is there an expression or plugin where I can convert the relevant text character on screen to be replaced by the appropriate ...
1
vote
2answers
260 views

How to translate face tracking offset values into a 3D null position

I want to put a 2D hat on a video clip of a person, whose head is tilting as he speaks. I can face-track the face using After Effects CC 2017. I end up with detailed tracking data, which includes ...
1
vote
1answer
2k views

How to loop outer glow layer style in After Effects?

I have a layer in After Effects to which I have applied an outer glow as a layer style. Ideally I would like the glow to turn off and on, in a loop, starting at a point in time and then stopping. Is ...
1
vote
1answer
2k views

After Effects: Linear Expression - going from value 1 to another value and then back to value 1

Essentially I am trying to get a position expression on a video layer (two dimensional) to go from 640, 360 (middle of the screen) to another value defined by an expression control and then back to ...
1
vote
1answer
710 views

How to get 'outer' composition's current time?

Suppose I've got 2 sequences, one named OUTER and one named INNER. Composition INNER is inside composition OUTER. INNER is shorter than OUTER and is placed in the middle of it's timeline. Inside INNER ...
1
vote
1answer
63 views

Making a simple animated template for frequent slight changes

I've made an example version of a news video in After Effects that we will be altering weekly. The template might be used by less skilled people and I'd like to know what (if there are) ways to make ...
1
vote
1answer
12 views

Best way to create external alterable configuration file to be read by After Effects and Java

Background I'm trying to make an AE animation to visualize some data. Since the raw data I'm using comes in json files and needs to be parsed and analyzed to find useful statistics, I'm using a java ...
1
vote
1answer
18 views

AE: Limit Characters in random range selector animation

I'm animating a roulette table; above the roulette is an animated text with random numbers untill the winning numbers apears on the roulette table; but the random numbers are from 0-99; i've made it ...
1
vote
0answers
17 views

'Pin-art' effect in After effects

I'm looking for a way to create a 'Pin art toy' effect in after effects. Basically a load of extruded hexagons that can be pushed up and down by a shape behind them. Would be great if this could be ...
1
vote
1answer
145 views

Modify the scale depending on the order of the keyframe values

I want to make a Dorkly animation ( ), that is, 8-bit puppets opening and closing their mouths. The difference I want to add is when the mouth is open the puppet get ...
1
vote
1answer
65 views

Marker animation trigger from parent composition

Is it possible to trigger animation from parent comp layer? I have been trying this expression with my basic coding skills but couldn't make it work. n = comp("myparentComp").layer("myLayer").marker....