Like this maybe:
p = thisProperty;
pts = p.points();
N1 = thisComp.layer("Null 1");
N2 = thisComp.layer("Null 2");
p1 = fromComp(N1.toComp(N1.anchorPoint));
p2 = fromComp(N2.toComp(N2.anchorPoint));
pts[0] = p1;
pts[pts.length-1] = p2;
createPath(pts,p.inTangents(),p.outTangents(),p.isClosed())
Dan
From: After Effects Mail List <AE-List@media-motion.tv>
Sent: Monday, November 18, 2019 9:41 PM
To: After Effects Mail List <AE-List@media-motion.tv>
Subject: [AE] mask splines
Is there a way to take the end points of a spline and use expressions to parent them to nulls?
I have animated splines, lightning bolts, and want the ends to lock to two different animated objects.
I'm not seeing a way to isolate a point in a spline mask...is this possible?