Notifications
Clear all

[Closed] Files being saved to download folder

Hello,

One of our artists is having an issue where he says every so often his scripts get saved to the C:\Users\***\Documents\3dsMax\downloads\ folder ,instead of the folder he opened them up in.  I have not seen this happen, but since all of our files are saved over a network, I have seen 3dsmax do other crazy things before.

Has anyone seen this, or know of any place to look to see what is causing this.   I've checked his callbacks and he has all the same as me, so that is not the issue.   In the meantime I've made his a callback script that prompts a warning if the file is being saved to the downloads folder, but it would be nice to know what the real issue is.

Thanks for reading,
Dan
6 Replies

Is it possibly a UNC vs mapped drive letter difference? How is he opening the file? I may have seen that behavior when dragging & dropping the file onto the viewport or something like that. Alternatively, Windows file associations based on .ms or .mcr?

Its probably dragging and dropping as SnipeyX said. We have our own saving routine so we have to get around this to get people back into pipeline. You can use:

pathConfig.isPathRootedAtBackslash

as a start to see if it is a local drive, although it would depend if you are using mapped drives rather than UNC.

You know, that dragging and dropping totally makes sense. I’m going to touch base with him when he gets in.

Pete, we are using a Mapped Drive that points to a UNC, so I cant use that particular one, but are you doing your check on load or only on save?  Maybe I could do a check on load, to see if its in the downloads folder or something.

Thanks guys.

hi Dan,

Yeah there’s a few ways you could detect it, depending on your setup. You could see if something like

if matchpattern maxfilepath pattern:((systemTools.getEnvVariable "USERPROFILE")+"*") then ...

will usually yield true for a local file. Our server has a very distinct name that will not change, so I think I just search for the start of the string to match that.

Im not sure you can stop the file drop behaviour, so I usually allow this to happen, and warn (well force ) the user on save back into the pipeline

Hehe, yep you cant stop the chaos you can only hope to contain it.

Your matchpattern idea sounds like a great solution.

Thanks.

Yep, artist confirms, it was the drag and drop. Good call guys.

Thanks.