Ensure that you first move the Anchor Point to the bottom edge of your bar. This ensures that scaling is anchored at the bottom of the bar.
Use the following script in a single layer’s position –
bar_width = 120;
xScalar = (index-1)*bar_width;
x_Startvalue = 100;
y_value = 640; //floor value for the bars
[x_Startvalue+xScalar,y_value]
————
Use this script for its scale prop
Scalar = transform.scale;
frequency = 2;
amp = 50;
[100,Scalar.wiggle(frequency,amp)[1]]
——————-
Then simply duplicate the layer as many times as you need bars. Changing the variables (the numbers after the = sign in the scripts should be easy enough for you to customize the script).
HTH
RoRK
Intensive mocha & AE Training in Singapore and Other Dangerous Locations
Imagineer Systems (mocha) Certified Instructor
& Adobe After Effects CS6 ACE/ACI