I have a bunch of 3d models and I’ve decided to organize them in folders by category, the problem (as always) are the maps, at first I though a unified ‘maps’ folder would be better but I’ve ended up deciding to just keep the maps on the same folder as the models.
The problem now is that I need them to be ready for distributed rendering, for scenes I’ve made a script that converts the paths of the resources to absolute network ones, it worked well with some exceptions that I had to fix manually, I don’t know if there’s an easier way to do network rendering because so far it’s been a royal pain in the butt… Anyway, I’ve made a little script that is like:
unc = "\\\ALAN-PC" for m in (getClassInstances bitmapTexture) do ( x = sysInfo.currentdir + "\\" + (filenameFromPath m.fileName) m.fileName = unc + (substring x 3 -1) )
It successfully ‘strips’ any paths for the maps and link them according to its absolute location on the network. It worked like a charm for some objects I’ve tested.
Now, the problem is, I have a bucketful of objects and I’d like to run this little script on every of them, according to my estimations, it would take a week to do it manually (open all files one-by-one and run the script).
So, is there a way to automatically do that? Maybe a batch script or something…
Thank you in advance.
EDIT: Oh, I forgot to mention that all this problems with network rendering is using Vray DR, it seems backburner is better but there’s no way to get it working (on previous max versions it used to crash during the rendering (i’ve even changed my router to make sure it wasn’t it)) now in this 2013 version it simply refuses to launch on the slaves.