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
0 answers
8 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 ...
user avatar
1 vote
0 answers
7 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(...
user avatar
3 votes
1 answer
51 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 ...
user avatar
  • 78
1 vote
1 answer
32 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 ...
user avatar
2 votes
1 answer
71 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 ...
user avatar
  • 31
1 vote
0 answers
15 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 ...
user avatar
0 votes
1 answer
203 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 ...
user avatar
  • 318
3 votes
2 answers
98 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 ...
user avatar
0 votes
1 answer
25 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 ...
user avatar
2 votes
1 answer
31 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 ...
user avatar
2 votes
1 answer
21 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 ...
user avatar
  • 123
0 votes
0 answers
15 views

Expression to test if Layer has image source?

Is there a way to check if a layer has a source that's an imported still image? I tried Layer.hasVideo but that returns true for everything that has an eyeball icon, including text, solids, etc. I am ...
user avatar
  • 294
0 votes
0 answers
11 views

Is there any chance to access a premiere pro layer by an after effects expression?

I am trying to sample the color of a premiere pro layer using after effects expressions. I have an after effects comp that I import into premiere pro. In this comp I have a shape layer with some ...
user avatar
0 votes
0 answers
5 views

After effects how to import fx control layer?

I have downloaded two after effects templates from Envato elements and now want to combine them. In template "A", all the effects are inside the object layer, while in template "B",...
user avatar
0 votes
1 answer
38 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(&...
user avatar
  • 1
0 votes
1 answer
19 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 ...
user avatar
0 votes
1 answer
161 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 > ...
user avatar
  • 156
3 votes
1 answer
32 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 ...
user avatar
  • 145
1 vote
1 answer
15 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 ...
user avatar
  • 145
0 votes
1 answer
44 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/...
user avatar
  • 1
1 vote
1 answer
22 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 ...
user avatar
1 vote
0 answers
72 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 ...
user avatar
  • 11
1 vote
1 answer
34 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 ...
user avatar
  • 121
1 vote
0 answers
22 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(...
user avatar
2 votes
0 answers
44 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?
user avatar
  • 21
1 vote
1 answer
35 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, ...
user avatar
0 votes
1 answer
120 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 ...
user avatar
  • 11
1 vote
1 answer
86 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 ...
user avatar
0 votes
0 answers
60 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 ...
user avatar
  • 1
1 vote
2 answers
66 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; }
user avatar
  • 11
0 votes
1 answer
45 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(...
user avatar
0 votes
1 answer
132 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 ...
user avatar
0 votes
1 answer
29 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 ...
user avatar
  • 318
1 vote
0 answers
56 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 ...
user avatar
0 votes
1 answer
26 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....
user avatar
1 vote
1 answer
129 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,...
user avatar
2 votes
1 answer
15 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 ...
user avatar
  • 21
1 vote
0 answers
17 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 ...
user avatar
1 vote
0 answers
121 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)....
user avatar
1 vote
1 answer
35 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 ...
user avatar
0 votes
1 answer
19 views

After Effects Layer Properties Interaction

Just new here :) I want to be able to do 2(-ish) things on my layers on After Effects. (Layer 1 = l1; Layer 2 = L2; Blur amount = BA) Increase L2’s BA whenever I increase L1’s BA. (Or the opposite, ...
user avatar
2 votes
0 answers
42 views

AE linear() function is not working with variable

I have set up a pretty simple expression that animates the number of copies of a shape layers' repeater: copies = 14; anim_start= 12; anim_end = 32; ftime = timeToFrames(time,25); if(ftime<...
user avatar
  • 23
1 vote
1 answer
195 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 ...
user avatar
  • 111
3 votes
1 answer
33 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 ...
user avatar
  • 156
0 votes
1 answer
149 views

How to create outward spiral motion in Adobe After Effects?

I want to create an outward spiral motion in Adobe AE. So how to do it? I found an expression script for it here but it creates an inward spiral motion and I want outward spiral. And I am not able to ...
user avatar
  • 101
1 vote
1 answer
284 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 ...
user avatar
  • 11
0 votes
1 answer
35 views

How do i make the different values of two properties change at the same amount in After Effects?

I want to make the value of the Point of Interest of a camera change at the same amount i change the Position, but when i simply pick whip parent the Point of Interest to the position, the former ...
user avatar
  • 145
1 vote
1 answer
50 views

Custom Animated Counter in Adobe After Effects

I'm trying to create a counter that automatically updates to the next value once per second. I have that part figured out: string = "7609,7758,7916,8063,8217,8382,8545,8701,8871,9049,9241,9386,9533,...
user avatar
  • 11
0 votes
2 answers
100 views

Help Me To Translate This After Effects Expression!

wiggle(effect("Ondulación - posición")("Velocidad ondulación (ond/seg)"), effect("Ondulación - posición")("Cantidad ondulación (píxeles)")) How to translate this expression?
user avatar
2 votes
1 answer
129 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(...
user avatar