This content has been marked as final. Show 5 replies
You can do this with expressions. It's a little too complex for me to do from my head. If I get a chance I'll work it out and post an example.
Check Dan Ebberts "Follow the leader" stuff on http://www.motionscript.com. It's more or less the same principle - make the other layers react with a delay to a master layer. For a circular motion and falloff, Math.sin() and Math.cos() are your friends. Falloff is merely a distance based multiplier, either linear or with whatever formula you desire. Depending on what you do, you could of course simply feed in the time as the driving parameter for your sine waves.... Apart from that: Why not simply use Card Dance? It responds to the comp camera and can made to produce any pattern by respective driver maps...
Great ideas, both of you. Thanks.
I'll try card dance first, then I'll try expressions if I'm having trouble.
I need to learn expressions. Coding has always been my weak point.
If EchoSpace doesn't meet your needs, this can be done using Wave World and expressions. The idea is to use a single solid with Wave World (or a similar effect or piece of footage) as a displacement map to drive the displacement of the layers (I'll call it "Displacement Map"). Position the displacement map such that it encompasses the layers you want to displace, and parent those layers to the Displacement Map layer. Apply the Slider Control effect to the Displacement Map layer, and rename it "Displacement height". Set this slider control to some nonzero number (this will be the max/min height of the displacement relative to the Displacement Map layer). Then apply the following expression to each of the layers to be displaced:
>factor = parent.effect("Displacement height")("Slider");
>sample = parent.sampleImage([position, position], radius = [.5, .5], postEffect = true, t = time);
>displacement = linear((sample+sample+sample)/3, -factor/2, factor);
>transform.position+[0, 0, displacement]
With lots of layers to be displaced, it won't render fast, but it should do what you want and should be very easy to control.