Skip to main content
Or Drori aka DJ $OFT
Participant
November 22, 2023
Question

Link gradient stroke start point to path point of same layer

  • November 22, 2023
  • 1 reply
  • 182 views

Hi!
I'm trying to link the start and end points of a gradient stroke to the same layer's path that only has 2 points. 

I tried many expressions, the closest I could get is with this one:

 

tPath=content("Shape 1").content("Path 1").path;

tLayer=thisLayer

tLayer.toComp(tPath.points()[1])

 

(see image) 

but the two are not lined. 

Any ideas? 

Thanks!!

1 reply

Dan Ebberts
Community Expert
Community Expert
November 22, 2023

Try this for Start Point:

content("Shape 1").content("Path 1").path.points()[0]

and this for End Point:

content("Shape 1").content("Path 1").path.points()[1]