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

    Check if Object is deformer

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 583 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 29/09/2017 at 06:30, xxxxxxxx wrote:

      Hello, is it possible to check if an Object is a Deformer?
      I can check if an object is a Generator like this:

      obj_info = obj.GetInfo()
      is_generator = obj_info & c4d.OBJECT_GENERATOR

      But trying this with c4d.OBJECT_DEFORMER
      seems not to work.

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

        On 29/09/2017 at 07:16, xxxxxxxx wrote:

        Look at https://developers.maxon.net/docs/py/2023_2/modules/c4d.plugins/index.html?highlight=object_modifier

        c4d.OBJECT_MODIFIER and c4d.OBJECT_HIERARCHYMODIFIER  is what you need

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

          On 02/10/2017 at 01:22, xxxxxxxx wrote:

          Hi holgar, thanks for writing us.

          With reference to your request, beside what gr4ph0s already stated, I warmly invite you to have a look to the flags used to describe the type and behavior an BaseObject is supposed to deliver.

          Best, Riccardo.

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

            On 02/10/2017 at 01:43, xxxxxxxx wrote:

            Thank you a lot. That helped me.

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