06-01-2011, 02:07 PM
So we've been having some serious network farts here that are stopping our sims in their tracks. After the sims stop, they cant be resumed because the last frame written out is corrupt and the fdc goes missing. My solution has been to write my stuff out locally, then copy it over to the network storage.
Our render blades only have 40gb free on each though, so I have to constantly be moving stuff over with post step. I'd like this to be completely automated... as in the artist just copies this to their maxscript, hits the check box, and renders.
The problem with this code is it chops off a piece of the output path every time it's run. Also, the fdc file is still written to the original networked location, not to c:/fumecache. Any ideas?
Also, is there a function to add text to the selected fumefx windows maxscript section?
I'd like to have a toolbar button that would add this to the fumefx container each time.
Our render blades only have 40gb free on each though, so I have to constantly be moving stuff over with post step. I'd like this to be completely automated... as in the artist just copies this to their maxscript, hits the check box, and renders.
The problem with this code is it chops off a piece of the output path every time it's run. Also, the fdc file is still written to the original networked location, not to c:/fumecache. Any ideas?
Code:
global FumeFXNode = ffx
global OrigPath = FumeFXNode.GetPath "default"
global LocalPath = "C:\fumecache"
global OutputName = filterString OrigPath "\\"
global BaseName = (OutputName[(OutputName.count)])
global BasePath = ""
for a = 1 to (OutputName.count-1) do
(
BasePath = BasePath + OutputName[a] + "\\"
)
fn PreSim = (
FumeFXNode.SetPath (LocalPath + "\\" + BaseName) "default"
)
fn PostSim = (
DosCommand ("copy /Y " + (LocalPath + "\\" + BaseName) + "* " + (BasePath))
FumeFXNode.SetPath (OrigPath) "default"
)
fn PostStep = (
DosCommand ("move /Y " + (LocalPath + "\\" + BaseName) + "*.fxd " + (BasePath))
)Also, is there a function to add text to the selected fumefx windows maxscript section?
I'd like to have a toolbar button that would add this to the fumefx container each time.

