Here is a small snippet from a script that I use to render unit-testing scenes:
local extension = ".png"
local suffix = ""
if rendTimeType != 1 do (
-- Add suffix to separate frame numbers if not single-frame render
suffix = "_"
)
rendOutputFilename = outputDir + filename + suffix + extension
rendSaveFile = true
Note that rendTimeType, rendOutputFilename and rendSaveFile are 3ds Max variables. The rest of them are local variables that I've set. I'm sure you get the idea.
Here is a small snippet from a script that I use to render unit-testing scenes:
Note that
rendTimeType,rendOutputFilenameandrendSaveFileare 3ds Max variables. The rest of them are local variables that I've set. I'm sure you get the idea.Check the documentation for more information.