-
Fractal Noise – Offset & Rotate
Hi. First of all let me say that I am new here and my English may not be the best, so please bear with me…
OK, here’s the problem:
I have 2 points (“Start” & “End”) with coordinates [X1, Y1] and [X2, Y2] + a layer with Fractal Noise. In Fractal Noise I want the Offset Turbulence to follow the starting point (which is easy), but aslo move certain distance in Start-to-End direction each frame.
For that moving factor I’ve got this:
speed = percentage/100; // Let’s say 0.25
So every frame it would offset by (X1 – X2)*0.25 in X axis and by (Y1 – Y2)*0.25 in Y axis. But still linked to the position of “Start”.In some early tests I tried putting
effect(“Fractal Noise”)(“Offset Turbulence”).valueAtTime(time – thisComp.frameDuration);
in a Point Control and reusing it in the main expression, but it’s just pointing at the “pre-expressioned” value of the Offset Turbulence.I know that expressions have no memory of their previous values, so that’s why I’m asking – is it it even possible?
Just to clarify it a little bit – I am looking for something similar to “Lock Noise to Saber” feature in the Saber plug-in by Video Copilot. So ideally, the rotation should also vary, which I already kind of figured out:
if (X1 – X2 < 0){
Math.atan((Y1 – Y2)/(X1 – X2))*(180/Math.PI)
}else{
Math.atan((Y1 – Y2)/(X1 – X2))*(180/Math.PI) + 180
}
… but since Fractal Noise has no Anchor Point (it’s rotating around that Offset point instead of the the “Start” point), it would make everything so much more complicated that for now I’m just focusing on the Offset Turbulence (but if you’ve got any ideas, I would appreciate it).I hope I’ve described it well enough, otherwise just ask me and I’ll try to clear everything up.
Thank you in advance for any help, Vladislav.
