Add new spline type ?



  • 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.



  • 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



  • 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.


Log in to reply