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

    SplineObject Problem

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 361 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

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

      On 31/07/2008 at 02:16, xxxxxxxx wrote:

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

      ---------
      Hi!

      I've a problem with the SplineObject. I create a spline and try to get the segments.

      GetSegmentCount() returns 0.. why? When I create two "splines" in one object it returns 2.. Does anyone know?

      thanks..

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

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

        On 31/07/2008 at 02:44, xxxxxxxx wrote:

        Hi,

        that´s simply the way it is. When it returns 0 it should actually return 1. It means nothing, don´t care. 🙂 (you should however check if there is at least 1 vertex in it...just to be sure 0 means 1).

        0+0 ergibt bei Cinema manchmal 1. ;-D

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

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

          On 31/07/2008 at 04:00, xxxxxxxx wrote:

          Hi 3DDesigner..

          In c4d 0+0 is 1(sometimes?) I am happy to see, that my plugin is in a good environment.. hehe.

          I wrapped this function for my python plugi, so I will fix this issue that get_segment_count() will return 1 on "0".

          Danke 🙂

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

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

            On 31/07/2008 at 05:57, xxxxxxxx wrote:

            If you have a segment count of zero the spline object has no segment tag yet. Check the VariableTag in the docu and also this thread (it applies to C++ and COFFEE)

            spline segments

            cheers,
            Matthias

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

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

              On 31/07/2008 at 07:39, xxxxxxxx wrote:

              Hi!

              I have to take my hat off to you.. Thank you for the info.

              bye..

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