This is the After Effects Standard version of this tutorial. For the Professional version, go here:
http://www.ats-3d.com/POIcam/POIcam_AEpro/index.html
by
Al Street © 2007
Al Street. All Rights Reserved.

Plugins used: POIcam_1.2.lsc (for AE 5.x and 6.x) or POIcam_AE7.lsc (for AE 7.x); CameraMotionBaker.lsc, transMotion_57.lsc
Additional software: After Effects Standard
Download: Plugins and tutorial files - (The same files are used for both the Standard and Professional version tutorials)
Overview: In the scene there are a camera, several boxes and a floor. The camera moves and rotates. The goal is to render the scene and then recreate the camera and its motion in
After Effects so that it matches the rendered footage. |
Steps:
In LightWave:
Load the
scene POIcam_AEpro_tutorial.lws. (This file is used for both the
Standard and Professional version tutorials)
Make sure Auto Key is ON and Auto Key Create is not
OFF.
If you intend to export nulls to AE, use the Custom Object Grid shape set to Z-Axis. Then scale and rotate them as necessary to line up with the geometry.
The sample scene already has the nulls set up.

Bake the camera's motion starting from frame 0. You can use the Camera Motion Baker plugin for this step.
In the sample scene the camera motion has already been baked.
Render the footage.
Save a motion file for each null that you want to export to AE.
Select the null and File > Save > Save Motion File...
For Windows PCs:
Run POIcam_1-2.lsc if using AE 5.x or 6.x or POIcam_AE7_1-2.lsc if using AE 7.x.
For Macs:
Run POIcam_1-2_mac_DEMO.lsc if using AE 5.x or 6.x or POIcam_AE7_mac_DEMO.lsc if using AE 7.x.
Choose the "Camera_baked" camera if you have used the Camera Motion Baker plugin.
for AE 5.x and 6.x:
camera.aek - contains the camera position and Bank rotation data
POI.aek - contains the Point of Interest data for the After Effects camera
FOV.aek - contains the Field of View data, converted to After Effects zoom
for AE 7.x:
camera_position.aek - contains the camera position data
camera_rotation.aek - contains the camera Bank rotation data
camera_POI.aek - contains the Point of Interest data for the After Effects camera
camera_zoom.aek - contains the Field of View data, converted to After Effects zoom
Note: The "Open files in Notepad" option will not be present in Mac versions.
Leave the Scale Factor at 1.0 unless you have a good reason to change it (see
"Things to know" below).
Note the name and location of the output files that will be created. Files will be saved in the LW
"Programs"
folder on the PC. On the Mac, they will be saved in the folder you have designated as the
LW "Content" folder.
Click "Ok".
Earlier,
you saved a motion file for each null that you want to create a solid layer for
in AE. Now it's time to convert those motion files to a format that
can be pasted into AE.
For each file, run transMotion_57.lsc.
A file will be created whose contents will be pasted into AE later.
Import the rendered file sequence and create a comp from it by dragging the file
sequence name to the create composition icon.

For each null in LW that represents a box face create a new solid layer, width = 200 height = 200, opacity = 75%, to check alignment. Make it a 3D layer.
Create a new Camera layer and accept the default parameters. For each of the .aek files created by POIcam, Select All, Copy, and Paste into the appropriate camera track:
for AE 5.x and 6.x:
camera.aek ---> Position
POI.aek ---> Point of Interest
FOV.aek ---> Zoom
for AE 7.x:
camera_position.aek ---> Position
camera_rotation.aek ---> Z rotation
camera_POI.aek ---> Point of Interest
camera_zoom.aek ---> Camera Options Zoom
select all the "Null" solid layers.

Things to know:
Meters in LW = pixels in AE. If your scene consists of objects and a camera only a few meters apart, they will come into
AE only a few pixels apart. The match will still be correct, but AE may have problems rendering objects that close to the camera. I don't recall that being an issue in
AE 5, but it seems to be in AE 6.x and beyond. Try to construct your scene accordingly. If you can't, you can use the
Scale Factor setting in POIcam to scale the distances in
AE.
Set Composition length in AE according to the First and Last frame
Render settings in LW, not the start and stop frames in the time slider.
Set frame width and height in
AE according to the corresponding settings in LW's Camera Properties panel.
Set FPS in AE according to the value in LW's Preferences > General tab.
Tips:
Make sure Auto Key is ON and Auto Key Create is not
OFF. Auto Key Create is found under LW's Preferences > General
tab (see above).
If you have multiple cameras in your scene, make sure you export the same camera that was used to generate the renders.
Always Bake the camera's motion before exporting it. You can use the Camera Motion Baker plugin for this step.
Always make your baked camera range match your rendered footage range. For best results, start your renders and bake your camera from frame 0. If you don't start from frame zero all is not lost, but you will need to slide things around a bit in
AE's timeline to get things to match up.
Q & A:
Q. I'm only getting 30 frames of the camera's motion in AE.
What's wrong?
A. The plugin is running in DEMO mode. Once registered, that restriction is removed.
Q. I'm getting messages that say "All camera position and rotation channels must have same number of keys!" and "Consider baking the camera motion." What's wrong?
A. When you keyframed your camera motion, you did not create keys for x, y and z positions and H, P and B rotations for all frames. You can fix this by running Camera Motion Baker.
Comments: Al Street (al@ats-3d.com)