wiggle expression resets by itself
Copy link to clipboard
Copied
Hi all,
I am experiencing a weird problem with the wiggle expression. Basically, I have applied the wiggle expression to each of those shape layers containing a dots you use on the screen. Not on the lines.
The moment I create a new shape layer (screen shot 2 the black rectangle) all the wiggle expression values on the dot kind of resets and I have new values for their position. Since they also have some keyframes animation, this behavior screws up all the animation I made.
You can see how the position of the dots in the two screenshots is different. Even though it has been takes at the same time. The only difference is that I created a rectangle. Anybody knows why??...it's so weird and beyond my comprehension
Thanks a lot
Copy link to clipboard
Copied
Nothing weird about it. wiggle() is a random function and the random seed is calculated using layer index and a few other things like property stream index. Hence it changes every time you add or delete something. use the seedRandom() function with manual values before your wiggle. Read the help on that subject.
Mylenium
Copy link to clipboard
Copied
true legend, you're saving people's projects years later, thanks
from now on I'll add seedRandom(1) everytime before wiggle expression

