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

    Best way to get Enable status of an object?

    Cinema 4D SDK
    r20 python
    2
    3
    383
    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.
    • P
      pim
      last edited by

      To get the Enable status I can use

      1. obj[c4d.ID_BASEOBJECT_GENERATOR_FLAG] or
      2. obj.GetDeformMode()

      But what to do for a polygon object?

      See below example, for all various options.
      How to detect all those different option and the Enable state?

      2135b04d-b4bd-4c1d-94e9-6ca0874f118b-image.png

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi Pim, thanks for reaching out us.

        I'm sorry but I can't actually get your point: what do you mean by "the Enable status for a polygon object"?

        Polygon objects - those whose C4DAtom::GetType() == Opolygon is true - are "enabled" by definition and can not be disabled because their raw-data is supposed to be persistent and they don't behave as generators.

        Can you better explain your intent?

        Cheers, R

        1 Reply Last reply Reply Quote 0
        • P
          pim
          last edited by

          Sorry I was not clear enough.

          Your answer (polygon object is "enabled" by definition) triggered me and now I understand.

          Thanks and my best wishes for a great 2020 for you, your family and your Maxon family.

          -Pim

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