Introduction to Maya - Modeling Fundamentals Vol 2
This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 1 22-03-2006 , 06:22 PM
farbtopf's Avatar
Subscriber
Join Date: Jul 2005
Location: London
Posts: 520

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

# 2 25-03-2006 , 05:48 PM
Registered User
Join Date: Nov 2003
Location: England
Posts: 19
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, 215 views)

Last edited by Rizzo; 25-03-2006 at 08:17 PM.
# 3 25-03-2006 , 07:45 PM
farbtopf's Avatar
Subscriber
Join Date: Jul 2005
Location: London
Posts: 520
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!

# 4 25-03-2006 , 08:26 PM
Registered User
Join Date: Nov 2003
Location: England
Posts: 19
You're welcome :bow:

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