Skip to main content

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
0 votes
1 answer
13 views

How do I make a numbered list in adobe after effects?

I need to make an animation with a numbered list. So that the squares with the text "Task 1, task 2 ..." move to the left and the first one disappears from the left, and then the next ...
Георгий Мишарин's user avatar
0 votes
1 answer
12 views

Adding the index expression to a rotation property and making that change over multiple keyframes?

I would like to reduce the value looping rotation of the leaves on this foliage design further towards the base of the design. I could do this manually by setting two keyframes and setting the ...
Jonathan Beech's user avatar
0 votes
1 answer
13 views

Change Colours of Composition

So, I downloaded an after effects file with animated boxes, lets suppose for example there are three boxes , all 3 boxes are in three different composition. when I change colour of the box in one ...
Susmi Chan's user avatar
1 vote
0 answers
25 views

Use markers in After Effects as triggers for a random color animation

How to change the color of a layer randomly in markers?
leomiami's user avatar
1 vote
1 answer
39 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 ...
Mike Corrente's user avatar
1 vote
0 answers
10 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(...
Ouchs's user avatar
  • 11
1 vote
0 answers
27 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 ...
Mike's user avatar
  • 11
1 vote
1 answer
259 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 ...
JoaoB's user avatar
  • 11
1 vote
1 answer
99 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 ...
hanumanDev's user avatar
0 votes
1 answer
124 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 ...
leguchi's user avatar
  • 101
1 vote
1 answer
115 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 ...
tomh's user avatar
  • 7,908
1 vote
1 answer
209 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 ...
Pierce Wilson's user avatar
1 vote
0 answers
43 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 ...
tomh's user avatar
  • 7,908
0 votes
0 answers
100 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 ...
BinaryJoe01's user avatar
0 votes
1 answer
139 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 ...
Apeiron_Sound's user avatar
0 votes
1 answer
457 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 ...
Russian Blue's user avatar
0 votes
1 answer
1k 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 ...
Wessel van Dam's user avatar
1 vote
0 answers
33 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(...
James Woods's user avatar
3 votes
1 answer
432 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 ...
D34DC3N73R's user avatar
1 vote
2 answers
228 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 ...
mattia c's user avatar
2 votes
1 answer
728 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 ...
Onion44's user avatar
  • 31
1 vote
0 answers
92 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 ...
Marten Zander's user avatar
0 votes
1 answer
2k 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 ...
AutoBaker's user avatar
  • 368
3 votes
2 answers
719 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 ...
Apeiron_Sound's user avatar
0 votes
1 answer
161 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 ...
bandybabboon's user avatar
2 votes
1 answer
41 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 ...
Apeiron_Sound's user avatar
2 votes
1 answer
136 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 ...
Polly's user avatar
  • 123
0 votes
1 answer
225 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(&...
m16u31's user avatar
  • 1
0 votes
1 answer
31 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 ...
user36191's user avatar
0 votes
1 answer
730 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 > ...
spund3's user avatar
  • 156
3 votes
1 answer
69 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 ...
Picard102's user avatar
  • 145
1 vote
1 answer
21 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 ...
Picard102's user avatar
  • 145
0 votes
1 answer
1k 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/...
Ton's user avatar
  • 1
1 vote
1 answer
57 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 ...
Jacob Crocker's user avatar
1 vote
0 answers
253 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 ...
Maclad's user avatar
  • 11
1 vote
1 answer
229 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 ...
smpa01's user avatar
  • 121
1 vote
0 answers
26 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(...
Aravindh Vasu's user avatar
2 votes
0 answers
54 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?
TomTe's user avatar
  • 121
1 vote
1 answer
272 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, ...
manuel-ae's user avatar
0 votes
1 answer
339 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 ...
tpg's user avatar
  • 11
1 vote
1 answer
207 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 ...
joud desing's user avatar
0 votes
0 answers
90 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 ...
Dude's user avatar
  • 1
1 vote
2 answers
148 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; }
mike's user avatar
  • 11
0 votes
1 answer
62 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(...
joud desing's user avatar
0 votes
1 answer
572 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 ...
Apeiron_Sound's user avatar
0 votes
1 answer
47 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 ...
AutoBaker's user avatar
  • 368
1 vote
1 answer
194 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 ...
Ross Aitken's user avatar
0 votes
1 answer
32 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....
Elina Polishchuk's user avatar
1 vote
1 answer
592 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,...
codeProtect's user avatar
2 votes
1 answer
24 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 ...
Haimeng's user avatar
  • 21