I'm currently working on a treeview where I want to act on c4d files that are dragged into the treeview.
Everything works expected using
AcceptDragObject but I'm not quite sure I can stop C4D from opening the c4d file itself. I can of course close the document right away, but with bigger files the loading process can take a while and I just want to have the path to that file essentially.
def AcceptDragObject(self, root, userdata, obj, dragtype, dragobject): if dragtype == c4d.DRAGTYPE_FILENAME_SCENE: #get me the path without ever opening the file...
Hope it makes sense, and there might be a way to prevent this from happening.