On 02/08/2016 at 02:38, xxxxxxxx wrote:
I'm trying to detect what type of object is being dragged into a LINK gizmo, inside a dialog defined by a res file.
I'm using the code:
def Message(self, msg, result) :
if msg.GetId() == c4d.MSG_DESCRIPTION_CHECKDRAGANDDROP:
try:
obj=self.GetDragObject(msg)
except:
return gui.GeDialog.Message(self, msg, result)
print obj
return gui.GeDialog.Message(self, msg, result)
But the print obj is never reached.
I'm not even sure if I'm using the GetDragObject() command correctly because it is not documented in the Python SDK.