Copy link to clipboard
Copied
Hi, I have a technical question that could somewhat be solved with "Wiggle Paths" but it doesn't work quite the same way.
I'd like to know if there's a simple way to apply Wiggle only to the points of a vector shape in After Effects, just like this plugin does with mask points. I tried applying it to a vector shape, but it doesn't recognize it; it only works if it detects the element as a mask.
Thank you in advance for your help,
If you have a shape layer with a path, you could try an expression like this for the path property:
freq = 3;
amp = 30;
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())
Copy link to clipboard
Copied
If you have a shape layer with a path, you could try an expression like this for the path property:
freq = 3;
amp = 30;
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())
Copy link to clipboard
Copied
Thank you so much Dan, It works perfect! 🙂
Find more inspiration, events, and resources on the new Adobe Community
Explore Now