M***@adobeforums.com
2006-08-09 20:39:06 UTC
hello all
In AE 7, I have a composition with 2 layers, both the layers are just circles. With an expression I want to control the scale of the first layer (named "circle") with the position of the other layer (named "controller").
Right now I have this expression on the scale parameter of 'circle':
x=position;
y=thisComp.layer("controller").position;
vector=sub(point1, point2);
var=length(vector);
linear(var, 0, 100, [150,150], [50,50]);
It seems right to me, but AE says:
After Effects warning: variable expected.
Expression disabled.
Error occured at line 4.
I don't get it. Help would be much appreciated.
In AE 7, I have a composition with 2 layers, both the layers are just circles. With an expression I want to control the scale of the first layer (named "circle") with the position of the other layer (named "controller").
Right now I have this expression on the scale parameter of 'circle':
x=position;
y=thisComp.layer("controller").position;
vector=sub(point1, point2);
var=length(vector);
linear(var, 0, 100, [150,150], [50,50]);
It seems right to me, but AE says:
After Effects warning: variable expected.
Expression disabled.
Error occured at line 4.
I don't get it. Help would be much appreciated.