Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Jul 25, 2022 Jul 25, 2022

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
95
Translate
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
LEGEND ,
Jul 25, 2022 Jul 25, 2022

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

Translate
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

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

Translate
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
LEGEND ,
Jul 25, 2022 Jul 25, 2022
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

Translate
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