Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 17-08-2004, 01:03 PM   #1
jakwag
Registered User
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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>
jakwag is offline   Reply With Quote
Old 17-08-2004, 01:14 PM   #2
jakwag
Registered User
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oh... I thought I knew how to draw a spring... a parently not.

How do I do that?
__________________
: ) Jakob

<i>It's the "hard", that makes it great! - Tom Hanks</i>
jakwag is offline   Reply With Quote
Old 17-08-2004, 07:20 PM   #3
sjlocke
Registered User
 
Join Date: Jan 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
sjlocke is offline   Reply With Quote
Old 18-08-2004, 08:48 AM   #4
jakwag
Registered User
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>
jakwag is offline   Reply With Quote
Old 18-08-2004, 08:57 AM   #5
Pony
Subscriber
 
Pony's Avatar
 
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
Thanks: 0
Thanked 6 Times in 6 Posts
Default

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.
Pony is offline   Reply With Quote
Old 18-08-2004, 09:28 AM   #6
jakwag
Registered User
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>
jakwag is offline   Reply With Quote
Old 18-08-2004, 09:45 AM   #7
jakwag
Registered User
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>
jakwag is offline   Reply With Quote
Old 18-08-2004, 09:49 PM   #8
Pony
Subscriber
 
Pony's Avatar
 
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
Thanks: 0
Thanked 6 Times in 6 Posts
Default

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.
Pony is offline   Reply With Quote
Old 19-08-2004, 02:18 AM   #9
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

Another way to create a spring curve is detailed in the tornado tutorial I have here and in text form at my site.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 22-08-2004, 08:04 PM   #10
murph
Subscriber
 
murph's Avatar
 
Join Date: Mar 2004
Location: ENGLAND
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
murph is offline   Reply With Quote
Old 23-08-2004, 12:28 AM   #11
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

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).



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

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



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.



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)



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.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 23-08-2004, 07:46 AM   #12
jakwag
Registered User
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>
jakwag is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.