Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Add new spline type ?

    General Discussion
    0
    3
    893
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 15/05/2015 at 15:55, xxxxxxxx wrote:

      Hello,

      I would like to know if it's possible to add new spline type on the basic spline of C4D.

      The idea is to create some new interpolation type, like b-spline with knots and multiplicity :

      http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/B-spline/bspline-mod-knot.html

      And then import original curves from CAD software.

      Can we make a plugin to add new type of spline in the spline type menu, or do we need to subdivise the spline manually with a tag ? I would like to make it more C4D-freindly as possible.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 18/05/2015 at 10:36, xxxxxxxx wrote:

        Hello,

        it is not possible to add new interpolation modes to the existing spline object using the API.

        The closest thing would be to create an ObjectData plugin that returns a spline. Spline generators like the Cogwheel are an example. The created spline object could follow the shape you want to define. You find an example in the SDK project.

        The question would be how to define the points. One way could be to use an existing spline object (and it's points) as an input.

        What exactly do you mean with "subdivise the spline manually with a tag"?

        best wishes,
        Sebastian

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 22/05/2015 at 03:38, xxxxxxxx wrote:

          Sorry, I did not exprim myself very well, I thinked about add all the intermediate points with my parametric equation on a linear spline.

          But it's indeed better to use the C4D intermediate points generated from a bezier spline type, I am working on that conversion.

          Thanks for your answer.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post