-
Modify spiral expression to create a Spring
Hi.
I am creating an animation that looks at mattress construction, specifically bed springs.
I need to show a side view of a single spring that shows it growing from bottom to top.I have had some success using this expression which I found and applied to a light emmiter and particular:
radius = 140;
angle=time*150;
x=radius*Math.cos(degreesToRadians(angle));
y=radius*Math.sin(degreesToRadians(angle));
z=time*70
center=[640,360,0]
add(center,[x,y,z]);however, I’m not an expressions expert. my spring needs to start with a flat coil then grow then end with a flat coil, it also needs to be ever so slighlty barrel shaped. I’m sure this is achievable by altering the spiral expression and perhaps attaching sliders to the angle and radius, but I cant get it to work!
see pics to aid explanation:
The white areas I have drawn sort of describe how i need the ends tof the spring to look: (arrows to show where the spring needs to be slightly wider radius)
Any ideas on how I might modify this expression, or much easier workarounds to create this spring, very welcome,
Thanks in adv,
Eugene



