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

    Polygon-Object or Scene Object [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 403 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 17/06/2015 at 05:34, xxxxxxxx wrote:

      Hello,
      is there a Way to find out if an Object produces Polygons or not?

      I want to find anything like Primitives and Polygonal Objects and Generators but not Lights and other Sceneobjects.

      This should also work with Plugins that generate Polygons.

      Any Idea?

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

        On 17/06/2015 at 06:48, xxxxxxxx wrote:

        Hello,

        objects don't produce polygons. Generators may produce polygon objects. You can check if a given object is a generator by checking the OBJECT_GENERATOR flag (as discussed recently "Detecting whether a BaseObject is a Generator"). If the object is a generator you can check its cache for polygon objects with GetCache() and GetDeformCache(). This will also work with plugin generators.

        Best wishes,
        Sebastian

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

          On 17/06/2015 at 08:10, xxxxxxxx wrote:

          Thank you. That helped me.

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