ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Looking for old script or something like it...

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Darryl Torke
Looking for old script or something like it...
on Nov 12, 2019 at 5:12:51 pm

I'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


Return to posts index

Dan Ebberts
Re: Looking for old script or something like it...
on Nov 12, 2019 at 6:05:20 pm

Actually, 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



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]