Forum Replies Created
-
Perfect that is the solution or the error rather!!!, Thanks Dan
-
Hello Dan!!
I have used a couple of expressions, including the explained expression of here for make a “write on effect” to begin in the second 1, however the brush position is outside of the “myProp” variant, I have analyzed it, but I have not yet understood this. I attached a picture where I show this. Thanks!!
-
How forever thanks Dan!!! 😀 this works perfect and you saved me a lot of time and problems.
-
There is an error on this line :/:
“Class global has no property or method named “t”
-
Dan I have the same problem but with a little difference , could you help me with this?:
I try use your solution :
if (n > 0){
to this:
if (n > 0 && t < 1){
but this no works in this case:/
amp = .2;
freq = 3;
decay = 2;
kf = 2; // only on 2nd keyframe
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time) n--;
}
if (n == kf){
t = time - key(n).time;
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
temp = value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
x = temp[0];
y = value[0]*value[1]/x;
[x,y]
}else
value -
Ale Elizondo
October 23, 2014 at 1:05 am in reply to: Interpolation from one dimension to two dimensionsDan that works perfect!! 🙂
I used the same idea for interpolate between two layers of two dimension:
minY = 500;
maxY = 700;
minX=400;
maxX=600;
minScale = 0;
maxScale = 100;
y = thisComp.layer(“1”).transform.position[1];
linear(y,minY,maxY,[minScale,minScale],[maxScale,maxScale]);
x = thisComp.layer(“1”).transform.position[0];
linear(x,minX,maxX,[minScale,minScale],[maxScale,maxScale]); -
Ale Elizondo
September 25, 2014 at 6:49 pm in reply to: Linear interpolation to hold interpolation expressionFor example when the Scale of the first object is 100 the opacity of second object is 0 that is correct but when the scale changes to 99 the opacity changes to 100 this doesn’t work for what I want. This question was for properties of one dimension, I would like make it too with an interpolation between property of two dimension to one dimension, how from scale to opacity, I guess this will be more difficult XD.
Thanks for review this Dan
-
Ale Elizondo
September 25, 2014 at 6:24 pm in reply to: Linear interpolation to hold interpolation expressionThanks for your response Dan.
I use this as follows:
t=thisComp.layer(“ojo 2”).transform.scale[1];
if (t < (0+100)/2) 100 else 0this on Opacity property, but there are some problems :/
my idea is to invert the values ​​and this works but until the value is less than 50, I guess this is why the division is by 2, I want the change to happen until it reached the maximum or minimum value
-
Very helpful this 🙂
But this expression only works with properties of one dimension. How works it with a property of two dimensions? I hope you can tell me.
