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
12 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
66 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 ...
0 votes
1 answer
122 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 ...
2 votes
1 answer
16 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
1 answer
59 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

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
90 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 ...
1 vote
1 answer
36 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, ...
1 vote
1 answer
35 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
75 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
23 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 ...
0 votes
1 answer
223 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 ...
0 votes
1 answer
10 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 ...
0 votes
1 answer
43 views

Show current play speed in after effects

Is it possible to display the current play speed (eg. X2, X3.5, etc) in a text layer above my footage? Some of my composition layers plays at normal (X1) speed but others were time remapped or time ...
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; }
0 votes
3 answers
7k views

Use markers in After Effects as triggers for a particular animation

I have a one precomp animations (from stocks). And I am searching for a script /expression that will automate a certain animation for my project. I have a long videos with premade subtitles srt file ...
1 vote
1 answer
250 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 ...
3 votes
2 answers
104 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
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(&...
2 votes
1 answer
306 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
1 answer
131 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(...
0 votes
1 answer
303 views

Stop children from scaling by parent scale

So I have a composition with a single image that has this expression attached to its position: [thisComp.width - 100, thisComp.height - 100] All this expression does is makes my image to be located ...
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?
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....
1 vote
1 answer
135 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,...
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 ...
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(...
1 vote
1 answer
285 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 ...
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 ...
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,...
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 ...
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 ...
4 votes
2 answers
3k 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 ...
2 votes
1 answer
630 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 ...
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 ...
1 vote
1 answer
2k views

After Effects Expression, layer not found or missing

I'm using a plugin called Duik 15 to rig a character to turn the right arm into an IK controller, and it has produced an expression that is unable to find one of my layers. I'm not sure why it's not ...
0 votes
1 answer
166 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 > ...
0 votes
1 answer
831 views

AE Expressions question - why isn't my code working?

I can't figure out why I'm getting the error... Any ideas?! I tried adding "var" at the beginning of the first line, but that didn't work. Not sure what to try now! Help anyone? Below is my code. The ...
2 votes
1 answer
72 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 ...
0 votes
1 answer
47 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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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",...
0 votes
1 answer
359 views

After Effects - EG Template: Of 2 keyframes I only want to change the 2nd in EG, help!

I'm trying to create a new Essential Graphics template in After Effects. I have an animation (at its most basic, it's a rectangle that expands from a set, small size to - hopefully! - a user defined ...
1 vote
0 answers
123 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)....
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 ...