Skip to main content
Participant
July 25, 2022
Question

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

  • July 25, 2022
  • 2 replies
  • 136 views

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

This topic has been closed for replies.

2 replies

Mylenium
Legend
July 25, 2022

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

Mylenium
Legend
July 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

Participant
July 25, 2022

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