Copy link to clipboard
Copied
Generally, when you combine two expressions, you assign the result of the first expression to a variable and then incorporate that variable into the calculation for the second expression. In your case though, smooth() only works on the pre-expression value of the property, so you can't do clamp, then smooth, only smooth, then clamp, which would be like this (but probably isn't what you want):
s = smooth(.5,11);
min=[97.0,97.0];
max = [103.0,103.0]
clamp(s,min,max);
Copy link to clipboard
Copied
Of course you can expand and modify any expression as you see fit:
mCorner=effect("Corner Pin")(1);
min=0;
max=500;
X=clamp(min,max,mCorner[0]);
Y=clamp(min,max,mCorner[1]);
[X,Y]
smooth(0.2,5,time)
Naturally, you'll have to fill in some real values as needed for your project here.
Mylenium
Copy link to clipboard
Copied
thanks a lot!
Copy link to clipboard
Copied
hi Mylenium,
now that i realized that both expressions are not active. only the last expression works. as in this case, only smooth expression is active. any suggestions?
thanks again for your help, i appreciate it a lot
Copy link to clipboard
Copied
Generally, when you combine two expressions, you assign the result of the first expression to a variable and then incorporate that variable into the calculation for the second expression. In your case though, smooth() only works on the pre-expression value of the property, so you can't do clamp, then smooth, only smooth, then clamp, which would be like this (but probably isn't what you want):
s = smooth(.5,11);
min=[97.0,97.0];
max = [103.0,103.0]
clamp(s,min,max);
Copy link to clipboard
Copied
hi dan, thanks a lot for your quick response. a pleasure to see you in e-person! yes, it is not exactly what i wanted but i am a beginner in expressions and i am very much satisfied. thanks a lot again