Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all 47983 articles
Browse latest View live

Is Possible Apply Expression in a Composition?

$
0
0

I want to make a expression related to time duration of "MainComp".

To the "MainComp" follow time duration of other Composition.


After Effects Expressions help: My “OR” condition doesn’t work

$
0
0

 

Hi,

Can anyone help? I have an expression on my opacity layer. From a layer control in a master comp I can choose which text layer I want visible. This works really well:

 

 

$Colorsel =

comp("Edit here").layer("DROPDOWN MENU").effect("Text")("Layer");

if ($Colorsel.name == ("THURSDAY"))

{[100];} else {[0];}

 

However I have arranged this text in a pre comp making patterns with the text. I have varying lengths of text eg, "Now" short line and "Next Wednesday" long line. I want the same drop down menu to determine the which precomp is turned on using the same expression. I had thought adding, "||" meaning "or" might work:

 

$Colorsel =

comp("Edit here").layer("DROPDOWN MENU").effect("Text")("Layer");

if ($Colorsel.name == ("MONDAY") || ("TUESDAY") || ("THURSDAY") || ("SATURDAY") || ("DECEMBER"))

{[100];} else {[0];}

 

It doesn't throw any errors but the value of transparency is always 100 even if the String setting is not matched in the dropdown menu! it seems like it should be simple, I can't work out what I have missed.

 

Thanks

 

James Parsons

 

TL:DR My “OR” condition doesn’t work in my expression

 

After Effects Universal Expressions

$
0
0

1. What are universal expressions?

  • I want examples of applications of universal expressions and how to identify non-universal expressions.


  • When my project use non-universal expressions, I can use a plugin called "ExpressionUniversalizer 2" to support all languages.

2. But there's another way to get the result of transforming the non-universal expressions in universal without use the plugin?

 

Please provide me all possible details.

 

I need to create a template that uses expressions and need that the template supports all languages.

 

Thanks!

Visualising audio as analog VU meter

$
0
0

Hey,

 

So I'm kinda new to AE, but I know enough to get around so that's clear now.

So I'm starting up a YouTube music channel and I'm trying to find out how to represent audio as an analog VU meter.

The image I am working with is below, and as you can see, it has 7 empty VU meters which I want to represent each track I have (7).

Does anyone know of how such thing would be done?

 

Thanks,

James.

 

background-VU.png

walk cycle: how to avoid slipping legs?

$
0
0

hi

 

I wonder if there's an expression which would allow me to synchronize walking character's steps with its horizontal position? I animate two-legged character's legs for walk cycle, but when i animate the whole character's X axis position it's very hard to avoid its legs from skidding across the surface. any free or non-free plugin/expression for this?

loopOut() Cycling/ping pong expression driven effect

$
0
0

Hi!

I like to loop this expression so it ping pong back and fort thru the timeline.

Is it possible to combine these two expressions? If, what's the correct sythax?

effect("Radial Wipe")(1) and loopOut("pingpong")

Keeping Exponential Scale "live" with expressions

$
0
0
Is there a way to replicate the Exponential Scale via expression?

As you know, once you run the animation assistant, the keyframes are locked down and if I need to change the start or end values, I have to delete all the intermediate KFs and re-run the animation assistant. Kind of a hassle, eh?

It would be cool if I could set a start and stop keyframe or layer markers and have the expression do its thing between a min and max value (via sliders?).

linking precomped wheel rotation to position in another comp

$
0
0

Hey guys,

 

I suck at expressions, but I think one would really help me here.  I have a car driving, part of a complicated precomp, and i want the wheel rotaion in the precomp to rotate according to the position of the car in the master composition.  I've seen a few link-rotation-to-position scripts but can't find one that i can figure out how to alter in order to make it work. 

 

Hope someone can help, and apologize in advance if this is well worn territory.  I tried a search but could have easily not used the right key words.


Thanks in advance,

Mike


3D WARP/3DBEND: geometry expression no show?

$
0
0

"3D warp" as seen on tv.adobe "What's New", does not seem to be available on my version of CS6 AE (from disk). I'm not getting the geometry option even though,I have the 3D box checked and it is a pixel based layer. I do get the other expression options such as transform and material options. Can anyone help me bend stuff?

Loop Out Stop expression

$
0
0

I was wondering if it's possible to create a stop/smooth ending to a LoopOut expression on Rotation and Position keyframes.   I am currently using OSX 10.9.3 After Effects CS6 and I have tried a couple of things that haven't worked for me.

 

adding a checkbox expression control to the layer and an expression for loopOut()

 

if (effect("Checkbox Control")("Checkbox")==true){

loopOut();

}else{

value;

}

 

 

loopOutDuration(“cycle”,2)

 

Unfortunately neither of these seems to work.  I was wondering if someone had a solution they have come across.

 

Thanks very much

 

Ira

Applying constraint proportions to screen pump expressions

$
0
0

So i recently applied this scale expression to my heart png to make it pump to the beat. Automatic Screen Pump Tutorial | After Effects - YouTube

The problem is, I want the scale to animate in constraint proportions and when i click the option to constrain the scale, it does not change. The scale continues to zoom in and out, uggh this is so annoying, i just need to fix this problem and i can really start making my video. This is by far the most complicated situation i've faced yet lol. and doubt i'll have anymore huge problem once this is fixed.

keyframes control with layer markers

$
0
0

Hello,

 

I have an animation of a line that has two sets of keyframes of two different properties in CS4.

Basically a line gets generated in the first phase then it gets cleared out in the second phase.

This is done using two slider controls that act on the horizontal size of two rectangles and using merge paths (using the second rectangle as a matte for the first to clear it out)

 

I've put two layer markers on my layer hoping to link the keyframes to each of them.

 

Then I have found this script on the web and I put it on the first property :

 

L= thisComp.layer("ShapeLayer");

n = 0;

if (L.marker.numKeys > 0){

n = L.marker.nearestKey(time).index;

if (L.marker.key(n).time > time){

n--;

}

}if (n == 0){

valueAtTime(0);

}else{

t = time - L.marker.key(n).time;

valueAtTime(t)

}

 

This indeed lets me move the whole animation with the layermarker (which is very good) but I can't find a way to link the second set of keyframes to do the output.

I will add a link with the project file: WeTransfer

 

Please help!

Thanks

Linking x and y position to null sliders separately

$
0
0

Hello,

 

I have a Null Object called "Position Null" with 2 sliders on it called: "Left/Right" and "Up/Down". I would like to link the x position of a text layer below it to the "Left/Right" slider, and the y position with the "Up/Down" slider. How would I go about doing that?

 

Thanks!

How Do I create a text selector effect with individual character starting from the center.

$
0
0

I have created text selectors with characters, but they always start from the left.   I have a link to a file which shows text forming from the center with a decay bounce that moves out towards both the left and right.  Is there an easy way to accomplish this?  The text in question is called "Danny Winokur" in the video.

Thank you,


Ira

 

http://www.mediafire.com/watch/x6exk3aqa9qtaoe/danny_winokur.mp4

Parsing number text string to numeric value

$
0
0

If I have the number "5" as a text layer, how can I get another text layer to read that number, and then add another number to it?

 

This gives me "56". I want "11".

 

temp = thisComp.layer("5").text.sourceText.value;

(temp + 6)


Expression at a specific time

$
0
0

Hi,

 

when I apply an expression it starts from the beginning of the composition, but if I want to start it, for example, after 10 seconds, how can I?

 

Sorry for my english.

Rotation offset time

$
0
0

I have this code for Position offset time, but, how to turn it for rotation offset time? I have tried to change the "p" for "r" and "position" to "rotation" but still not working...

 

offset = -.5;

p = thisComp.layer("My Animated Layer");

t = time + offset;

p.position.valueAtTime(t);

 

Thanks

Position Offset time for 3d Null

$
0
0

I have a 3D Null Object, following the exact position of other 3D Null Object called "Cam Control".

 

thisComp.layer("Cam Control").transform.position + [0,0,0]

 

Then I offset the position of the values [x, y, z] linking them to sliders:

 

thisComp.layer("Cam Control").transform.position + [effect("Slider Control")("Slider"),effect("Slider Control 2")("Slider"),effect("Slider Control 3")("Slider")];

 

Now I'm triyng to offset the time, but I getting error when trying to insert my expression (which is conected to sliders)

inside of of this two expression of time/delay offset:

 

Version 1:

offset = -.5;

p = thisComp.layer("My Animated Layer");

t = time + offset;

p.position.valueAtTime(t);

 

Version 2:

  thisComp.layer(thisLayer, -1).position.valueAtTime(time - .5)

 

Can anyone help me to make offset time to my expression (which is already offset position), please?

3D Corner Pin w/ Precomps

$
0
0

Hi everyone,

 

I've been using Dan's expression for getting the corner pin in 3D. But it's getting tough with the following setup:

 

  1. Main Comp
    1. Camera
    2. Precomp
      1. Camera (pick whipped position and POI with main comp camera and with the same settings)
      2. 3D Null
      3. 3D Null
      4. 3D Null
      5. 3D Null
      6. Solid w/ Corner Pin (using Dan's expression w/ nulls)

 

It all works perfect when:

  1. Both the main comp and precomp are of the same dimension
  2. The precomp's position stays centered

 

Now I can simply fix the first by calculating the offset and adding this to the expression, but the second is the problem. The calculation doesn't work, because of z-space. And by offsetting the toComp (toComp( [0,0,1500] )) it's hard to get right and leaves an apparent offset.


Any ideas for getting it spot on?

Limit value range with expression?

$
0
0

Hi there,

 

Is there a way to put a limit on value range when linking it to key-framed audio?

 

My situation is that I want to link the Glow Intensity of one of my objects to the key-framed audio. The issue I'm having is that everything north of 0.4 looks horrific.

 

So was wondering if there was anything I could add to the expression that will only allow the value of the Glow Intensity to vary between 0.0 and 0.4?

 

 

Cheers

Simon

Viewing all 47983 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>