Home Technical Talk
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

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
    Offline / Send Message
    leslievdb polycounter lvl 17
    here you go
    1. viewportarr = #(#view_top,#view_bottom,#view_right,#view_left,#view_front,#view_back)
    2. savepath = "c:\\"
    3. filename = "whatever" -- could use maxfilename
    4.  
    5. if selection.count != 0 then
    6. (
    7. for i in viewportarr do
    8. (
    9. viewport.setType i
    10. max zoomext sel all
    11. outputbmp = BitMap renderwidth renderheight
    12. render to:outputbmp
    13. outputbmp.filename = savepath+ filename + "_" + (i as string) + ".tga"
    14. print outputbmp.filename
    15. save outputbmp
    16. )
    17. )
    18.  
  • OccultMonk
    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
    Offline / Send Message
    leslievdb polycounter lvl 17
    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.