How to get the path of a mel file sourced by drag and drop?

How to get the path of a mel file sourced by drag and drop?

YASUSHI_EMOTO
Enthusiast Enthusiast
503 Views
0 Replies
Message 1 of 1

How to get the path of a mel file sourced by drag and drop?

YASUSHI_EMOTO
Enthusiast
Enthusiast

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?

0 Likes
504 Views
0 Replies
Replies (0)