Hello,
I am having trouble creating DOF on a Beam using the toWorld expression mentionned by Dan Ebberts. I’m using AE CS4, and my comp contains 2 3D nulls (called ”null 1” and ”null 2”), a camera, and a 2D solid on which I have applied the Beam effect.
The starting point of the Beam effect has the following expression:
targetLayer=thisComp.layer(“null 1”);
targetLayer.toWorld(targetLayer.anchorPoint);
and the ending point of the Beam effect has the following expression:
targetLayer=thisComp.layer(“null 2”);
targetLayer.toWorld(targetLayer.anchorPoint);
The only thing I get when using this expression is a small dot in between those two 3D nulls, but no Beam effect in 3D space and certainly no DOF on that Beam. On the other hand, when I use toComp instead of toWorld, I do get a 3D Beam connecting those two 3D nulls but there is no DOF acting on the Beam.
Please let me know what I’m doing wrong. Any help would be greatly appreciated!
Renaud