Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating dangling objects with spline dynamics

From: CINEMA 4D Essentials 9: Particles and Dynamics

Video: Creating dangling objects with spline dynamics

A little known part of the Dynamics Engine in CINEMA 4D is something called Spline Dynamics. One of the reasons that it's so little known is that it's not really part of the Dynamics Engine, it's actually part of the Hair Engine in CINEMA 4D. But you can use it for creating some really cool dynamic effects. I'm going to draw a Spline in the scene. So let's middle mouse-click to get to one of the orthographic views. I'll do this in the front view. Let's draw a Spline. I'm going to go to the B-Spline, and I want my first point to hit exactly on the center of the world.

Creating dangling objects with spline dynamics

A little known part of the Dynamics Engine in CINEMA 4D is something called Spline Dynamics. One of the reasons that it's so little known is that it's not really part of the Dynamics Engine, it's actually part of the Hair Engine in CINEMA 4D. But you can use it for creating some really cool dynamic effects. I'm going to draw a Spline in the scene. So let's middle mouse-click to get to one of the orthographic views. I'll do this in the front view. Let's draw a Spline. I'm going to go to the B-Spline, and I want my first point to hit exactly on the center of the world.

So I'll turn my snapping on, and I'll enable Snapping first by making the view active, and then click and hold on the Icon. What I want to do is snap it to the work plane. So now when I go in here and I click, I know that I'm just clicking exactly on 0, and that made my first point. Now I can go out here and I'll click another one here, and I'll click another point here, and I think that's enough points for now. You notice because my points are all lined up on the grid, I get a perfectly straight line. Let's turn the Snapping off now, and now we can go back to the Perspective View.

So let's back out a little bit so we can see our Spline, and I'm going to right-click on the Spline and go to Hair Tags, and then Spline Dynamics. And when I let go, it looks like nothing happened, except that when I rewind to 0 and hit play, my Spline falls away. The Spline is now on Dynamic Object. Now that may not seem very impressive, until we do a very important step. Let's use the Selection Tool and click on the very first point that we had at the center of the world, and then go back to the Dynamics tag that's on the Spline and go under the Properties Option, and tell it to set the Fixed Point.

When we do that, this first point is now turned a different color. Let's deselect the Spline. You'll see that it's now turn sort of purply magenta color. Let's rewind back to 0 and hit play. When we do that the Spline now dangles as if it were a Dynamic object. And not only that, it's flexible as well. I want to be able to move that Spline around. The unfortunate thing, though, is that you have to kind of trick the tag. Once you put that tag on the Object, the spline point is fixed to wherever it was in relationship to its parent or the center of the world.

Because I did not have the Spline parented, then I won't be able to move it. So what I need to do is go back and parent the Spline to a Null object and now we'll be able to move that Spline around. Let's get out of Point Mode and select the Null Object, and then drag it up a little bit. And you can see you can still move that point. Now what I want to do is to hit play again. You can see that the Spline now will jump back a little bit. That's because it's recalculating the new position. Now it's very flexible. Let's do something else now.

I'm going to rewind back to 0. I want to stick a sphere on the end of that spline. We're going to use a little bit of XPresso to do that. First, let's add a Sphere to the scene. And then let's add another Null object, and this Null object is going to be called Sphere parent. I want that Sphere parent to be right at the tip of the Sphere, at the very top of the pole. So I'll take that Sphere parent and raise it up 100 units on Y. Now let's parent the sphere to that.

Then on the Sphere parent I'm going to add some XPresso, because I want to use XPresso to stick that to the Spline. So let's right-click on the Sphere parent, go to CINEMA 4D Tags, and then do XPresso. Under the XPresso Editor, I'm going to drag in the Sphere parent, and then I'm going to drag in the Spline. What I want to do is I want to get the point information from that Spline out to the Sphere parent to use that as position information. So I'm going to right-click and add a New Node and under XPresso > General, I'm going to add a Point node.

Now every Object in CINEMA 4D has something called a Point Index Value, and you can find out the Point Index Value by going to the Structure Manager. So let's select our Spline and then lower the interface down just a bit. Then over in the tabs on the right is the Structure Manager. When I select that, I now see a little spreadsheet, and this spreadsheet represents the locations of the points on my Spline. You can see I have the first point selected. So it's highlighted point 0. And these are the index values of the points. The first point on a Spline is always 0, and then it counts upward from there.

The last point on the Spline where I want to connect my sphere is point 2. So let's click on that, and now we've got that point selected. So I know that point 2 is the last one on the Spline. And in my node for the Point node, it's highlighted yellow, because it's not calculating anything right now, it's alerting me that it's not calculating. I'm going to change that Point Index Value to be 2, and that matches that number 2 that I have up here. Let's go back to the Object Manager now. We're done with the structure. So now what I want to do is I have to tell the Point node what object should you look at to calculate this value.

So I'll go to the Spline and take the Object Property out of the Spline and then connect it to the Object Property on the input of Point node and you'll see that it will turn gray again. Now it's actually calculating something. Then I want to take the Point Position and put it on the Global Position of the Sphere Parent. So I'll drag a connection out onto the blue here, and when I let go it's going to ask me, where do I want it to connect it to. And I'll connect it to Coordinates, Global Position, and then Global Position. When I do that, the sphere jumps immediately to the Global Position.

Now let's close up the XPresso Editor and rewind back to 0 and hit Play, and you'll see that the sphere will now dangle. I want to give this a little bit of motion as well, just a little bit of jumping around motion. I can use something called a Vibrate tag to do that. Let's right-click on the Null that's the parent of the Spline and go to CINEMA 4D Tags, and then Vibrate. The way to Vibrate tag works is that it doesn't do anything until you activate one of these parameters. We'll activate Position.

Rotation won't do anything in this case. We just want to concentrate on Position. Let's turn on Position, and then rewind back to 0, and hit play. So now you'll see that our object will be dangling. Let's give it a little bit more room to run, and I'll rewind back to 0. And let's change the Preview Range from 90 to, say, 300, and then enlarge the Preview Slider here. And that will give our dangling sphere a little bit more time to be affected by the Amplitude. I'm also going to crank up the Amplitude from 100 to, say, 500, and so our sphere will be jumping all over the place.

And you really get a sense for the flexibility of that Spline. So let's rewind back to 0 and hit play. Now you'll be able to see. Let's raise the view up just a bit, and you can see that the Spline is very flexible and the sphere is going crazy. To add a little bit more flexibility to the Spline, we can go to the Spline Dynamics tag and we can reduce the Stiffness. Let's reduce the Stiffness down from 20% to, say, 5% and let's rewind back to 0 and hit play again.

And now you see that the Spline is a little less stiff than it was before. This is a really fun technique and I've used it in the past to create dangling type effects in motion graphics spots, but I'm sure you can come up with some more amazing uses.

Show transcript

This video is part of

Image for CINEMA 4D Essentials 9: Particles and Dynamics
CINEMA 4D Essentials 9: Particles and Dynamics

14 video lessons · 4341 viewers

Rob Garrott
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed CINEMA 4D Essentials 9: Particles and Dynamics.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.