Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions A focus distance problem with 3D Room

  • A focus distance problem with 3D Room

    Posted by Tomek Lachowski on March 1, 2008 at 4:52 pm

    Hello. I’m making a 3d room just like the one in Andrew Kramer’s tutorial. The problem is that in this tutorial he has used only one text and I want to create a credits run with at least 4 texts. Everything is ok but until it comes to keep all those texts focused, it just messes up. I was trying the expressions way: Focus Distance length(text position, camera position; length(2nd text position, camera position) but it only keeps the 2nd text focused. Is there any way to fix that?

    Tomek Lachowski

    Tomek Lachowski replied 18 years, 2 months ago 3 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    March 2, 2008 at 5:47 am

    Sure. What do you have so far?

    Dan

  • Tomek Lachowski

    March 2, 2008 at 8:09 am

    Let me paste my whole expression line here:
    Expression: Focus Distance length(thisComp.layer(“Text1”).transform.position,transform.position); length(thisComp.layer(“Text2”).transform.position,transform.position); length(thisComp.layer(“Text3”).transform.position,transform.position)

    And basically this is it, AE gives no error message but only the Text3 is focused.

    Tomek Lachowski

  • Lloyd Alvarez

    March 2, 2008 at 4:58 pm

    Do you want all 3 text layers to be in focus at the same time or do you want to rack focus between them?

    https://aescripts.com

  • Tomek Lachowski

    March 2, 2008 at 6:03 pm

    I want to keep all of them focused at the same time.

    Tomek Lachowski

  • Lloyd Alvarez

    March 3, 2008 at 1:18 am

    Then you should lower the aperture on your camera. The camera can only be have 1 focus distance, but lowering the aperture will widen the area around that focus point that will be in focus. Also, you should only have on length call in your expression. Right now it calculates all three lengths but you only get Text 3 because that is the last length that it calculates.

    -Lloyd

    https://aescripts.com

  • Tomek Lachowski

    March 3, 2008 at 7:38 am

    Ok thanks for your help, the problem is solved.

    Tomek Lachowski

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