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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Changing Spline Basis

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 346 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 21/02/2005 at 16:47, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.0-9.1 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Howdy,

      We need to know how to change the spline basis via SDK the same way it changes when the user changes the spline type in the Attribute Manager. For instance, you create a spline of type Akima and then change it to Bezier ( Hermite ) the Bezier sets the handles to closely approximate the Akima spline. If we just change types in the SDK first you get a crash because there were no Tangents. Obviously there is a function to do this or it is done simply in the spline object code which should be simple, yes? Can you share that with us?

      Thank you for your time,

      David Farmer
      coreaudiovisual

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 25/02/2005 at 11:18, xxxxxxxx wrote:

        Has SDK support been discontinued?

        David Farmer
        coreaudiovisual

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 28/02/2005 at 12:57, xxxxxxxx wrote:

          Sorry, no. I was just a bit busy last week.
          I don't seem to have any problem with converting the splines. At least this code converts an Akima spline just fine to a Bezier curve that matches the Akima:

              
              
              BaseObject* obj = doc->GetFirstObject();  
              obj->SetParameter(DescID(SPLINEOBJECT_TYPE), SPLINEOBJECT_TYPE_BEZIER, 0);  
              EventAdd();
          

          Did you possibly set this in the BaseContainer directly?

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 28/02/2005 at 14:03, xxxxxxxx wrote:

            Sorry, I wasn't sure. I was looking for posts to see if you taken a vacation. Sadly I actually had to wrap my brain around the basis functions and write my own. After seeing your response I need to go put my head n a toilet... 9-)

            Crap, I was getting the basecontainer data directly. Bad darf. Thank you!

            darf

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