Message 1 of 1
How to get the path of a mel file sourced by drag and drop?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I want to copy a file by dragging and dropping the MEL file into Maya.
For example, I want to move test.mel to another location by dragging and dropping a file called test.mel into Maya.
Like the code below ...
string $ destWindows = "C: /Users/user/Documents/Maya/test.txt";
string $ srcWindows = "test.txt";
sysFile -copy $ destWindows $ srcWindows;
However, Maya does not get the path by drag and drop.
I want to copy a file using the relative path from the dragged and dropped MEL file.
Is it possible to do that?
How can I do it?