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
    • Login
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Percentage offsets of interpolation points

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 315 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

      On 31/10/2013 at 17:56, xxxxxxxx wrote:

      Hello everybody,

      i´ve rummaged in the SDK for a while, but i wasnt able to find what i was looking for. So just a little question: Is it or how is it possible to get the percentage offsets of the interpolation points of a spline?

      Hope anyone can help.

      Greeting
      rown

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

        On 01/11/2013 at 09:57, xxxxxxxx wrote:

        Hi rown,

        In C++, you could use SplineHelp::GetLinePointSegment(), but since it is not available in Python, you can

        1. either get the internal line object (using GetCache() on the spline) and search for the closest point to your point, then compare the traversed length with the full length of the line object
        2. or do a march along the original spline with an appropriate interval and use GetSplinePoint() to get closer to your original point.

        Best,
        -Niklas

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