StepRender

StepRender

Anonymous
Not applicable
322 Views
1 Reply
Message 1 of 2

StepRender

Anonymous
Not applicable
Hi

need a script to render frames step by step manually, i found this http://www.scriptspot.com/3ds-max/scripts/steprender but links doesnt work

why?

I have large amount (300-400k) particles (pflow setup) with highpoly "shape instance"s

my only option looks like render with mentalray (with "use placeholder objects" and "mesh per particle" options its render blazing fast and without memory consumption)

but mental ray didnt render animated particles properly via "active time segment" or "range" methods (when "mesh per particle" option checked in pflow)

it looks correct only when render frames manually... (eg. goto x frame, then hit render...)

therefore i need a script to render my timeline, frame by frame manually

------------------------------------------------------------------------------------------------

This is what I've got so far it will render the frames but just overwrites the same file ATM

renderSceneDialog.close() --the renderer needs to be closed
renderers.current = mental_ray_renderer() --sets the render to mental ray

for i = 0 to 10 do
(
sliderTime = (currentTime + i)
outputfilename = uniquename "test" --Change to suit your self
outPath = getFilenamePath "C:\\Documents and Settings\\Bite Me\\My Documents\\3dMax12\\renderoutput\\" --Change to suit your directory but keep the double backslashes
render outputFile:(outPath + outputfilename + ".png") camera:$Camera001 outputSize: vfb:off
)
0 Likes
323 Views
1 Reply
Reply (1)
Message 2 of 2

Steve_Curley
Mentor
Mentor
Duplicate threads are not permitted here, as per the forum rules. The other thread (in Max2012) has therefore been removed.

Uniquename works on object names, so if you have no objects named "Test" you will keep getting the same name - probably "Test001".

for i = 0 to 10 do
(
local st = stringstream (formattedPrint (currentTime.frame as integer + 1) format:"04i")
sliderTime = (currentTime + i)
outputFilename = "Test" + st as string
.
.
)

Note that with the above code you won't render frame 0 (or more specifically the frame which is current at the time you run the script) because you're incrementing the slidertime before performing the render. You would be better off picking up the currently configured range, looping explicitly from the first to last frame number and setting the slitertime to i (the loop variable) instead of incrementing anything. If you do that remember to remove the "+ 1"s in the above code.

for i = 0 to 10 do -- first to last
(
local st = stringstream (formattedPrint i format:"04i")
sliderTime = i
outputFilename = "Test" + st as string
.
.
)

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes