1 point camera to 2 point camera...
Posted: March 4th, 2006, 12:57 pm
Does anyone know an expression that can convert a 1 point camera (with auto-orientation OFF) and XYZ rotational keyframes to a 2 point camera (with auto-orientation towards POI) with POI and Z-orientation keyframes, but NO rotation keyframes. That's kind of confusing.
Here's a screenshot to illustrate....
Basically I want to take "Camera 1" and through expression, make it like "Camera 2".

I talked with Dan Ebberts and he gave me this expression:
This for the POI:
C = thisComp.layer("Camera 1");
F = C.focusDistance;
position + C.toWorldVec([0,0,F])
This for Orientation:
[value[0],value[1],thisComp.layer("Camera 1").rotation%360]
It almost worked, but it gets off track... as seen in this project file (especially when you look @ the top view):
http://www.flatalbert.com/mg/1to2.aep
I'm trying to find a way to import an After Effects camera into Cinema 4d... and having some trouble. I think if I figure this out, it might work.
If anyone has any ideas, it would be a great help. Thanks!
Here's a screenshot to illustrate....
Basically I want to take "Camera 1" and through expression, make it like "Camera 2".

I talked with Dan Ebberts and he gave me this expression:
This for the POI:
C = thisComp.layer("Camera 1");
F = C.focusDistance;
position + C.toWorldVec([0,0,F])
This for Orientation:
[value[0],value[1],thisComp.layer("Camera 1").rotation%360]
It almost worked, but it gets off track... as seen in this project file (especially when you look @ the top view):
http://www.flatalbert.com/mg/1to2.aep
I'm trying to find a way to import an After Effects camera into Cinema 4d... and having some trouble. I think if I figure this out, it might work.
If anyone has any ideas, it would be a great help. Thanks!