/*

Allan McKay
Nov 13 2009
http://www.allanmckay.com
amckay@allanmckay.com

RenDir Ver 1.00
--------------------
Description: Quick script - load any scene file in a directory, run the script, it will
load each max file in that directory and send it to render with whatever settings
each scene file has set up.
Extremely quick way to copy a bunch of files you want to render locally and have
them render, one at a time.

*/


-- Globals
_MPath = getfiles (maxfilepath + "*.max") -- Stores maxfiles into array
	for i = 1 to _MPath.count do
	(
		loadmaxfile _MPATH[i] -- Loading max file from Array
		render framerange:#active outputfile:rendoutputfilename
		print ("Rendered" + " " + _MPath[i]) as string

	)

/*
amckay@allanmckay.com
http://www.allanmckay.com

*/
	