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

How to combine position and anchor point into an expression? Or get the absolute path of null?

New Here ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

I have a null that has a bunch of position values in x and y space and an anchor point that moves it through z space (with some x and y to help with that). I'm trying to get the absolute position of this so that I can add this position to a Light (that doesn't have an anchor point). Is there a way to use an expression to get the absolute position of this null?

 

I tried to do this expression in the Light: thisComp.layer("Motion Path 1 Null").transform.position + thisComp.layer("Motion Path 1 Null").transform.anchorPoint

 

However this flips and flops the motion path. It seems just adding the anchor point to the position doesn't work. What is the correct way to do this math? Or is there just some sort of way to combine the anchor point into the position so I can have the position itself moving through z space?

Views

1.1K

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

correct answers 1 Correct answer

Advisor , Oct 02, 2019 Oct 02, 2019

How about this expression on the position property of your light:

 

N = thisComp.layer("Motion Path 1 Null");

N.toWorld([0,0,0])

 

Votes

Translate

Translate
Advisor ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

LATEST

How about this expression on the position property of your light:

 

N = thisComp.layer("Motion Path 1 Null");

N.toWorld([0,0,0])

 

Votes

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