Forum Replies Created

  • Elaan Dak

    August 7, 2011 at 10:17 pm in reply to: Scale Effect?

    I tried on the camera, and the Z but still not.

  • Elaan Dak

    August 7, 2011 at 1:54 pm in reply to: Scale Effect?

    Thanks guys, you are amazing..

    Everything is fine unless that is goes in the opposite way not toward the camera as it was before..

    What value I should add a (-) to?

    This is the current code:

    mouse_layer = thisComp.layer("mouse layer");

    beginScale = 0;
    endScale = 2100;
    beginDistance = 600;
    endDistance = 0;

    w = thisComp.width;
    p0 = value + 30;
    camPos = [1440,540,-2240];
    m = length(camPos,p0)/camPos[2];
    v = normalize(camPos-p0);
    dis = length(position, mouse_layer.position);
    val = ease(dis, beginDistance, endDistance, endScale*m, beginScale);
    p0 + v*val

    Thanks Dan..

  • Elaan Dak

    August 1, 2011 at 7:45 am in reply to: Scale Effect?

    Thank you Dan, its working nice.

    One more thing is that all the objects are following the same Z distance, it should be also calculated according to where that object X position is (close or far from the camera), So the object on the very left and the very right should move a longer Z than the one in the center.

    I tried to add this.x to each object’s (endScale) but I ended with that the very right crosses the most distance.

    Thanks again.

  • Elaan Dak

    June 29, 2011 at 8:52 am in reply to: Doc Effect

    Actually you are right about the camera angel, I was thinking of adding an x-position offset to the layer to move toward the center of the camera, is that possible? like
    beginX = 0; endX = mouse_layer.position + something;
    but how do you think it can happen?


    mouse_layer = thisComp.layer("mouse layer");
    beginZ = 0;
    endZ = -1200;
    beginDistance = 100;
    endDistance = 0;
    dis = length(this.position, mouse_layer.position);
    z = ease(dis, beginDistance, endDistance, endZ,beginZ );
    value + [0,0,z]

    Thanks

  • Elaan Dak

    June 28, 2011 at 2:57 pm in reply to: Doc Effect

    Perfect..
    Its working very well.
    Thanks you very much.

  • Elaan Dak

    June 28, 2011 at 10:11 am in reply to: Doc Effect

    Thank for the reply, but it doesn’t work, maybe I missed some information, I attached the AE file so you guys can have a look at it.
    Basically I want the layers (1,2,3,4) to move close & far toward the camera in z-axis once the (mouse layer) move close to them.

    The file:
    https://www.box.net/shared/e8l02hr980j1aokndc9s

    Thanks in advance.

  • Elaan Dak

    June 27, 2011 at 10:49 am in reply to: Apple Doc “magnify” expression?

    Is it possible to change the scale method to a Z-axis position, I mean, instead of scaling the layers, I want to move them forward and backward in Z-axis when the mouse layer moves.

    Thanks in advance..

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