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

    Primitive Point Count

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 292 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 22/07/2013 at 13:58, xxxxxxxx wrote:

      Just curious if theres a way to find the count on a primitive. Like when you clone onto a primitive object how does it know how to put x number of clones on the object. I assume if the cloner can read that I should be able to find that with python, right? Didn't see anything in the doc for primitives.
      Thanks in advance!

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

        On 22/07/2013 at 14:59, xxxxxxxx wrote:

        For a BaseObject you have basically two scenarios. The BaseObject could be representing a SplineObject, then you can get the spline with BaseObject.GetRealspline(). If the BaseObject is representing a PolygonObject you have two options - use the cache (fast) or collapse the object into its polygon form with CTSO or a similar method (slow). Then simply proceed with PointObject.GetPointCount(), as bothSplineObject and PolygonObject are derived fromPointObject.

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

          On 22/07/2013 at 15:43, xxxxxxxx wrote:

          Tried the spline object route with no luck. I had thought of trying a collapse method but thought there had to be a better way. I'll have to look into this cache method first maybe. Thanks for the help again LD!

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