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

    Problem with TreeViewFunctions.HeaderClick in c4d r20, 21 22

    Cinema 4D SDK
    python r20 r21 s22
    3
    3
    469
    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.
    • oli_dO
      oli_d
      last edited by r_gigante

      Hi everyone,
      The TreeViewFunctions.HeaderClick method works very well with r19, but since r20 not at all. I get an error message "SystemError: NULL object passed to Py_BuildValue".
      I tested with Niklas's code (thanks to him ! ) :
      https://gist.github.com/NiklasRosenstein/632e39a9b4dda391fe54

      (Tested with r19-> ok, r20, r21, s22-> not ok )

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi @oli_d , thankk for reaching out us

        We have been able to reproduce the issue and we'll look into it to get it fixed in the future.

        Cheers, R

        1 Reply Last reply Reply Quote 0
        • ManuelM
          Manuel
          last edited by

          hi,

          Since R20, arguments have been added, and the problem is coming from the last one 🙂

            def HeaderClick(self, root, userdata, lColID, lChannel, bDblClk, mouseX, mouseY, ua):
          

          I've opened a bug report

          Cheers,
          Manuel

          MAXON SDK Specialist

          MAXON Registered Developer

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