Forums › Adobe After Effects Expressions › Looking for old script or something like it…
Looking for old script or something like it…
Darryl Torke
November 12, 2019 at 5:12 pmI’ve been trying to wiggle a path and found out that masks can’t be wiggled. I looked online and according to these forums the script: “maskPointsExpression.jsx” would be perfect, unfortunately the link goes to a 404 page and I can’t seem to find the file anywhere. Would anyone happen to have this script or a link to something like it? Here’s the orignal post. I really could use it. Thanks
https://forums.creativecow.net/docs/forums/post.php?forumid=2&postid=915452
Dan Ebberts
November 12, 2019 at 6:05 pmActually, it’s possible now to wiggle a path. Something like this should work:
freq = 1;
amp = 20;p = thisProperty;
pts = p.points();
newPts = [];
for (i = 0; i < pts.length; i++){
seedRandom(i,true);
w = position.wiggle(freq,amp) - position;
newPts.push([pts[i][0] + w[0],pts[i][1] + w[1]]);
}
p.createPath(newPts,p.inTangents(),p.outTangents(),p.isClosed())
Note that it doesn’t affect the tangents. If you wanted to keep those auto aligned, it would be considerably more work.
Dan
Log in to reply.