Here's what I'm trying to do:
I have a folder in which all my 3D/motion work goes. The structure looks like this:
- Project A/
- Project B/
- Project C/
- Project Z/
In other words, I have a global repository for scripts and other assets (hence the "Assets" folder) that all projects share, and then I have subfolders for each individual project.
Now, when I write project-specific scripts, which live in the project subfolders (Project A, Project B, Project C, etc.) I'd like to include the global scripts I've written so each project can leverage them from a single source.
So, I start my scripts with something like:
This has been working, for the most part. However, I'm finding sometimes that, perhaps after re-opening a file I was working on in a previous session, despite the fact that NOTHING has changed or been moved, maxScript suddenly can't find the file. So, after a lot of trial and error, I might add another "..\", so I now have:
Suddenly, this will work! Wtf? So, I'll just assume that perhaps I did in fact move something (even though I know I didn't), and get back to work. Well, before long I find myself in the same boat. Again, Max can't open the includes. So I'll remove the newly added "..\" and ONCE AGAIN, max can find the files. In other words, I've set and changed the include path THREE times, and each time it worked temporarily, despite the files and folders themselves NEVER moving.
I've read the reference and searched all I can, but I can't find any real info on why this behavior is so erratic and unpredictable. Can someone please elucidate what exactly 3ds max wants from me? All I want is to keep my global scripts in one place, my project-specific scripts in another place, and include them using the proper paths. This has worked in every other programming language/compiler/dev environment/IDE I've ever used, but in max, suddenly it's bizzaro world.
Any help would be GREATLY appreciated. Thanks so much.