Questions tagged [after-effects-expressions]
A script used to set a property value for a layer in an After Effects composition.
137
questions
1
vote
1
answer
15
views
Bringing layers forward or sending back with After Effects expressions
I have two solids right next to each other. At certain points in the timeline, I increase the scale of one or the other for emphasis. The problem is that one of the solids is located behind the ...
1
vote
0
answers
5
views
Increasing Expression by Comp Index when access CSV File
I'm just wondering if someone can help me out. I'm getting error when trying to increase the location of the data in CSV by the composition index.
Here's code I am using
\\
var compIndex = parseInt(...
1
vote
0
answers
8
views
After Effects: Add a Null to a point of two path's intersection
I'm looking to position a null at the intersection of two paths. I'm creating a bending elbow rig with irregular shapes, and I wanted to be able to place something in the crease of the elbow as it ...
1
vote
1
answer
23
views
Making an After Effects layer follow another one at constant speed
I have the following expression on the position of a layer that makes it follow another layer(FollowNull). Basically, I set an initial position with a PointController and the expression does it's ...
1
vote
1
answer
28
views
How would I wiggle only on the y-axis when using wiggle with the slider expression control?
How would I use the wiggle expression only on the y-axis?
I'm using two sliders. The first for the frequency and the second for the amplitude.
Here's my expression so far. This works but wiggles on ...
0
votes
1
answer
21
views
After Effects: How to keep text same width through changes
Using After Effects, I am trying to do a countdown of 5 minutes with a setup like this: 5m 00s, 4m 59s, 4m 58s... I have the countdown already set up with Slider Control. However, I'm trying to use a ...
1
vote
1
answer
15
views
After Effects expression using Index position isn't working between comps and shapes
I have many shapes that I want to reference to a single comp with a shape in it, in case I need to change them later on.
The shapes are 2D and in different positions all over my canvas.
I want to be ...
1
vote
1
answer
104
views
After Effects: Simulate Line Spacing Controls Across Multiple Text Layer Position Values
I have four separate text layers (each have custom expressions so must be separate instead of a single paragraph) and I wish to create a single slider control that simulates a line spacing control ...
1
vote
0
answers
33
views
Generate a sound wave in After Effects that changes colour over time via an expression
I'm trying to find a way to generate a sound wave animation where the colour of the wave being generated changes as the person speaking swaps over. I can do this with text just fine, and I have ...
0
votes
0
answers
130
views
Add blank space to end of text
I have a CSV with text I'm pulling into after effects, and then using CC Reptile to duplicate it across the comp. However the issue is that the end of the text is too close to the CC Reptile generated ...
0
votes
0
answers
50
views
How do I clone layers in Adobe After Effects
Thanks in advance for your input.
First, I have a composition that has one square in it that has opacity and scale keyframe automations. This composition is named Square and is 25px by 25px.
Square ...
0
votes
1
answer
64
views
If function: turn into whole number when decimal is .0
I've created this slider and counter which works just fine going from 5x down to the W:
The problem is that I need to create a condition that when a number hits .0 it becomes a whole number, so in ...
0
votes
1
answer
156
views
Bounce effect is not working
I have applied 'bounce effect' following the rules. The first keyframe of scale was 0 and the second one was 100. but the scale gets bigger after second keyframe, increase its size.
Why is this ...
0
votes
1
answer
596
views
After Effects set keyframe value with slider and expression but interpolation with graph editor
In After Effects, I want to animate an object from a position A = (960, 540), being the center of my 1920x1080 composition, to a position B = (960 - offset, 540) to the left, where offset is a ...
1
vote
0
answers
29
views
Trigger on markers
Can someone please break down this small bit of code for me, at a highlevel. Particularly the part n=n-1, I haven't worked out why we minus 1 from the marker here.
Thanks
n = marker.nearestKey(...
3
votes
1
answer
295
views
After Effects Trim paths offset corner position based on rectangle width and height
I think it would be easier to share an image to show what I'm trying to accomplish.
This will be a mogrt so the actual rectangle size / aspect ratio is determined by variable text size.
But, I think ...
1
vote
2
answers
155
views
After Effects: Detect point of intersection between two paths
I have two curves/paths (path A and B) and a null point A that follows path A with an arbitrary speed.
I need a null point B that follows the path B but with a speed dependent to null point A x ...
2
votes
1
answer
401
views
AE: Character Offset to Randomize Specific Pairs of Letters
I'd like the bottom left text to do the same as the top right, but the randomized text should be limited to "ATCG" in pairs (e.g. "AATTCCGG), instead of numbers. Is there a way to do ...
1
vote
0
answers
64
views
After Effects: Moving Protected Areas from a parent compositions in time
I recently learned about the neat responsive design feature in after effects called "protected areas". While understanding the need and basic functionality of that feature, I am still ...
0
votes
1
answer
1k
views
After effects expression how to round DOWN or remove numbers after decimal point
Thought this would be simple but doesn't seem so. How can I remove all numbers after the decimal point in an expression, or round down to 0 decimal places (which is the same result)
For instance I ...
3
votes
2
answers
538
views
AE Expression: Define FontSize
I'm making a complicated watch UI with a lot of expressions linked to different values of the display.
As you can see from the image below, 9hrs isn't bonded to an expression yet, but it's graphically ...
0
votes
1
answer
74
views
Is there a way to erase this white dot through 2 minutes of video?
I recorded a video explaining some complicated things, and when I looked on the big screen, the spotlight is reflecting off my nostril creating a shiny white dot which can be confused with the most ...
2
votes
1
answer
40
views
AE Counter Switch (Mins > Hs)
I'm trying to create an expression that changes source text from minutes to hours.
Here is an example of the graphic I'm animating:
As you can see the 3 hours counter is on hold, I want that to start ...
2
votes
1
answer
57
views
Color textbox with consistent height
After-Effects newbie here.
I have many many text lines all using exactly the same font. How can I best add background color textboxes with a consistent height?
The color background must not change ...
0
votes
1
answer
114
views
Please someone explain this expression
I am a newbie in animation and I am learning by watching different projects.
And I found this expression, but I try to find information and I am not lucky.
comp("Render Comp FHD").layer(&...
0
votes
1
answer
25
views
Grab the positioning of a layer inside a precomposed layer?
I have a precomposed layer that contains many shapes. Inside my global comp, I have various positions being applied to the precomposed layer. Unfortunately, I need everything in my precomposed layer ...
0
votes
1
answer
546
views
Change single keyframe value using expressions
I'm making a preset for my video projects. It's a shape layer that takes dimensions from a text layer, so the text fits accurately in the shape.
For this, I'm doing the following:
Shape Layer > ...
3
votes
1
answer
51
views
After Effects Prevent Widows in Text
So I'm pulling in text from a csv and I am trying to find a way to prevent widows (where there is a single word on a line).
in JS we'd do this text = text.replace(/\s(?=[^\s]*$)/g, ' ');
But ...
1
vote
1
answer
19
views
Expression to make image same height as shape
I have a shape that varies in height, and an image that varies in height.
I would like the image height to be the same height as the shape at all times.
I got as far as this, but none of my math seems ...
0
votes
1
answer
481
views
Color, font and text does not change in some parts
I cannot edit and change color, font, text/numbered values of the layers at all on some sections of the project template am working on (They are animated) it just types in the background of the text/...
1
vote
1
answer
26
views
Matte only over items of a specific color?
Example scenario:
I have 4 boxes.
Box 1 is blue, Boxes 2 & 3 are a specific color of red and Box 4 is green.
I would like Box 1 (blue) to only be visible when overlapping a red box.
If Box 1 ...
1
vote
0
answers
187
views
Adding Time offset to Marker expression
I have below expression on time-remap property which triggers transition based on the markers set on Action layer.
Is it possible to add certain frames of pre-roll to this expression so if the maker ...
1
vote
1
answer
153
views
Automated source text animation based on split
I have newly started in AE and I came across source text animation.
I have a requirement where I want to show multiple text on source text keyframe animation. I was wondering instead of writing each ...
1
vote
0
answers
24
views
How to write an expression for the following [Pop In object]?
Pop In object (@ 17s)
I'm fairly new to Expressions, I'm trying to attain this effect with expressions. I tried using the inertial bounce code on the net
n = 0;
if (numKeys > 0){
n = nearestKey(...
2
votes
0
answers
48
views
How to count datapoints in a JSON file with expressions in After Effects?
I load a JSON file with expressions in after effects. I need to know the number of datapoints in that JSON file for further processing.
How can i count (or index?) Them with expressions?
1
vote
1
answer
48
views
Detect duration of layer
I want to get the time / duration of the layer, when I stretch or lengthen the layer to produce an effect, for example I want the opacity of a layer to go to 0% 5 frames before the end of the layer, ...
0
votes
1
answer
265
views
In After effects how can I store the start and end point values of a gradient on one layer to generate the opposite values in another layer
my composition width is 4480
I have 2 layers with a gradient ramp on each
once I've entered the start and end position of the gradient on the first layer I need to have the opposite equivalent start ...
1
vote
1
answer
168
views
how to Checkbox Control one item twice in after effect?
I have a checkbox for background and its items. , write the script
if(thisComp.layer("Controller ").effect("Checkbox background ")("Checkbox")>0) {100} else {0};
it ...
0
votes
0
answers
86
views
after effects question about clamp
i have a question base on this video.
i have a problem with this code ! please help me it work's but ! for example i made a shape to use it as a controller for ...
1
vote
2
answers
125
views
How to change value when passing marker with certain comment
I wanted to change one value when marker with certain comment starts. I've tried something like this, but it doesn't work.
if (marker.comment("R1 L1").time > time){
value = 40;
}
0
votes
1
answer
51
views
How to using Math.round(easeOut(time…) in after affects?
I have a shape layer and I want to animate position x using this expression
x=clamp(thisComp.layer("Control Values").effect("Value Bar 1")("Slider"),0,100);
Math.round(...
0
votes
1
answer
315
views
AE Controller for changing layer into specific colours
I'm trying to create an Essential Graphic that allows the user to change a layer's colour into 4 specific ones:
Teal: 7, 250, 198
Pink: 252, 12, 119
Black: 0, 0, 0
White: 255, 255, 255
Colour Control ...
0
votes
1
answer
43
views
Does After Effects expressions follow BODMAS
In algebra the well-known BODMAS acronym represents the priority / order that operations are calculated in:
Brackets
Order
Division
Multiplication
Addition
Subtraction
When writing expressions in ...
1
vote
1
answer
134
views
Does anyone know how to control the stroke width of a shape using a control layer?
I recently created the attached graphic in Illustrator for a project and am trying to figure out how to create something similar in After Effects perhaps using a control layer.
The idea is that I want ...
0
votes
1
answer
30
views
Changing color of numbers in stock exchange AE template with expressions
I just wondering if there a way to optimize the way of changing color of numbers in stock exchange template by using expressions? When I put the +before the number it turns green and if -,it turns red....
1
vote
1
answer
408
views
After effect using multiple linear expression based on its value
I am new to After Effects. I want to write a linear expression on [Audio Amplitude] that is converted from an audio file based on its value as the below:
linear(value,0,15,0,0);
linear(value,16,20,...
2
votes
1
answer
21
views
Scale texts as the the parent shape layer changes
can anyone take a look at the animation I've made and provide some insights?
Here is what I've got so far.
https://drive.google.com/file/d/1eIdcAp9cK_AaA8UWBx9OKWAXXZWq0F2r/view?usp=sharing
The ...
1
vote
0
answers
21
views
Need helping creating dynamic lower third
I am new to After Effects so I apologize in advance for any misuse of terminology or lack of necessary information. Just let me know if you need anything and I can provide it.
I am trying to create a ...
1
vote
0
answers
282
views
How to link multiple keys to different sliders in After Effects
I'm a newbie with After Effects expressions, I need help with link few keyframes to different sliders on Null.
I found this expression and its work with 2 keypoints.
if (numKeys > 1){
t1 = key(1)....
1
vote
1
answer
117
views
Limit the scale of a pick whipped object
I want to make a speaker graphic 'wobble' to different frequencies..
Here's what I've done so far
I made a speaker graphic in a comp
And I parented the scale to a null in the main comp
And I isolated ...