Home Technical Talk

Is there a Batch Render Viewports script for 3dsmax?

interpolator
Offline / Send Message
OccultMonk interpolator
Is there a script that renders the front/back/left/right/top/down viewport of selected objects. So I would select a number of objects, run the script (and the script switches the viewports, frames the selected objects in the viewport and renders using the current settings?)

Replies

  • leslievdb
    Options
    Offline / Send Message
    leslievdb polycounter lvl 15
    here you go
    viewportarr = #(#view_top,#view_bottom,#view_right,#view_left,#view_front,#view_back)
    savepath = "c:\\"
    filename = "whatever" -- could use maxfilename
    
    if selection.count != 0 then
    (
        for i in viewportarr do
        (
            viewport.setType i
            max zoomext sel all
            outputbmp = BitMap  renderwidth renderheight
            render to:outputbmp
            outputbmp.filename = savepath+ filename + "_" + (i as string) + ".tga"
            print outputbmp.filename
            save outputbmp
        )
    )
    
    
  • OccultMonk
    Options
    Offline / Send Message
    OccultMonk interpolator
    I knew it was easy, but thought there would be a fancy version around (With interface options). This is great though, thanks!
  • leslievdb
    Options
    Offline / Send Message
    leslievdb polycounter lvl 15
    np, it could be that there's one out there that does this but it seems a bit specific
Sign In or Register to comment.