Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Proximity script 3D issue…..

  • Proximity script 3D issue…..

    Posted by James Michaels on October 1, 2015 at 1:52 pm

    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]);

    James Michaels replied 10 years, 7 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy