-
Proximity script 3D issue…..
Been over to the old JJ Gifford site to use the proximity script he made.
My comp has a vertically scrolling menu of individual text layers. These move up and down over a highlight area (a null called PROXIMITY). Once in that area they scale upwards (as well as an adjustment of opacity). They move up and down using a single keyframed null.
Currently use this set up:
// Scale with control layer
// Applied to Scale parameter// Point1 is current layer, point2 is control layer
point1=this_layer.toComp([0,0,0]);
point2=this_comp.layer(“PROXIMITY”).position;// Find the vector between the 2 points
delta=sub(point1, point2);// Now find the length
distance=length(delta);//Remap distance to large scale when near, small when far
ease(distance, 0, 67, [100,100], [69,69]);All working great. But I need the text layers to be 3D as this comp needs to continuously rasterize in 3d space within other comps. As soon as I turn the layers to 3D the expression dies.
I tried amending the final line to the following with no joy:
ease(distance, 0, 67, [100,100,100], [69,69,69]);
I just get no scaling at all. My PROXIMITY null is also a 3D layer.
Any ideas?
// Scale with control layer
// Applied to Scale parameter// Point1 is current layer, point2 is control layer
point1=this_layer.toComp([0,0,0]);
point2=this_comp.layer("PROXIMITY").position;// Find the vector between the 2 points
delta=sub(point1, point2);// Now find the length
distance=length(delta);//Remap distance to large scale when near, small when far
ease(distance, 0, 67, [100,100], [69,69]);
Sorry, there were no replies found.