Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions linking luminace value to scale

  • Anton Arkh

    August 19, 2010 at 5:56 pm

    You, sir, are a genius! Thank you very much for a very quick and precise answer! It works perfectly!

  • Criis Daw

    November 15, 2010 at 1:04 pm

    hello DAn

    I dont suppose you mind revisiting this do you ??

    I am trying to adapt the this to z value not scale ..

    No luck so far but i will keep trying

    this is my effort but it doesnt work (on the z position (i separated dimensions)

    min= 0;
    max= 1000;
    L = thisComp.layer(“displacement image”);
    sampleSize = 1;
    point = L.fromWorld(toWorld(anchorPoint));
    sample = L.sampleImage(point,[sampleSize,sampleSize]/2,true,time);
    lightness = rgbToHsl(sample)[2];
    s = linear(lightness,min,max);

  • Dan Ebberts

    November 15, 2010 at 4:27 pm

    It seems to work for me. In what way does it not work for you?

    Dan

Page 2 of 2

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