SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Animation / animating string
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 22-03-2006, 05:22 PM   #1
farbtopf
Subscriber
 
farbtopf's Avatar
 
Join Date: Jul 2005
Location: London
Posts: 520
Thanks: 0
Thanked 1 Time in 1 Post
Default animating string

Hi,

I need to animate a piece of string. It has to bounce back when pulled. It is for one of those clowns on the wall. They have a string on their bottom and when you pull it the legs and arms start to move.
In order to simulate that I just wanted an opinion on what would be the best way to achieve a nice result. My first idea would be to create a cylinder and put some bones in it. But I know little about mayas field and soft body dynamics. (they might be better, or not??) So if anyone has any ideas on how to attack something like this. please let me know.

thanks
farbtopf is offline   Reply With Quote
Old 25-03-2006, 04:48 PM   #2
Rizzo
Registered User
 
Join Date: Nov 2003
Location: England
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Farbtopf,

I was looking for something to do while browsing these forums and your post caught my eye so here is 1 possible solution that is very fast efficient and a pretty simple setup.

1, Start by making a line of very basic geometry ...I used a simple poly cube ( 6 of them evenly spaced ) snapping them to grid locations.

2, Select all 6 cubes and under the dynamics menu - Soft/Ridged bodies create an active ridged body.

3, Select the first cube and shift select the next one in the row then goto soft/ridged bodies menu create a spring constraint...then move to the 2nd cube and shift select the 3rd cube and create a spring again, do this until each cube is connected with a spring between them.

4. select the cubes (apart from the first and last one) and goto fields menu and pick gravity....set the frames to around 300 and play and you will see the magic of dynamics in action...

5, Even though we didnt include the first or last cube in the gravity they still get affected by the spring pulling on them....I guess you could use passive rigid bodies for those but hey Im winging it here....so anyway to stop them flying away, select the first and last cube and in the channel box you will see an attribute called "Active" under rigidBody....set that to 0 - off and play the animation again.....they will act like anchors now.

6, Now its really up to you to set how flexible the string will be....by using the spring stiffness/ damping / spring rest length (spring attributes) and the damping value of the (rigid body) attributes....the springs will obviously show how the string will react

7, Draw a CV degree 3 curve along the line of the cubes putting a point at each cube...this will be the exact path of the string driven by the cubes...now goto component mode and select the first control vertex and under "animation" menu - deform / create a cluster (This is so you can parent the Vertex of the curve to the cube)....create a cluster for each vertex so you will have 6 matching position of the cubes

8, select the "c" for the cluster and shift select its cube and press P to parent them together / this will make the cluster follow the cube around.

9, Basic modelling skills...create a nurbs circle and extrude it along the spline we just setup.....voila you now have a dynamic controlled string...hide the cubes and springs etc and hit play

Job Done : )

Animating the first and last cubes positions is all thats left to do

I have attached a scene file for you to pick apart....

Have a good one.
Attached Files
File Type: mb stringanim.mb (81.5 KB, 29 views)

Last edited by Rizzo : 25-03-2006 at 07:17 PM.
Rizzo is offline   Reply With Quote
Old 25-03-2006, 06:45 PM   #3
farbtopf
Subscriber
 
farbtopf's Avatar
 
Join Date: Jul 2005
Location: London
Posts: 520
Thanks: 0
Thanked 1 Time in 1 Post
Default

Wow.... Thank you very much, I'm going to try this soon. That was the most helpful and detailed answer I ever recieved. Thanks a lot again.:attn:

Have a good weekend!
farbtopf is offline   Reply With Quote
Old 25-03-2006, 07:26 PM   #4
Rizzo
Registered User
 
Join Date: Nov 2003
Location: England
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

You're welcome :bow:
Rizzo is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.