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
1 vote
0 answers
7 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
21 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
8 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
10 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
61 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
43 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
57 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
41 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,525
1 vote
1 answer
140 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
36 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,525
0 votes
0 answers
66 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
83 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
232 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
751 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
32 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(...
Alex Peter James's user avatar
3 votes
1 answer
350 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
177 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
511 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
74 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
618 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
100 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
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 ...
Apeiron_Sound's user avatar
2 votes
1 answer
78 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
129 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
29 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
617 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
60 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
20 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
674 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
30 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
216 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
174 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
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(...
Aravindh Vasu's user avatar
2 votes
0 answers
50 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
  • 21
1 vote
1 answer
101 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
292 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
178 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
88 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
134 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
54 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
402 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
45 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
145 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
31 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
467 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
22 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
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 ...
Austin Muller's user avatar
1 vote
0 answers
319 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)....
Manitopa's user avatar
1 vote
1 answer
141 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 ...
user152435's user avatar