Notifications
Clear all

[Closed] Make preview script – speed issues

Hi,

I am trying to build a custom “Make Preview” tool. I found a script for it in the help, but i found out that the preview creation is slower than the built-in make preview. Do you know if there is a way to speed it up ?

Tested in a scene with just a sphere, frame range 0-100

With script: 8.589 seconds
With createpreview(): 1.521 seconds

preview_name = (getDir #preview)+"/quickpreview.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()

Thanks,
Nahuel

3 Replies

I am not sure, but maybe with the script max use a other viewport refinement. You know in the new max version we have a progressive viewport and I thing for that you can change the refinement steps. I don’t know what exactly name this have.

just create it with the createpreview() and then rename the file after creation ?

Thank you for your reply. I solved my problem by accesing the createpreview via uiaccessor.

Cheers,
Nahuel