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

    TreeView: How to insert dragobject as new item

    Cinema 4D SDK
    r20 python
    1
    2
    447
    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
      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
        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