Skip to main content
Inspiring
January 21, 2023
Answered

How to get world position of an object at specific time?

  • January 21, 2023
  • 1 reply
  • 763 views

Hey guys. I want to make an expression where variable need to get null's world position at specific time, because null is parented to other object.

So I made this expression, but it doesn't work because, as I think, valueAtTime can be applied to transform only.

anchorEnd = thisComp.layer("anchorEnd");
anchorEnd.toWorld(anchorEnd.anchorPoint).valueAtTime(0);

 What may be solution for this?

This topic has been closed for replies.
Correct answer Dan Ebberts

The layer space transforms have a time parameter built in:

anchorEnd.toWorld(anchorEnd.anchorPoint,0)

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
January 21, 2023

The layer space transforms have a time parameter built in:

anchorEnd.toWorld(anchorEnd.anchorPoint,0)

TimoishaaAuthor
Inspiring
January 21, 2023

Thanks Dan! Didn't know about that. Now it's working perfectly as I wanted