Skip to main content
S_ A
Inspiring
Jul 5, 2024 11:11 AM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Jul 5, 2024 3:51 PM UTC

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
Jul 5, 2024 3:51 PM UTC

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))
Translate
S_ A
S_ AAuthor
Inspiring
Jul 5, 2024 4:41 PM UTC

Hi Dan,

 

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

Translate