PDA

View Full Version : How to get the file that's dragged on the current View window?


Vis3r
10-09-2009, 09:57 AM
Hello,

I am trying to do a mel script, that detects when the user drops a file (image) onto the current View window. What I need is like a dropCallback, so that when the user drags an image from windows and drops it into any of the 4 View windows in maya, I get the path and filename of that file. Possible? Anybody got an idea how to do it? I've searched alot, but didn't find much documentation about doing what i'm trying to.

Any help is greatly appreciated.

ewerybody
10-10-2009, 12:37 AM
no can do. its programmed. look into the script output there is nothing called exept for the calls to handle the dropped files already. Maybe on could do it with a plugin. I don't know. But there is definitely no scripting way to turn this :/
I could use it too!!

Vis3r
10-10-2009, 01:26 AM
Yeah I've looked into what's printed in the script output... I've also tried making a new window with a perspective view in it, and trying to somehow get dropCallback to work on that newly created window, but no luck there either. The dropCallback doesn't seem to be triggered by drag-dropping a file from windows, it's probably just for drag-dropping that happens in Maya. If anybody else got an idea.. I'm all ears :shrug:

CGTalk Moderation
10-10-2009, 01:26 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.