ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

y rotation linked 2 soundkeys output

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dzakwan Kurnia
y rotation linked 2 soundkeys output
on Sep 14, 2018 at 7:12:01 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.


Return to posts index

Kalleheikki Kannisto
Re: y rotation linked 2 soundkeys output
on Sep 14, 2018 at 9:06:30 am

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

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

Dzakwan Kurnia
Re: y rotation linked 2 soundkeys output
on Sep 14, 2018 at 4:01:06 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.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]