Connecting Cables 2 - Hair TUT

A Mouse Cord. Dynamic Spline TUT-1
! There is a known bug on mac-c4d 9.5.2.1 - you can not always save the file or it will crash - should be fixed soon!

Lets assume we want to make a wired computer mouse. Or whatever appliance with a wire or cord.
Here are some tricks to make the task a breeze.

mouse cable

Follow up:

Start by making a linear spline from the mouse to the end of the cord, that is 2 clicks in total. Right click in the view and subdivide the spline 20 times or even more. Drag the spline in a SweepNurb and add a circle with a radius of 0.5. Put the SweepNurb in a HyperNurb to smooth it.
Add the Dynamic Spline Tag to the spline.

spline

Constraints
We want to fix both ends of the cable.
Start by adding two simple cubes of 1x1x1 and make the editable (hit C)
Place them at both ends of the cable. The first cube has to be a child of the mouse object.
Add two Constraint Tags to the Spline. Click on one of them and drag one of the cubes in the text-field.
Select the very first point of the spline and make it a Soft-interpolation. Click on the Constraint tag and hit the Set button. This will fix that point to the cube.
Do the same with the other constraint tag and the other cube and the opposite point of the spline.

constraint

Add a plane to make the floor, make it editable (hit C) and add a Hair Collider tag. To get the wire to behave like a smooth snake set Friction to a minimum. Other settings for Stiffness and Rubber can be found in the Dynamic Spline tag.
Hit F8 and move the mouse object. And Enjoy real time wire animation.

floor

Side Note: In my animations I used a Vibrate Tag to move the mouse. However, you must set the priority of the vibrate tag to "expressions -1" (minus one) to get the expected result. Otherwise some lagging will occur. This can also happen with Xpresso or other tags.

mouse cable

33 comments

Comment from: Vincent [Visitor] · http://www.wipix.fr : 2006-02-15 @ 15:09
Great !!!
you are the Hair secrets Master !

Thank you to share your knowledge ! :)
Comment from: kiteman [Visitor] : 2006-02-15 @ 16:05
héhé :) ! encore du good ... j'avais même pas fais gaffe au "spline dynamics tag" ;) ..tu m'apprends encore un truc
bien joué Base :)
Comment from: Craig [Visitor] : 2006-02-16 @ 13:34
Respect - for your original ideas. Another great tut'.!
Comment from: Athlon [Visitor] : 2006-02-16 @ 19:28
Great work. i cant find "spline dynamics tag"
Athlon
Comment from: base80 [Member] Email : 2006-02-16 @ 23:15
The tag is part of the HAIR Module
Comment from: Sir Gong [Visitor] : 2006-02-17 @ 22:37
Tu es beau.
Comment from: scanmead [Visitor] : 2006-02-19 @ 21:28
Perfect for draping cables and wires in stills! All of these are much appreciated!
Comment from: Athlon [Visitor] : 2006-02-21 @ 18:54
tnx
Comment from: ChrisC [Visitor] · http://www.chriscousins.plus.com/cc/ : 2006-03-17 @ 01:08
Cheers - this is good stuff.
Comment from: Gordon Stewart [Visitor] : 2006-03-29 @ 18:14
I have an xpresso problem that is driving me buggy: I have a character whose head is attached to the body by a springy coil. I am trying to use a helix spline (in a sweep nurb to make a coil) and a bend deformation to move the coil up and down and flop around. The problem is keeping the head positioned at the top of the helix coil as it is bent by the deformer. Is there a way to do this in xpresso? Thanks very much.
Comment from: base80 [Member] Email : 2006-04-02 @ 00:37
I'll do a tut asap.
This is a common problems with deformers.
I'll be back...
Comment from: violet [Visitor] : 2006-05-12 @ 10:48
This is the coolest La Cocina.
Comment from: Marc [Visitor] · http://www.locobox.org : 2006-05-17 @ 03:03
A nice alternative to the tedious labor of animating bones or splines Great like ever.
Thanks.
Comment from: mank [Visitor] : 2006-08-29 @ 16:26
crash bug still exists in 9.603 on mac >:-\
Comment from: tosh [Visitor] : 2006-09-04 @ 05:14
awesome! but heres something extra! if you use in conjunction with MSA you can make awesome complex cables, just do as stated above, then copy the dynamic spline x2 and drop in an msa object with your chosen polygon object to replicate along the spline, VOILA! cheers for this awesome tut dude! :-)
Comment from: Mike [Visitor] · http://www.dhanimations.com : 2006-10-01 @ 21:03
Brilliant, you've just given my terminator hydrolic pipes..
Comment from: Jason Hearne [Visitor] · http://www.videoboxstudios.com : 2006-11-29 @ 10:43
The other great thing about this is it plays nicely with Dynamics. I just created a baloon with helium. The Spline keeps my baloon from floating off into the void. Just follow the Hair set up and then put the stuff that want to be affected into the solver while the stationary cube that weights it down remains outside the Solver. Thanks.
Comment from: dd [Visitor] : 2006-11-30 @ 03:15
Is it just me or do particle dynamics not want to work with the spline dynamics tag? I've tried everything.
Comment from: base80 [Member] Email : 2006-11-30 @ 03:34
You have to 'include' them in the forces pane.
Comment from: dd [Visitor] : 2006-11-30 @ 05:54
I have included them.....
Comment from: dd [Visitor] : 2006-11-30 @ 06:53
got it, for it to start for some weird reason the force needed to be parented with the spline in a null.... but after it started deforming i could take the force out of the null and it would still work
Comment from: RYAN [Visitor] : 2006-12-04 @ 01:29
Hello! Your web site is helpful, nice site. This will be my first time visiting. I will be back!
Comment from: Carlos Padilla [Visitor] : 2007-02-14 @ 00:19
As we say in Mexico. Muy chingon!
Comment from: till [Visitor] · http://www.sign-portfolio.de : 2007-10-27 @ 12:04
hello, very very nice thing!
the only problem i have, is when i close and open a file the connections to the cubes seem not to work anymore. the cables just fall down!?
Can i avoyd this?
Otherwise i have to make the constrain-"set" thing each time again when open the project...
thanks in advance!
till
Comment from: till [Visitor] · http://www.sign-portfolio.de : 2007-10-27 @ 12:20
tried some things, but still it doesn't work after closing and opening the project...hmm
please gimmy some help!
Comment from: base80 [Member] Email : 2007-10-27 @ 14:54
Sorry Till I can not reproduce your problem in 10.5. It all works fine here
Comment from: till [Visitor] · http://www.sign-portfolio.de : 2007-10-31 @ 16:10
ok strange...
maybe it's the version...i have an older one. thanks anyway!
it's still fun
Comment from: gentilrom [Visitor] : 2007-11-21 @ 12:00
sorry but i make the tut in V10 and it doesn't work as you.
Is it a bug ?
Can i mail you my try project ?
Thank you
Comment from: base80 [Member] Email : 2007-11-21 @ 12:12
Gentilrom, sending me the file will only help if you send me a donation too.
The tutorials are working generally if you have basic knowledge of c4d
Comment from: Arvin [Visitor] : 2008-01-08 @ 01:03
What are the best settings for a realistic mouse cable?
Is it even possible to get realistic movement of a mouse cable with this method?
Comment from: JWW [Visitor] Email · http://jefferywright.com : 2009-01-11 @ 17:09
"Select the very first point of the spline and make it a Soft-interpolation."

how? by wishing really hard?
Comment from: JWW [Visitor] Email · http://jefferywright.com : 2009-01-11 @ 20:26
got it, i am trying to rig an existing sweep... had to convert it to linear.

i'm trying to do hydraulic hoses, does the sweeo have to start out as a straight line? i cant get this to connect with my posed spline.
Comment from: Brecht Verborgh [Visitor] : 2009-06-23 @ 10:15
I've been using your trick in c4dr10 in combination with B-splines for cables on machinery to a great succes

Thnx a whole lot,
best regards

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)