Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Base Object - Attributes : Enabled parameter

    Cinema 4D SDK
    4
    5
    858
    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.
    • V
      Viktor Velicko
      last edited by

      Hi,
      Stupid question but I am not able to find a way to read the Enabled parameter from Base Objects Attributes panel.

      other parameters as ID_BASEOBJECT_VISIBILITY_EDITOR, D_BASEOBJECT_VISIBILITY_RENDER
      works fine as listed in obase.h

      Enabled parameter is below Visible in Editor & Render in the panel.
      But it is not listed in obase.h.

      VUhEOMkLOURqYr3e.png

      1 Reply Last reply Reply Quote 0
      • CairynC
        Cairyn
        last edited by

        I don't know where it's defined, but the console tells me it's c4d.ID_BASEOBJECT_GENERATOR_FLAG.

        (You are aware that you can drag the label "Enabled" et al. to the Python console to get the access constant? And press Return to get the current value, although that is not shown as constant, at least up to R23...)

        V 1 Reply Last reply Reply Quote 1
        • V
          Viktor Velicko @Cairyn
          last edited by Viktor Velicko

          @cairyn
          Thanks!
          It works.
          So useful console trick!

          1 Reply Last reply Reply Quote 0
          • ferdinandF
            ferdinand
            last edited by

            Hello Viktor Velicko,

            welcome to the forum and thank you for reaching out to us. And thank you @Cairyn for providing an answer. There is not much for us to add here, apart from pointing to the console functionality documentation and the Obase documentation.

            Cheers,
            Ferdinand

            MAXON SDK Specialist
            developers.maxon.net

            1 Reply Last reply Reply Quote 0
            • fwilleke80F
              fwilleke80
              last edited by fwilleke80

              Since this question is tagged as C++, I'll add the docs link to the dedicated functions that return and set this attribute:
              BaseObject::GetDeformMode() and BaseObject::SetDeformMode()

              www.frankwilleke.de
              Only asking personal code questions here.

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