Skip to content

Instantly share code, notes, and snippets.

@benbrandt
Last active August 29, 2015 14:16
Show Gist options
  • Save benbrandt/6db628ac555d6a11f10d to your computer and use it in GitHub Desktop.
Save benbrandt/6db628ac555d6a11f10d to your computer and use it in GitHub Desktop.
Automatic Render Output MAXScript
renderSceneDialog.close()
-- 1. Specify a Directory
MyDir = "D:/MyRenders"
-- 2. Make a render directory for this scene file
PassName = substring maxfilename 1 (maxfilename.count - 4)
RenDir = MyDir + "/" + PassName --"D:/MyRenders/MyFirstRender"
MakeDir RenDir -- Makes the directory
RenFile = RenDir + "/" + PassName + ".jpg"
rendSaveFile = true
rendoutputfilename = RenFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment