Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Wiggle shape points

Community Beginner ,
Feb 04, 2025 Feb 04, 2025

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,

TOPICS
Expressions , Scripting
333
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 04, 2025 Feb 04, 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())
Translate
Community Expert ,
Feb 04, 2025 Feb 04, 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())
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 04, 2025 Feb 04, 2025
LATEST

Thank you so much Dan, It works perfect! 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines