Forum Replies Created

  • Walk Withme

    November 2, 2012 at 3:43 am in reply to: How to change volume according to brightness ?

    Great info, thanks !

    I did the lens flare tryout and got it working nicely, used this:

    target = thisComp.layer(“alphalayer”);
    alpha = target.sampleImage(effect(“Lens Flare”)(“Flare Center”),[3.5, 3.5])[3];
    linear(alpha, 0, 0.36, 80, 0)

    BUT now I’m doing it to audio track using this:

    target = thisComp.layer(“alphalayer”);
    alpha = target.sampleImage(effect(“Stereo Mixer”)(“Left Level”),[3.5, 3.5])[3];
    linear(alpha, 0, 0.36, 100, 0)

    And it says:

    Bad argument: argument 1 to sampleImage() must be 2 numbers
    Error occured at line 2

    So how should I do with audio ?

    Thanks.

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