Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Drawing a Spline Between 2 Objects in Xpresso

  • Drawing a Spline Between 2 Objects in Xpresso

    Posted by Ryan Paterson on April 3, 2016 at 2:03 am

    I have a 2-point spline that I’ve connected each point to a different object using a Point node, effectively creating a line between the 2 objects no matter where they go. However I need to be able to control the length of the spline- so I can animate it “connecting” to the 2nd object.

    Tried some vector math but couldn’t quite get it right. Do I need to use a Dot Product node to calculate the angle and then multiply that against some value to control the length of the spline? Or is there some easier way I’m completely overlooking?

    Adam Trachtenberg replied 10 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Adam Trachtenberg

    April 3, 2016 at 3:13 am

    Unless you’re using the Hair post effect or Sketch & Toon, you’re going to have to generate some geometry to render that line. So use a Sweep Nurbs object and animate the growth parameter.

  • Ryan Paterson

    April 3, 2016 at 4:01 am

    I appreciate that but I’m already using a Sweep Nurb. The reason I need to draw the spline is so the sweep follows the Spline Scale even as it grows, when I animate that property the end isn’t scaled the way i need it to be

  • Adam Trachtenberg

    April 3, 2016 at 3:13 pm

    I see. In that case I’d use a MoSpline referencing the spline that’s connecting your two objects. You can sweep the MoSpline and you can also animate the length of the MoSpline along the reference spline. If you go that way you’ll have to keep in mind that the MoSpline’s Spline>Width parameter controls the start radius of the sweep, as opposed to the radius of the profile spline that’s being swept.

    Example: 9940_mosplinesweep.c4d.zip

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy