Disable drag and drop



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 29/05/2007 at 01:48, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9.507 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi @ll
    i wonder if it is possible to disable the drag and drop function in the structure tree. I have to prevent that anybody who uses my plugin is able to move objects through the tree, cause the plugin may crash then.
    e.g.: A part of my plugin forces a strict hierarchy in the structure tree. So you have to insert a nullobject before you insert primitives like cubes or cylinders. But the users is still able to move these primitives in the superior layer.
     
    Can someone help me?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 12/06/2007 at 23:20, xxxxxxxx wrote:

    Noone any Ideas?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/06/2007 at 05:34, xxxxxxxx wrote:

    Hi,

    your plugin must not crash. You can check, if objects are in the right hierarchial position; if not, put a message or do nothing. For user convenience you may also create the null object for the user. Provide some buttons, that makes the complete object setup that your plugin needs.

    As an alternative, you may work with link boxes instead of relying to a specific object structure.


Log in to reply