Skip to main content
S_ A
Inspiring
July 5, 2024
Answered

how to make 'position' to take value from 'trim path'' value

  • July 5, 2024
  • 3 replies
  • 367 views

Hi,

 

I want the circle to take it's value from trim path's value. I cant form teh expression. dnt understand how to write it,

 

I need guidance. Thank you.

 

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

Try this:

L = thisComp.layer("Shape Layer 3");
p = L.content("Shape 1").content("Path 1").path;
L.toComp(p.pointOnPath(L.content("Trim Paths 1").end/100))

3 replies

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
July 5, 2024

Try this:

L = thisComp.layer("Shape Layer 3");
p = L.content("Shape 1").content("Path 1").path;
L.toComp(p.pointOnPath(L.content("Trim Paths 1").end/100))
S_ A
S_ AAuthor
Inspiring
July 5, 2024

Hi Dan,

 

Am gonna right it where?  on which property? Thank you.