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

    Hidden UserData? [SOLVED]

    SDK Help
    0
    6
    654
    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
      Helper
      last edited by

      On 30/01/2017 at 21:12, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R17 
      Platform:      
      Language(s) :

      ---------
      Hi,guys.

      I have a question:

      Sometimes there are a lot of UserDatas in Manage User Data,so I want to hide some of them,is it possible to do it?

      Thanks so much for any help!

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

        On 31/01/2017 at 08:27, xxxxxxxx wrote:

        Hi Kjya2008, thanks for writing us.

        Currently in the provided SDK there are no means to hide (or unhide) UserData items in the "Manage UserData" window.

        Best, Riccardo

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

          On 01/02/2017 at 18:33, xxxxxxxx wrote:

          Hi,knickknack,

          Thanks!

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

            On 02/02/2017 at 08:33, xxxxxxxx wrote:

            You can hide/unhide UserData with DESC_HIDE.

            # Hides/Shows the UserData parameter with ID 1 of the currently selected object.
            import c4d
            for did, bc in op.GetUserDataContainer() :
                if did[1].id == 1:
                    bc[c4d.DESC_HIDE] = not bc[c4d.DESC_HIDE]
                    op.SetUserDataContainer(did, bc)
            c4d.EventAdd()
            

            Cheers,
            Niklas

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

              On 03/02/2017 at 02:02, xxxxxxxx wrote:

              Hi Niklas, thanks for providing this additional information.
              Unfortunately the snippet is not actually influencing visibility in the Manage UserData dialog but has only impact in the Attribute Manager UserData visibility.
              For further information on Visibility I invite Kyja2008 to have a look at the Visibility section in the Description Settings Manual where most of them are actually described

              Cheers, Riccardo.

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

                On 03/02/2017 at 20:02, xxxxxxxx wrote:

                Ah, I misunderstood the question.

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