Simple Grab Viewport script


#1

I know there are many similar tools around, but it there any which do simple active viewport screenshot (actial size, actual AO and Shadows settings) and save it automatically (maxfilepath + “\images\” + getFileNameFile maxfilename + _index + “.jpg”)


#2

Read about viewport.getViewportDib in mxs reference. Bitmap Value section of the reference contains a few examples how to load and save max bitmaps.


#3

Thanks
however, I’m total zero in maxscript.
happy to pay for the development


#4
(
	if makeDir (maxfilepath + "images") then
	(
		bmpFilePath = (maxfilepath + "images\\" + getFileNameFile maxfilename + "_" +(timestamp() as string) + ".jpg")
		vptGrabBMP = gw.getViewportDib()
		vptGrabBMP.filename = bmpFilePath
		save vptGrabBMP
		close vptGrabBMP
	)
)