Is there an expression or script in After Effects that can make a null object always face a camera?
215 posts
- Has been a member for 2-3 years
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Beta Tester
- Sold between 1 000 and 5 000 dollars
- Bought between 1 and 9 items
- United Kingdom
- Referred between 1 and 9 users
MattexFilms
says
Posted 2 years ago
Permalink
304 posts
- Has been a member for 2-3 years
- Author had a Free File of the Month
- Exclusive Author
- Author was Featured
- Sold between 5 000 and 10 000 dollars
- Bought between 10 and 49 items
- Bosnia and Herzegovina
- Referred between 1 and 9 users
316 posts
- Has been a member for 3-4 years
- Author had a File in an Envato Bundle
- Item was Featured
- Exclusive Author
- Author was Featured
- Beta Tester
- Sold between 10 000 and 50 000 dollars
- Bought between 10 and 49 items
- United States
- Referred between 100 and 199 users
2546 posts
- Has been a member for 2-3 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
- Exclusive Author
- Author was Featured
- Beta Tester
- Sold between 50 000 and 100 000 dollars
- Bought between 10 and 49 items
- United Kingdom
- Referred between 10 and 49 users
felt_tips
says
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.
Posted 2 years ago
Permalink
felt_tips is an Envato staff member
3135 posts
- Has been a member for 2-3 years
- Won a Competition
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Exclusive Author
- Beta Tester
- Sold between 100 and 1 000 dollars
- Bought between 500 and 999 items
- United States
