X and Y postion link to X and Y roetion element 3D

New Here ,
Jul 25, 2022 Jul 25, 2022

Copy link to clipboard

Copied

Hi there, I have the Halloween pack of Element 3D. There is an eye obj. This eye I want to follow a null. The null has x,y position. And the eye has X,Y, rotation. How to make the expression that he eye is always following the null? thank in advance. Greetings Arjen

TOPICS
Expressions

Views

18

Likes

Translate

Translate

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 guidelines
Adobe Community Professional ,
Jul 25, 2022 Jul 25, 2022

Copy link to clipboard

Copied

There is any number of "targeting" expressions. A simple web search can turn up the various solutions using lookAt() or Math.atan() or even more complex solutions with custom vector math. Entirely depends on what you need.

 

Mylenium

Likes

Translate

Translate

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 guidelines
New Here ,
Jul 25, 2022 Jul 25, 2022

Copy link to clipboard

Copied

Thank you for the quick answer. Unfortuanlly my expression knowledge isn't gooing that far. Can you be more specific? thnks

Likes

Translate

Translate

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 guidelines
Adobe Community Professional ,
Jul 25, 2022 Jul 25, 2022

Copy link to clipboard

Copied

LATEST

Could be as trivial as

 

mPos=thisComp.layer("Group 1 Null").transform.position;

mTar=thisComp.layer("Target").transform.position;

 

lookAt(mPos,mTar)

 

You just need to create the reference Nulls for the Group in E3D and create the target Null.

 

Mylenium

Likes

Translate

Translate

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 guidelines