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
    • Admin
    • Login

    Move vertices to spline

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 300 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 05/12/2015 at 21:47, xxxxxxxx wrote:

      If I have a arc spline how would I move the points of a object to the spline??

      Thanks

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

        On 06/12/2015 at 02:24, xxxxxxxx wrote:

        Depends on the logic behind the move?

        If you want the object's points move to defined positions on the spline, you can use GetSplinePoint() to calculate points on the spline by a position along the segment.

        If you want the "closest" point on the spline, I don't know an API function but you can iterate/approximate depending on your spline's properties.

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

          On 07/12/2015 at 02:01, xxxxxxxx wrote:

          Hello,

          to sample a spline one can also use the SplineLengthData and SplineHelp utility classes.

          Best wishes,
          Sebastian

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