Skip to main content
Participant
May 15, 2019
Question

Expressions: Problem linking a position to the anchorPoint of another

  • May 15, 2019
  • 1 reply
  • 361 views

I have to link the position of a text source in the end of other text source. Them I used:

text = thisComp.layer("8,87").transform.position;

text.toComp(text.transform.anchorPoint)

TypeError: Cannot read property 'anchorPoint' of undefined

What can I do about that?

This topic has been closed for replies.

1 reply

Mylenium
Legend
May 16, 2019

You need to check up on what parameters actually are required by predefined expression functions. You are introducing a redundant check by referencing the position property, when only the layer reference is actually relevant. You cannot re-use your "text" variable inside the toComp().

Mylenium