Copy link to clipboard
Copied
Hi
is there a way to wiggle a layer's position in a certain angle?i'd like my layer's position to wiggle in 45° degrees for example.
any ideas?
Copy link to clipboard
Copied
This should work:
angle = 45;
w = wiggle(3,100) - value;
a = degreesToRadians(angle);
x = w[0]*Math.cos(a);
y = w[0]*Math.sin(a);
value + [x,y]
Dan
Copy link to clipboard
Copied
thank you very much Dan,great code
Find more inspiration, events, and resources on the new Adobe Community
Explore Now