Questions tagged [after-effects-expressions]

A script used to set a property value for a layer in an After Effects composition.

45 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
2 votes
0 answers
94 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<...
Barbara's user avatar
  • 23
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
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
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
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
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
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
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
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
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
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
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
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
215 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 ...
kviLL's user avatar
  • 111
1 vote
1 answer
417 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 ...
Randy V's user avatar
  • 11
1 vote
0 answers
34 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 ...
Airgiraffe's user avatar
1 vote
1 answer
255 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 ...
Ángel Molina López's user avatar
1 vote
0 answers
110 views

Is possible to pass variables from premiere to after effect compositions?

One of the latest features put inside AE & PR 2017 is the Live Text Edits.. In short you can mark an after effect composition as template and then all the texts inside that composition will be ...
user3450548's user avatar
  • 1,574
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 ...
Sean Proctor's user avatar
1 vote
0 answers
808 views

Expressions: Data-generated After Effects Graphic using CSV file?

Is there a way to read a CSV file or spreadsheet containing dates in timecode in one column and data in another column, then use the time/date to pair with footage to display the corresponding data? ...
auto's user avatar
  • 121
1 vote
0 answers
470 views

Overshoot expression: Consider variable text width

I have a lower third which resizes to the length of text. Now I want to make a overshoot effect. But.. I have no idea where to put the length of the text into the expression. This is expression ...
user3625118'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
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
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
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
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
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
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
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
0 votes
1 answer
238 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 ...
Pragyan's user avatar
  • 101
0 votes
2 answers
131 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?
user28072's user avatar
0 votes
1 answer
1k 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 ...
Shir L's user avatar
  • 1
0 votes
1 answer
47 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 ...
ramiwi's user avatar
  • 133
0 votes
1 answer
453 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 ...
Ruslan Plastun's user avatar
0 votes
0 answers
75 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-...
spaceleviathan's user avatar