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
    • Recent
    • Tags
    • Users
    • Login
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    TreeView: How to insert dragobject as new item

    Scheduled Pinned Locked Moved Cinema 4D SDK
    r20python
    2 Posts 1 Posters 457 Views
    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.
    • mikeudinM Offline
      mikeudin
      last edited by

      Hello guys!
      Is possible to insert new TreeView items using drag and drop as new root childs? When TreeView have no any element to insert BEFORE or AFTER.
      I'm using AcceptDragObject but can't understand how to reproduce issue when obj is None like in this note.

      If obj is None then dragobject should be inserted as a child of the root.

      Checkout my python tutorials, plugins, scripts, xpresso presets and more
      https://mikeudin.net

      1 Reply Last reply Reply Quote 0
      • mikeudinM Offline
        mikeudin
        last edited by

        Solved. There is TREEVIEW_OUTSIDE_DROP option.

        Checkout my python tutorials, plugins, scripts, xpresso presets and more
        https://mikeudin.net

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