Hi,
I am working on drag and drop operation of UserArea.
What I would like to do is replicate the behavior of adding a node in the XPresso Editor: drag the text of the node name in the X-Pool and drop it into the node graph, and a new node will be created.
For UserArea, there is GetDragObject() to get the dragged information, and an example of its use is shown in this thread.
However, using this method to drag an xpresso node name from X-Pool to the UserArea returns the following results.
{'type': 400007002, 'object': None}
400007002 is c4d.DRAGTYPE_GVNODE_STORE, so we know that something related to the XPresso node is being dragged, but 'object' is None, so we cannot identify which node is being dragged.
Hopefully there is a way to get the specific value of the dragged node (e.g. c4d.ID_OPERATOR_BITMAP).
Any help would be greatly appreciated.