Notifications
Clear all

[Closed] [Python] drag&drop mxs command?

Hey

For testing purpose i wrote a small Python script. If i drag&drop from the QWidget to the 3ds max viewport it executes a specific .ms file

This is the mimeData i set for the drag&drop event:
mimeData.setData(‘text/uri-list’, ‘file:///D:/temp/drop.ms’)

Would it also be possible to execute a maxscript command directly? Like print “test”.
Obviously this doesn´t work, but something similar to this:

mimeData.setData(‘text/uri-list’, ‘text: print “test”’)

Thanks for your help.