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

    SplineObject from Generic?

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 568 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/10/2017 at 09:56, xxxxxxxx wrote:

      hi there,

      anyone with a tip on how to get a c4d.SplineObject from a generic Object (Arq, Helix, etc) ?
      without making the original generic object editable...

      sure thats around but i couldnt find it...

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

        On 06/10/2017 at 02:11, xxxxxxxx wrote:

        You got two solutions (as I know) using YourSpline.GetCaches(), that give you a LineObject, then you can create a SplineObject().
        Or you can simply use YouSpline.GetClone() then perform a make editable action.

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

          On 06/10/2017 at 06:04, xxxxxxxx wrote:

          Hi,
          BaseObject.GetRealSpline() should exactly do what you want.

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

            On 06/10/2017 at 12:53, xxxxxxxx wrote:

            Thanks for providing already great answers. Just for the sake of completeness please consider to have a look at BaseObject.GetRealSpline() in the API documentation.

            Best, Riccardo

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