FORUMS: list search recent posts

2D Screen Location of a Light?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Marc Walker
2D Screen Location of a Light?
on Sep 19, 2015 at 5:05:44 pm
Last Edited By Marc Walker on Sep 20, 2015 at 12:08:08 am

Hi Community.
I have a 3D environment with lights following an object(tiff seq). The lights are purely position markers from a Cinema 4D .aec file which the composition's camera is also from.

So my question is: Can I get the real (2D)screen coordinates of the light (Light's coordinates on the camera's screen)from anywhere?


Return to posts index

Kalle Kannisto
Re: 2D Screen Location of a Light?
on Sep 21, 2015 at 5:36:42 pm
Last Edited By Kalle Kannisto on Sep 21, 2015 at 5:38:15 pm

To attach a 2D null to a 3D light, add the following expression to the position value of the null:

thisComp.layer("Light 1").toComp([0, 0, 0]);

Assuming your light layer name is "Light 1"

Return to posts index

Marc Walker
Re: 2D Screen Location of a Light?
on Sep 22, 2015 at 7:58:16 pm

Thanks Kalle, been waiting for that answer for days!

I thought there must be a simple expression for it, but I didn't know what I was looking for.

Thanks again.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved