Maya for 3D Printing - Rapid Prototyping
In this course we're going to look at something a little different, creating technically accurate 3D printed parts.
# 1 17-08-2004 , 12:03 PM
Registered User
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55

How to animate a spring?

Hi,

I have to make a spring animation. I know how to draw it, but not how to animate it.

The problem is, that when it's squeezed together. The wire shouldn't be squeezed, only the space in between.

How do I do that in maya?


: ) Jakob

<i>It's the "hard", that makes it great! - Tom Hanks</i>
# 2 17-08-2004 , 12:14 PM
Registered User
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
oh... I thought I knew how to draw a spring... a parently not.user added image

How do I do that?


: ) Jakob

<i>It's the "hard", that makes it great! - Tom Hanks</i>
# 3 17-08-2004 , 06:20 PM
Registered User
Join Date: Jan 2003
Posts: 65
Hi,

Use a live tube extrude on your spring curve. Use a circle for the extrude shape. Keep history, and then, when you deform the wire, the space between shrinks, but not the geom.

sjlocke

# 4 18-08-2004 , 07:48 AM
Registered User
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
ah! Ofcourse! well, and that brings me to the next problem: How do I create a spring curve?


: ) Jakob

<i>It's the "hard", that makes it great! - Tom Hanks</i>
# 5 18-08-2004 , 07:57 AM
Pony's Avatar
Subscriber
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
tern your snaping on draw a nurbs cerve. say with Z being world up. from the center of the world there put yoru first point like 8 to the left, second 8 up, thred 8 right, and last 8 down.. asoming your looking from the top view..
Thin grab the second cv put it up one. the therd pull it up 2 and the forth pull it up 3. in the Z direction.. up..
duplicat that a couple of times Z+4 and combine them.. and you have it.

# 6 18-08-2004 , 08:28 AM
Registered User
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
Thanks to both for great answers.

But I have one final problem.

I do all that pony say's. When I come to the combine the two curves part, I chose my two curves and goes "attach curves" in the options I chose connect.

Is this the right way to do it?

I get a strange problem, when I try to move the new curve, only the upper part of it moves and also when I scale it.

Do you have a clue?


: ) Jakob

<i>It's the "hard", that makes it great! - Tom Hanks</i>
# 7 18-08-2004 , 08:45 AM
Registered User
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
swifting off the history, did the job. I now see why.

Thanks again, I now have a lovely spring!


: ) Jakob

<i>It's the "hard", that makes it great! - Tom Hanks</i>
# 8 18-08-2004 , 08:49 PM
Pony's Avatar
Subscriber
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
I was holding my breth after that fist post after mine.. LOL glad it worked as I haven't sit in front of maya in months.

# 9 19-08-2004 , 01:18 AM
mtmckinley's Avatar
The Maya Mountain
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Another way to create a spring curve is detailed in the tornado tutorial I have here and in text form at my site.

# 10 22-08-2004 , 07:04 PM
murph's Avatar
Subscriber
Join Date: Mar 2004
Location: ENGLAND
Posts: 404
you can also create a circle curve > duplicate transform >rotate it a couple of degrees and move it up (the duplicated curve) and then key "G" quite a few times (pending how big your want your spring) then go to the outliner select in sequence the curves, and loft - et voila

cheers murph

btw: i hope thats not the way you did it mike, or i am gonna look even more stupid!


MURPH
# 11 22-08-2004 , 11:28 PM
mtmckinley's Avatar
The Maya Mountain
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
This was done to create a tornado effect. For details on the tornado, check out the tutorials. To create the spring, though, here's the steps:

1. First, create a curve going straight up from the origin, with a CV placed about every 2 grid lines or so (using a default grid arrangement).

user added image

2. Create a Nurbs Circle. Make the following changes:

Translate X : -.5
Rotate X : 90
Radius : .04
Sweep : 90
Sections : 3

user added image

3. While the Circle is selected, press Insert (above the Delete key on the keyboard) and Grid Snap (X) the pivot of the circle to the origin.

user added image

4. Now, select the Nurbs Circle and then the Curve in that order. Go to the Modeling Menu Set and Surfaces > Extrude. In the Channel Box, under Inputs, make these changes:

Fixed Path : ON
Use Component Pivot : ON
Use Profile Normal : OFF
Rotation : 5000 (adjust this for number of twists)
Scale : 6 (if just straight spring is wanted, leave at default)

user added image

5. Select an isoparm on the spiral surface and go to Edit Curves > Duplicate Surface Curve. You now have a spring-shaped curve.

Been a couple versions since I did this, but hopefully it still works the same way.

# 12 23-08-2004 , 06:46 AM
Registered User
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
mtmckinley > thanks for that! I'm looking forward to true it out.


: ) Jakob

<i>It's the "hard", that makes it great! - Tom Hanks</i>
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads