Notifications
Clear all

[Closed] Animation Preview stops at 257 fames

So was looking at the code from Maxscript help…
How To > Create a Quick Preview


preview_name = (getDir #preview)+"/PlayBlast.avi"
view_size = getViewSize()
anim_bmp = bitmap view_size.x view_size.y filename:preview_name
for t = animationrange.start to animationrange.end do(
	sliderTime = t
	dib = gw.getViewportDib()
	copy dib anim_bmp
	save anim_bmp
)
close anim_bmp
gc()

ShellLaunch preview_name "/play /loop"

This works really well but always creates a avi at 257 fames max. Any thoughts why?

Thanks
Si

2 Replies

check the resulting filesize

If you create an uncompressed AVI, it quickly can go above 2GB and thats the limit the AVI writer in 3ds Max stops creating valid AVI’s. It will continue to write frames above that filesize, but they will only be readable up to the frame right below the 2GB limit …

I see…
I thought I was going crazy. Ok thanks for your input.

Si