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

    Display data in the attribute manager that is not stored in the object base container

    Cinema 4D SDK
    3
    4
    855
    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.
    • D
      daniell
      last edited by m_adam

      I have a generator object that should display some derived data in the Attribute manager. The user should not be able to edit it. So far, we stored the text to display in the base container of the object and made this variable visible in the Attribute manager.
      This has the disadvantage that every time the value is evaluated it increases the dirty counter of the object. Thus, we would like to display it, without storing the value in the object's base container. Is this possible?
      If not, is there any other preferred way to display derived data without increasing the dirty counter?

      1 Reply Last reply Reply Quote 0
      • C4DSC
        C4DS
        last edited by C4DS

        I am not sure about the dirty state, and I am not familiar with generator object, but I have used NodeData::GetDDescription and NodeData::GetDParameter in the past to show data in the Attribute Manager.
        Additionally, you can use NodeData::GetDEnabling to disable (grey-out) the necessary gadget making it readonly.

        1 Reply Last reply Reply Quote 1
        • D
          daniell
          last edited by

          Thanks, Using GetDParameter to return the value seem to work fine.

          1 Reply Last reply Reply Quote 0
          • M
            m_adam
            last edited by

            Hi @daniell welcome on the plugincafe forum,

            Don't worry since it's your first post, I've set up it correctly but please for the next one, make sure to read and apply the next rules:

            • Q&A New Functionality.
            • How to Post Questions especially tagging.

            Finally, regarding your issue, you may find relevant the NodeData::GetDParameter() Manual and NodeData::SetDParameter() Manual.

            Cheers,
            Maxime.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

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