• Global community
• Language:
• Deutsch
• English
• EspaĆ±ol
• FranĆ§ais
• PortuguĆŖs
• ę„ę¬čŖć³ćć„ććć£
Dedicated community for Japanese speakers
• ķźµ­ ģ»¤ė®¤ėķ°
Dedicated community for Korean speakers
Exit Search
• How to get the real position of a camera's target ...

# How to get the real position of a camera's target point via expression or scripting?

New Here ,
Sep 27, 2022 Sep 27, 2022

Copied

I am working on a project about exporting AE animation data to webpage, when I try to get camera parameters. Normally I can get the coordinate of the 'target point' from the camera directly, but when i rotate the camera, the 'target point' keep moving but the parameters not change, how to get the real position of a camera's target point via expression or scriptingļ¼

TOPICS
Expressions , Scripting

Views

61

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
3 Replies 3
LEGEND ,
Sep 27, 2022 Sep 27, 2022

Copied

Unless you care for a whole lot of complicated math that re-creates the entire logic as expressions, simply use a two-node camera with a separate Null as the target. There's really no good way to go about it since the relevant matrix functions from the API are not avialable in the expressions. Otherwise you'd have to create a nested construct that converts the rotation to a vector and then you can calculate the world position of the point with toWorldVec() and similar with all the potential caveats like angles flipping around after the Euler conversion.

Mylenium

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
Sep 28, 2022 Sep 28, 2022

Copied

I am trying to recreate the camera (woth other animated layers) in the web, so I may have to do the calculation. Oh no, math:(

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Expert ,
Sep 29, 2022 Sep 29, 2022

Copied

LATEST

AE is the wrong tool for creating web-based animations with a camera. You should be using Adobe Autition.