Is there an expression or script in After Effects that can make a null object always face a camera?
- Has been a member for 2-3 years
- Contributed a Tutorial to a Tuts+ Site
- Beta Tester
- Exclusive Author
- Sold between 1 000 and 5 000 dollars
- Bought between 1 and 9 items
- United Kingdom
- Referred between 1 and 9 users
- Has been a member for 2-3 years
- Author had a Free File of the Month
- Author was Featured
- Exclusive Author
- Sold between 5 000 and 10 000 dollars
- Bought between 10 and 49 items
- Bosnia and Herzegovina
- Referred between 1 and 9 users
I believe that it can be done, if that is what you need, just make Camera to be a Parent to Null Object
- Has been a member for 4-5 years
- Author had a File in an Envato Bundle
- Item was Featured
- Author was Featured
- Beta Tester
- Exclusive Author
- Sold between 10 000 and 50 000 dollars
- Bought between 10 and 49 items
- United States
- Referred between 100 and 199 users
- Has been a member for 3-4 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Contributed a Tutorial to a Tuts+ Site
- Author had a File in an Envato Bundle
- Community Moderator
- Item was Featured
- Author was Featured
- Beta Tester
- Exclusive Author
- Sold between 50 000 and 100 000 dollars
- Bought between 10 and 49 items
- United Kingdom
- Referred between 10 and 49 users
Kramz’ method will work fine.
If you need to do it with expressions, then…
cam = thisComp.layer("Camera 1"); //put your camera name here
lookAt(this.position, cam.position);
...on the orientation property of your layer.
Neither of these ‘look at’ methods use a specific ‘up vector’. The way the layer is rotated around the Z axis that faces the camera may be unpredictable. If you need to use an up vector, then you need a much longer expression.
-felt.
