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
2
votes
1answer
16 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
1answer
14 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
1answer
23 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
1answer
19 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
0answers
15 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
1answer
18 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
0answers
19 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
0answers
39 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
1answer
23 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
1answer
44 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
1answer
24 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
0answers
48 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
2answers
43 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
1answer
27 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
1answer
46 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
0answers
22 views

how to affect in layer by another layers in after affects

I have two value x and y x=effect("Slider Control")("Slider") and y=transform.opacity I want in `x>100 or x<0 y convert from 100 directly to 0?
0
votes
1answer
17 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
0answers
15 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
0answers
41 views

Anyone experienced with .mogrt templates that use csv/spreadsheet files that could please help me out?

I'm creating this .mogrt template in AE, that uses a .CSV file to update some names based on the spreadsheet. Here are some screenshots: https://imgur.com/a/zNa97By Everything in AE works great. I ...
0
votes
1answer
22 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
1answer
42 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
0answers
21 views

After effects element 3d green screen actor intergration?

I have to finish a project and i am having problems with element 3d. I have a green screen actor .mov and i want to put it in element 3d thats where i have a 3d scene. So i want to be able to create a ...
2
votes
1answer
14 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
0answers
13 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
0answers
61 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
1answer
27 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 ...
0
votes
1answer
12 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, ...
2
votes
0answers
28 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<...
1
vote
1answer
135 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 ...
3
votes
1answer
28 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 ...
0
votes
1answer
77 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
1answer
161 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 ...
0
votes
1answer
20 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 ...
0
votes
1answer
36 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
2answers
74 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?
2
votes
1answer
70 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
1answer
103 views

after effects slider control code help

I'm trying to make a slider that basically can act as a crossfader between a bunch of different layers (so as the slider goes up, it fades through several layers). This is what I've written, and I'm ...
0
votes
2answers
123 views

How to change value in After Effects when passing marker

I am running into an issue where I want to change the value of my slider controller (just adding 1) each time it passes by a marker. This is my current code if (marker.numKeys > 0) { value = ...
1
vote
1answer
24 views

How to link the start and pause of an animation to a specific height from a null object?

I'll try to explain a little bit more in-depth, I'm making a set of animations for a website and the client essentially wants a preview of how each element reacts to each other as you're scrolling ...
0
votes
1answer
344 views

Text Anagram Animation in After Effects

I need to create Text Anagram Animation using After Effects, Is there any script, expression or plugin available to do this job. If not how to animate it manually, The animation needs to be like in ...
0
votes
1answer
379 views

Display one decimal point after a whole number after divided by 10

I have a slider-controlled source text which I try to sync with the corresponding graph bar. What I need is, to display one decimal point after the value of the slider is divided by 10. That is, if ...
0
votes
1answer
423 views

get the position of a specific vertex in an After Effects shape

Is it possible to get the position of a specific vertex of an After Effect shape ? something like var shape = parent.content("Shape 1").content("Path 1").path.value; var vertexes = shape.vertices; ...
0
votes
1answer
416 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 ...
0
votes
1answer
37 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
0answers
28 views

'Pin-art' effect in After effects

I'm looking for a way to create a 'Pin art toy' effect in after effects. Basically a load of extruded hexagons that can be pushed up and down by a shape behind them. Would be great if this could be ...
0
votes
1answer
216 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
0answers
37 views

How to sync Markers Comments between root Control Null & nested-in-comp-Null / Layer

Hello Fellow VFX / Motion Designers, I have spent a large amount of time going in circles trying to self-solve this one but time on the project is running low on time so I must ask the elder hive-...
0
votes
1answer
182 views

AE Keyframe Control through checkboxes

I have a position animation with four keyframes, two for a intro, two for a outro. Also I have a Master where you have two checkboxes "Intro" and "Outro". The idea is to override the keyframe values ...
0
votes
2answers
47 views

After effect preflighting

please i need help. I am trying to render a big project filr which has lots pre composse files in it. And it was taking almost 2 days to hold on pre- flighting before rendering. And then rendering ...
0
votes
1answer
16 views

After effects: Adding visual callouts of currently playing audio files with a source text script

I'm working on a short film, and I've got AE CS 6 as my editor. I have a friend who is an audio engineer, who will perform the Protools final audio mixing and editing. I've got some sound effects in ...