Notifications
Clear all

[Closed] how to set frame rate of avi preview?

I’m tweaking my previs script http://www.scriptspot.com/3ds-max/scripts/kenzors-previsualization-tool

I’m using this method to generate an avi from the max help here

Frustratingly there’s no way to set the frame rate as far as I can tell. It seems to be locked to the to the settings in the max time configuration dialog.

I can’t use the createPreview method because my script jumps around the timeline so I need to build my avi from single frames.

Are there any other methods for building a preview avi that give me more control ?

Here’s the sample code from the 3dsmax help for reference


macroScript QuickPreview category: "HowTo"
(
 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()
 ramplayer preview_name ""
)

2 Replies

the mxs help says:

createPreview outputAVI:<bool> percentSize:<int> \
start:<int> end:<int> skip:<int> fps:<int> \
dspGeometry:<bool> dspShapes:<bool> dspLights:<bool> \
dspCameras:<bool> dspHelpers:<bool> dspParticles:<bool> dspBones:<bool> \
dspGrid:<bool> dspSafeFrame:<bool> dspFrameNums:<true> dspBkg:<bool> \
rndLevel:<#smoothhighlights | #smooth | #facethighlights | #facet | #flat | #hiddenline | #litwireframe | #wireframe | #box> 

start, end, skip, and fps are your numbers

1 Reply
(@kenzor)
Joined: 11 months ago

Posts: 0

As I said I cant use the createPreview method because my code jumps the timeline to make a cut, but I want a single avi as an output to preview the edit.