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

    Is that possible to hide column (header) in TreeView?

    Cinema 4D SDK
    windows 2023 2024 python
    3
    5
    1.1k
    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.
    • gheyretG
      gheyret
      last edited by

      Hi Everyone!
      I would like to dynamically show or hide headers in my tree view based on user settings, similar to the Layer Manager in C4D.
      layer_header.gif
      I am aware that I can specify the number and names of headers when setting the layout, but I need to restart my plugin to apply these changes.
      My goal is to be able to dynamically show or hide headers without the need for a plugin restart.
      Is this achievable?

      www.boghma.com

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

        Hey @gheyret,

        Thank you for reaching out to us. It depends a bit on how you mean your question. You do not have to "restart" your plugin to update the layout of a tree view (not quite sure what you mean with restart). You can simply call TreeViewCustomGui.SetLayout again with your new layout and then .Refresh. But there are no methods like Show/HideColumn, you have to always reinit the whole layout of the tree view.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        gheyretG 1 Reply Last reply Reply Quote 0
        • gheyretG
          gheyret @ferdinand
          last edited by

          It seems I was overcomplicating things. I will give it a try tonight.
          Thank you very much for your prompt reply.
          Cheers!

          www.boghma.com

          1 Reply Last reply Reply Quote 0
          • czt_306C
            czt_306
            last edited by

            2024-03-20.gif

            gheyretG 1 Reply Last reply Reply Quote 2
            • gheyretG
              gheyret @czt_306
              last edited by

              @czt_306 It looks realy cool!

              www.boghma.com

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