3 Replies Latest reply on Apr 13, 2011 7:56 AM by Rick Gerard

    Pan Behind tool on a 3D layer for Scale

    BlueSeamonster

      Appologies. Unable to find any info yet on whether there is a way to use the Pan Behind tool on the Z axis of a 3D layer for scale. I would like the said 3D layer to be pushed back in Z space, but to appear as if it hasn't changed size in the camera. My guess is that the scale would automatically adjust as the layer is pushed back in Z space. Have I missed something in the manuals and forums? Thanks for a reply.

        • 1. Re: Pan Behind tool on a 3D layer for Scale
          Mylenium Most Valuable Participant

          Check AEScripts.com and AEnhancers.com. there's expressions and scripts for this sort of thing.

           

          Mylenium

          1 person found this helpful
          • 2. Re: Pan Behind tool on a 3D layer for Scale
            BlueSeamonster Level 1

            Thanks Mylenium,

             

            At AEScripts.com, I found a script called pt_Multiplane by Paul Tuersley. Although it wasn't 'draggable' like the Pan Behind tool, with a  little bit of pre-planning and experimenting I was able to manipulate the layers I wanted quite easily into the positions I was after with this script. At this point I would be happy to say that Paul Tuersley has done a very nice job on this, it is certainly useful for me. Thanks to him for his work on this script and to you for pointing me to a great source.

             

            Blue Seamonster

            • 3. Re: Pan Behind tool on a 3D layer for Scale
              Rick Gerard Adobe Community Professional & MVP

              I'd use a simple expression for the scale property. You could then adjust the position of the layer or the position of the camera and keep the layer the same size in the frame. Changing the anchor point in Z would then also change the relative size of the layer in the camera view. I've written out the expression in long form so that it's easier to understand. It uses the length (distance) between the 3D layer and the camera/divided by the zoom value (focal length) to create a scale multiplier. Here you go:

              point1 = thisComp.layer("Camera 1").transform.position;
              point2 = position;
              d = length(point1, point2);
              z = thisComp.layer("Camera 1").cameraOption.zoom;
              
                   sa = 100 * d/z; //scale adjustment
              
              [sa, sa, sa]