Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i had found something online for a custom drag and drop action (in performfiledropaction.mel) that gave the option import, open, or reference. This worked in 2017, however when i try it in 2020 it does not work on open. If i choose open it saves whatever scene I have open back to whatever file i tried to drag and drop. Something must have changed with how maya opens files. Cannot figure out how to fix this, this is the open code
else if ($response == $open)
{
global string $gv_operationMode;
string $save_gv_operationMode = $gv_operationMode;
$gv_operationMode = "Open";
int $result = performFileAction ($theFile, 1, "");
$gv_operationMode = $save_gv_operationMode;
return ($result);
}
Solved! Go to Solution.