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
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
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
Copy link to clipboard
Copied
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