Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions y rotation linked 2 soundkeys output

  • y rotation linked 2 soundkeys output

    Posted by Dzakwan Kurnia on September 14, 2018 at 7:12 am

    Hi everyone, can you help me to fix my problem?

    i want to connect null object y rotation with 2 output soundkeys

    i have this for expression:
    minAudio = 7;
    maxAudio = 50;
    minStretch = 0;
    maxStretch = 50;

    and this my soundkeys output
    thisComp.layer(“a3”).effect(“Sound Keys”)(“Output 1”)
    thisComp.layer(“a3”).effect(“Sound Keys 2”)(“Output 1”)

    for sure..
    example:
    in this frame,
    first output value 10, and second output value 0
    and next frame, first output is value 0, and second output value 20

    i want to make first output value (-) and make first output value plus second output value
    or you can say, if y1= first output and y2 = second output, may be like this —> -y1 + y2 = value for expression

    i already try this one
    minAudio = 7;
    maxAudio = 50;
    minStretch = 0;
    maxStretch = 50;

    y=-(thisComp.layer(“a3”).effect(“Sound Keys”)(“Output 1”)*-1)+(thisComp.layer(“a3”).effect(“Sound Keys 2”)(“Output 1”))

    yr = linear(y, minAudio, maxAudio, minStretch, maxStretch);
    [yr]

    and this one
    minAudio = 7;
    maxAudio = 50;
    minStretch = 0;
    maxStretch = 50;
    y1=thisComp.layer(“a3”).effect(“Sound Keys”)(“Output 1”);
    y2=thisComp.layer(“a3”).effect(“Sound Keys 2”)(“Output 1”);
    y=(-y1)+y2;
    yr = linear(y, minAudio, maxAudio, minStretch, maxStretch);
    [yr]

    all not working, or work but have a missing expression
    plese some one help me, im sorry for my less experience, and thanks.

    Dzakwan Kurnia replied 7 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    September 14, 2018 at 9:06 am

    From a quick look, seems ok apart from the last line, take out the brackets around the “yr”.

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Dzakwan Kurnia

    September 14, 2018 at 4:01 pm

    fixed sir
    I’m not thinking about this
    make command to yr1 for y1 and yr2 for y2

    minAudio = 7;
    maxAudio = 50;
    minStretch = 0;
    maxStretch = 5;
    y1=thisComp.layer(“a3”).effect(“Sound Keys”)(“Output 1”);
    y2=thisComp.layer(“a3”).effect(“Sound Keys 2”)(“Output 1”);
    yr1 = linear (y1, minAudio, maxAudio, minStretch, maxStretch);
    yr2 = linear (y2, minAudio, maxAudio, minStretch, maxStretch);
    [(-yr1)+yr2]

    im sorry for wasting your time, and im verry thanks sir.

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