Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How can you use the linear expression with scale values?

  • How can you use the linear expression with scale values?

    Posted by Daniel Haskett on November 19, 2007 at 4:57 pm

    Hi there

    Basically i know if u have a rotation of two layers both with different ranges, one linked to the other using an expression like this

    x=thiscomp.layer(rotation)
    linear(x,-90,90,0,100)

    it will mean you can have 2 different ranges one from -90 to 90 and one from 0 to 100 that work together…

    but with scale there are two values x and y to deal with, how can i make it work with both values?

    i tried this but obviously it didnt work

    x= thisComp.layer(“Black Solid 2”).effect(“Fractal Noise”)(“Scale”)
    linear(x,-90,90,0,600)

    any tips would be greatly appreciated. im basically linking the scale of a solid to the scale of fractal noise. its for lights in a city…

    cheers

    dan

    Leo Oliver replied 18 years, 4 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 19, 2007 at 5:18 pm

    One way to do it:

    x= thisComp.layer(“Black Solid 2”).effect(“Fractal Noise”)(“Scale”)[0];
    linear(x,0,100,[0,0],[600,600])

    Dan

  • Leo Oliver

    December 31, 2007 at 10:35 pm

    Thx, i really needed help with this.

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