Skip to main content
mattiasr84684375
Participant
March 24, 2022
Question

Using expressions can the "text" property of a text layer read a transform value of its position.

  • March 24, 2022
  • 2 replies
  • 170 views

Using expressions can the "text" property of a text layer read a transform value of its position. 

 

In other words I want to display transform data (x,y, z) of a tracking point on top of footage at that point as that point moves... As a form of data vizualization of tracking points.

This topic has been closed for replies.

2 replies

Mylenium
Legend
March 24, 2022

Could be as trivial as inserting a 

 

mRef=thisLayer.transform.position;

mRef[0]+\r+mRef[1]+\r+mRef[2]

 

into the source text property. Of course you may need some extra code to not end up with endless number salad like adding toFixed() or a rounding function for the decimals, but as Roland already said, that would require a better explanation of what you are actually trying to do.

 

Mylenium

Roland Kahlenberg
Legend
March 24, 2022

What do you mean by "text property" of a Text Layer?

 

If you want to display, in the Comp Panel, the values/data for a layer, say, Layer>Transform>Position then all you have to do is drag that property, from the timeline into the Comp Panel.  

HTH

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV