-
Wiggle taking precalculated value as its starting point?
This has probably been answered elsewhere, but I’m probably not working my searches correctly. Here’s what I want to happen:
I have a rotation value randomly assigned to a layer through other expressions. I want to add a wiggle expression that takes that precalculated rotation as its starting point and wiggles based on that, not the default rotation (which is always 0). Whenever I add the wiggle expression, it always uses the default (0 degrees) rotation, not what I’ve assigned it through expressions. Here’s what I’m doing that isn’t working:
seedRandom(index, true);
r = thisComp.layer("n. Global exp. controller").effect("Rotation multiplier")("Slider") * random(0, 359);
wf = thisComp.layer("n. Global exp. controller").effect("Wiggle freq")("Slider");
wa = thisComp.layer("n. Global exp. controller").effect("Wiggle amp")("Slider");
transform.rotation = r;
wiggle(wf, wa);