Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions easy way to apply expression to multiple layers

  • easy way to apply expression to multiple layers

    Posted by Nicola Cullen on May 13, 2008 at 3:01 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!

    Marieke Hannen replied 5 years, 1 month ago 5 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    May 13, 2008 at 4:09 pm

    Sure,

    Select the property with the expression

    Edit > Copy Expression Only

    Select all the other layers

    Edit > Paste

    Dan

  • Nicola Cullen

    May 13, 2008 at 4:40 pm

    THANKYOU!!! thats awesome 🙂

  • Bert Brown

    May 13, 2008 at 6:38 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…”

  • Jonathan Alenskas

    February 27, 2016 at 10:29 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

  • Dan Ebberts

    February 28, 2016 at 7:19 am

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

    Dan

  • Marieke Hannen

    March 25, 2021 at 4:54 pm

    Thank you in 2021!!!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy