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

why wiggle expression cant affect path proprerties

Engaged ,
Nov 30, 2023 Nov 30, 2023

Copy link to clipboard

Copied

Hello,

 

I am practicing wiggle experssion.  I  applied it  also in a path property and expected some movements like other properties did (scale, opacity, position, rotation etc). but path didnt move and AE shows errors that function is disabled. 

 

what does it mean? what is function?

 

why it works on others but not on path property?  and what does that error telling me? 

 

wiggle.gif

 

 

TOPICS
Expressions

Views

261

Translate

Translate

Report

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 , Dec 01, 2023 Dec 01, 2023

Paths have special data structure that doesn't work with wiggle(). If fact the options that you have with path expressions is somewhat limited. You can link to another path, you can link to another path and use valueAtTime() to get a time-offset version of that path, and you can use createPath() to build a path. So theoretically, you could harvest the points of the path and apply a wiggle to them on a point-by-point basis (by actually borrowing wiggle from another property, like position). So yo

...

Votes

Translate

Translate
Community Expert ,
Dec 01, 2023 Dec 01, 2023

Copy link to clipboard

Copied

Paths have special data structure that doesn't work with wiggle(). If fact the options that you have with path expressions is somewhat limited. You can link to another path, you can link to another path and use valueAtTime() to get a time-offset version of that path, and you can use createPath() to build a path. So theoretically, you could harvest the points of the path and apply a wiggle to them on a point-by-point basis (by actually borrowing wiggle from another property, like position). So you end up with a somewhat convoluted expression like this:

 

 

 

p = content("Shape 1").content("Path 1").path;
pts = p.points(); // harvest all the componets of the path
iT = p.inTangents();
oT = p.outTangents();
c = p.isClosed();
for (i = 0; i < pts.length; i++){
  seedRandom(i,true); // makes sure each point gets a different wiggle
  w = position.wiggle(5,10) - position; // use position property to calculate the wiggle
  pts[i] = pts[i] + w;
}
createPath(pts,iT,oT,c) // rebuild the path with wiggled points

 

 

 

Votes

Translate

Translate

Report

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
Engaged ,
Dec 01, 2023 Dec 01, 2023

Copy link to clipboard

Copied

LATEST

Thank you so much, I guessed path is different, Now I know why. 

Votes

Translate

Translate

Report

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