ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

easy way to apply expression to multiple layers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
cow
nicola cullen
easy way to apply expression to multiple layers
on May 13, 2008 at 3:01:05 pm

Hi there,

I have a few comps with a couple of hundred layers in each and I need to apply a wiggle expression to the position of every layer... is there an easy way to do this without copying and pasting the expression onto each layer?

Thanks!



Return to posts index

cow
Dan Ebberts
Re: easy way to apply expression to multiple layers
on May 13, 2008 at 4:09:02 pm

Sure,

Select the property with the expression

Edit > Copy Expression Only

Select all the other layers

Edit > Paste


Dan



Return to posts index

cow
nicola cullen
Re: easy way to apply expression to multiple layers
on May 13, 2008 at 4:40:51 pm

THANKYOU!!! thats awesome :)



Return to posts index


cow
Bert Brown
Re: easy way to apply expression to multiple layers
on May 13, 2008 at 6:38:14 pm

this was actually just a cow podcast at the beginning of the month. you should watch them

----------------------------------


peep my over-the-interweb band, red abbott.
"we electro-rock over long distances..."



Return to posts index

jonathan alenskas
Re: easy way to apply expression to multiple layers
on Feb 27, 2016 at 10:29:04 pm

how could one type an expression on a precomp layer which effects each layer inside the comp accordingly ?

i am trying to apply a fill based on depth expression to all layers inside a precomp from outside the comp.



at the momment I am applying the following to each layer inside the precomp :

c=thisComp.layer("Camera"); // choose the active camera //
cp=c.toWorld([0,0,0]); // camera’s position in world space //
p=thisLayer.toWorld(thisLayer.anchorPoint); // this layers position in world space //
d=length(cp,p); // calculate distance from camera to layer //
far=10000; // far distance for black value //
f=linear(d,0,far,1,0); // calculate fill colour from distance //
[f,f,f,1]


if i could do this from the outside then i would not need a seperate depth comp and the depth would update according to what i do in the 'beauty' comp.

Jonathan Alenskas


Return to posts index

Dan Ebberts
Re: easy way to apply expression to multiple layers
on Feb 28, 2016 at 7:19:39 am

If I understand what you're asking, that's not how expressions work. Each fill color would need its own expression.

Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]