please help me understand

hi,

i am new max scripting, currently i am watching John Wainwright's Maxscript 101.

in episode 2.3 there is a script like this:

fn snapCams lable size:[320,240] frames: folder:"c:/testImg/" =
(
for c in cameras do
(
local fname = folder + lable + "_" + c.name
if frames == unsupplied then
render camera: c outputFile: (fname+".jpg") outputSize:size
else
render camera:c frameRange:frames outputFile:(fname+".avi") outputSize:size
)
)

it works, but then i wondered how do i render out a sequence

thanks for your time
/saij

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Saij's picture

thanks barigazy that's

thanks barigazy

that's awesome

barigazy's picture

Try this

fn renderSequence lable size: frames: folder: fileExt: =
(
	for c in cameras where not isKindOf c TargetObject do
	(
		fname = folder + lable + "_" + c.name
		render camera:c frameRange:frames outputFile:(fname+fileExt) outputSize:size renderElements:rendEle
	)
)
renderSequence "TestRender" size:[320,240] frames:(interval 0 10) folder:"c:/temp/" fileExt:".tif"

Also you can read this topic from mxs help http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help/index.html?url=fil...

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.