-
Fruit machine REVISITED! – expressions help?
Hi guys,
Thought it better to start a new thread for this as the other one is quite a way down now..
Basically I’ve made up a fruit machine style comp using the motion tile effect for the spinning reels – works well.
Though I did like the idea of the reels bouncing gradually to a halt as per someone’s suggestion in the previous thread using the following expression:
——–
freq = 5;
amplitude = 35;
decay = 1.0;y = amplitude*Math.cos(freq*time*2*Math.PI)/Math.exp(decay*time);
position + [0,y]———
Now this was originally to be applied to the layer’s position data, but when I try to paste it into motion tile as an expression (which is serving a similar purpose to position – the movement of the reels) it doesn’t work…presumably because the following expression is already applied to mo tile:
———————
effect(“Motion Tile”)(1)
———————
If I try add the decay expr after this or in place of it, it doesn’t work.
Apologies for my niavety – I am *VERY* new to expressions and haven’tyet got my head around how they work.
Any ideas very much appreciated.
Jim.