Skip to main content
Participating Frequently
February 4, 2025
Answered

Wiggle shape points

  • February 4, 2025
  • 1 reply
  • 399 views

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,

Correct answer Dan Ebberts

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())

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
February 4, 2025

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())
Participating Frequently
February 4, 2025

Thank you so much Dan, It works perfect! 🙂