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

    GetSegmentCount

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 207 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 07/08/2013 at 05:20, xxxxxxxx wrote:

      Hi.
      Simple scenario. I have a B-Spline object with 3 points. How can I count number of intermediate points? If I go to Object->Object Information, I get info about that object, and it says Points 0 (17). I assume 17 are intermediate points.

      But how do I get this number in Python?

      I tried doing spline.GetSegmentCount(), but I get 0.

      Am I missing something? I only need to calculate intermedia points, as if spline was made editable (current state to object). Any ideas?

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

        On 07/08/2013 at 05:38, xxxxxxxx wrote:

        Hi Tomas,

        You have to use the spline helper class c4d.utils.SplineHelp and its GetVertexCount() method to get this information.

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