View Full Version : 3ds Max w/ Multiple Workstations
03-15-2011, 10:23 AM
So, I work on one workstation at the office, plus a home desktop and a home laptop. I'm trying to figure out a setup to make working on projects on multiple systems more efficient.
Currently, I've got Relative Paths turns on, and some common textures live in a Content folder inside of my project folder on each machine; those files are used regularly, and stored in the same location (relative to my project folder) on all machines. That helps a lot. Lately I've been transfering projects between machines using Dropbox (love it.), but I find it's not very convenient to work from that system.
I recently upgraded to Max2010, and it looks like changing project folders is very easy to get to now. I was thinking abuot coming up with a system using that as the switcher (lately I'm using the Asset Tracker, but "Retarget Common Root" seems to bug a lot), but when you set a new project folder it creates a ton of extra folders, including moving my Autoback, etc. Is this the best way to go about doing this, anyways? I suppose if I always set the same location to be my Project Folder on each machine, it won't create anything new, since there's already all those folders living there, right?
What does anybody recommend?
03-15-2011, 10:36 AM
I was in the same situation recently. I was working on 3 projects and needed to switch between them because of the relative textures.
The best thing to do is to use maxScript to set the project folder and sub folders. When you set the project folder through the interface it creates all the extra folders you don't need. But MaxScript won't do that. I'll post an example script here soon.
It's not hard to figure out the maxScript for changing project folders.
03-15-2011, 10:39 AM
Huh, alright. So Project Folders is the way to go, but using MS to automate-out the extraneous crap. That works.
It may not be hard for YOU to figure out the MaxScript, but I don't have the maxscript tools to create a sphere, let alone path setups, lol. Eager for your example!
03-15-2011, 12:31 PM
Here is the script that I run. I have one script saved for each project I'm working on and just use MaxScript | Run Script... command to execute the script. (Or you can drag the text to a toolbar to make a toolbar button.)
I actually use relative autoback folders so that each project has it's own autoback files.
I also had the need to use separate macroscripts for each project. I commented that stuff out at the bottom.
--SET THE MAX SCENE/PROJECT DIR
projectPath = "C:/myproject/"
--SET AUTOBACK DIRCTORY FOR THIS PROJECT
pathConfig.SetDir #autoback (projectPath + "/autoback")
--POINT ALL FOLDERS TO THE PROJECT FOLDER, THE DOT MEANS RELATIVE
pathConfig.SetDir #Image "."
pathConfig.SetDir #export "."
pathConfig.SetDir #import "."
pathConfig.SetDir #matlib "."
pathConfig.SetDir #Photometric "."
pathConfig.SetDir #proxies "."
pathConfig.SetDir #animations "."
pathConfig.SetDir #archives "."
pathConfig.SetDir #downloads "."
pathConfig.SetDir #expression "."
pathConfig.SetDir #maxstart "."
pathConfig.SetDir #preview "."
pathConfig.SetDir #renderassets "."
pathConfig.SetDir #renderPresets "."
pathConfig.SetDir #renderoutput "."
pathConfig.SetDir #Scene "."
pathConfig.SetDir #sound "."
pathConfig.SetDir #vpost "."
--OPTIONAL, SKIP THIS STEP IF YOU DON't WANT TO CHANGE THE SCRIPT PATHS
--SET THE SCRIPT DIRECTORIES
SetDir #userScripts (projectPath + "/Scripts/")
SetDir #userMacros (projectPath + "/MacroScripts/")
SetDir #userIcons (projectPath + "/MacroScripts/")
SetDir #userStartupScripts (projectPath + "/StartupScripts/")
03-15-2011, 01:54 PM
So this sets the project folder to C:/myproject (which I can point anyplace I want), sets the Autoback to wherever I want, and points the rest of the folders to "/myproject"? What is it doing different for Autoback than the rest of them? Or is this making C:/myproject/autoback, and then everything else just lives in a pile inside of C:/myproject, rather than individual folders?
You're right though, looks very easy aside from that. Then you'd just have a different path for what it determines the Project Folder to be on each machine? So you pick up a project, hit the "Reset Project Folder", and it changes all the paths to work for that machine versus the old one? Like, on Machine 1 the path is C:/myproject, and on Machine 2 it's F:/Billy's Folder/2011/myproject, and customize the macro on each machine to point to the correct folder?
03-15-2011, 03:59 PM
Or is this making C:/myproject/autoback, and then everything else just lives in a pile inside of C:/myproject, rather than individual folders?
That's what it's doing. I like to put the autoback files into a sub-directory and not just the root of the project. Actually the autoback line should be this, in order to make it project relative:
pathConfig.SetDir #autoback "./autoback"
But it'll work either way.
I'm not sure what you mean by "pick up a project, and hit the Reset Project Folder"... If by that you mean customize the script for each computer and run it, then yes, that's all you need to do.
I imagine you can save a few .ms files in Dropbox, and just run the appropriate setup tool:
03-15-2011, 04:23 PM
Yeah, that makes sense. It's always the same 3 computers, so I can just use the correct MS on each machine, that way when I pick up a project, they're all relinked to the correct folders.
Looks sweet, I'll test it out when I'm at the office. Thanks!
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.