#1 04-25-2012 12:04 pm

Inazuma
Rockstar
From: UK
Registered: 02-18-2011
Posts: 162
Karmojo: 72

Anyone know how to rig a spring?

Probably should have asked this much earlier, but does ayone know how to rig a spring? It's for a short film I'm doing. I need it to go from a resting position, to being extended exponentially from the base and also be able to move about side to side. http://dl.dropbox.com/u/1094036/spring_how.jpg

I don't need you to do it for me, but I would like to know how to do it. Any help appreciated smile


smile

Offline

 

#2 04-25-2012 1:35 pm

wolfor
Rockstar
From: Germany
Registered: 03-23-2008
Posts: 3602
Karmojo: 75
Moderator
Power Voter

Re: Anyone know how to rig a spring?

I think I saw a rigging tool for that at creative crash once. Not sure, though. Other than that, I think this is rather complicated to rig, you could probably have a joint chain follow the whole spring till the ground and then try to drive these maybe with a bend and a stretch modifier (just brainstorming right now, I'm not even sure if that works) or even just an IK handle? that could actually work big_smile

Offline

 

#3 04-25-2012 1:52 pm

fakepivot
Model Citizen
From: india , bangaluru
Registered: 12-22-2010
Posts: 809
Karmojo: 58

Re: Anyone know how to rig a spring?

this is what i would do
inside helix create add some bones, then you can add IKspine to it and make it streachy..which would be little compilacated ,,, or .. you can add just 3 bone .. and add 2 controls for it bottom and top, then parent constrain the top joint to the top control and bottom to the bottom contorl.. witch in the end would be harder to paintweights

http://dl.dropbox.com/u/29182313/bone.jpg

also don't forget to deleat history on the controls and freez its transformations smile

and this is not the best way to do it.. as im not a PRO rigger ,, so some pro rigger might have better solution smile


acting is a survival Mechanism-- Marlno Brando
My Blog/Website

Offline

 

#4 04-25-2012 1:59 pm

StefanLipsius
Celebrity
From: Greater Toronto Area
Registered: 11-30-2008
Posts: 555
Karmojo: 63

Re: Anyone know how to rig a spring?

Its not so complicated as it is time consuming. Mainly because of the weights. So, in this picture, the blue and red dots on the right are the joints, then the % numbers are how much that section of the spring should be weighted to each joint. This should be a smooth transition. very very smooth, going form 100% all the way down to zero when it reaches the next joint.

http://dl.dropbox.com/u/14662692/11%20Second%20Club%20-%20Help/Spring.JPG

Thats just the very basic spring, if you wanted to animate it as a spine. But, if you want just 1 control on the top, then you`ll need to make the joint chain an IK solver with stretchy on it, and offsets in the middle. thats where it gets complicated.

Offline

 

#5 04-25-2012 2:06 pm

wolfor
Rockstar
From: Germany
Registered: 03-23-2008
Posts: 3602
Karmojo: 75
Moderator
Power Voter

Re: Anyone know how to rig a spring?

I'm not sure but wont that change the thickness of the spring when translated?

Edit: Searching for 'spring' in the Maya section of creativecrash.com rendered at least 3 usable plugins/scripts, one of them by a guy I actually know big_smile
http://www.creativecrash.com/maya/downl … =0&y=0

Last edited by wolfor (04-25-2012 2:21 pm)

Offline

 

#6 04-25-2012 2:20 pm

StefanLipsius
Celebrity
From: Greater Toronto Area
Registered: 11-30-2008
Posts: 555
Karmojo: 63

Re: Anyone know how to rig a spring?

Ummm, it might a little bit. fakepivots way certainly does. To minimize the stretch, you could put another joint where the 50% is, and parent constraint it to the red and blue, above and below it. Set the parent constraint to 50 / 50. Then instead of going from 100% - 0% from the red to blue, you do 100 - 0 between the red and new parented joint. if that makes sense at all.

Honestly, id just download one though. lol

Offline

 

#7 04-25-2012 8:39 pm

robcat2075
Celebrity
From: Dallas TX
Registered: 08-01-2008
Posts: 1714
Karmojo: 68
Power Voter

Re: Anyone know how to rig a spring?

Another option is to use stiff "cloth" for springs.  No bones about it!

Direct Link


"3D animators have pencil envy" - Robert Holmén
The world's most beloved Heavy Push
This is only a... my gallery of CG tests
I'm a 2D Wannabe...  drawings and 2D animation tests

Offline

 

#8 04-25-2012 10:19 pm

Camaro
Upright Citizen
From: Wherever I May Roam
Registered: 11-05-2008
Posts: 2357
Karmojo: 42

Re: Anyone know how to rig a spring?

Icwutudidthar


"Always bear in mind that your own resolution to succeed is more important than any other." - Abe Lincoln

The key to world domination

Offline

 

#9 04-26-2012 12:31 am

Inazuma
Rockstar
From: UK
Registered: 02-18-2011
Posts: 162
Karmojo: 72

Re: Anyone know how to rig a spring?

Thanks very much guys smile I will try some of these things. The cloth one is the one i can't because i need to control the spring.


smile

Offline

 

#10 04-26-2012 2:11 am

dgovil
Helper
From: Vancouver, Canada
Registered: 03-23-2010
Posts: 817
Karmojo: 14

Re: Anyone know how to rig a spring?

Create a nurbs spiral, skin that to a set of bones and then extrude a cirlce along that curve. It'll be easier to skin.

For the joints, create a simple IK spine setup with a controller on each end so each end locks down, and a controller in the center to adjust the curve.
Tons of tutorials for the spine I think, but none I can think of, off the top of my head. Essentially a splineIK with three clsters attached to control curves.
. It'll be a b*tch to animate but that's really it. Good Luck


Dhruv Govil
Animator and Generalist
Portfolio and Blog
Email

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson