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

    Spline field

    SDK Help
    0
    5
    984
    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

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

      On 13/12/2002 at 08:18, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      How can I retrieve the different values of a SPLINE description field?
      I have found the customgui_splinecontrol.h headerfile but I don´t know how to get any values.
      Thanks for any help into the right direction.

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

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

        On 13/12/2002 at 09:17, xxxxxxxx wrote:

        First, get a pointer to the SplineData (SplineCustomGui::GetSplineData).
        To get an array of all knots, call SplineData::GetKnots. You can get the coordinates of any spline point with GetPoint and GetPointFromX.  r must be in the range [0, 1]. Increase lMaxIter or decrease rMaxEps if the result is not as excat as you need.
        Good luck

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

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

          On 13/12/2002 at 09:50, xxxxxxxx wrote:

          I just want to add that in a description, SplineCustomGui::GetSplineData() will be replaced by static_cast<SplineData*>(BaseContainer::GetCustomDataType(id, CUSTOMDATATYPE_SPLINE)).

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

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

            On 13/12/2002 at 11:08, xxxxxxxx wrote:

            hui, thanks both of you. I will try to make it. Good Luck is exactly what I need. 🙂

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

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

              On 13/12/2002 at 12:23, xxxxxxxx wrote:

              Works like a charm. Thanks again.

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