Results 1 to 7 of 7
  1. #1
    Member SunBurn's Avatar
    Join Date
    Aug 2012
    Location
    Greece
    Posts
    231

    Blender Batch Render + GUI Linux bash script

    Blender Batch Render
    This is a simple script that I've developed the past year.
    I had to model and render 400 pack-shots, so I was modeling during the day and run the script overnight.

    I must make clear that I'm not much of a programmer and maybe you'll find some sloppy code here.
    I'm sure it can be optimized so if you find any mistakes or you have any suggestions please point them out.

    The script renders all "blend" files inside a folder, saves the renders in a specified location, displays notifications when necessary and finally creates a statistics text file in the same folder.

    Basically the script is running blender console commands and sets variables with the help of zenity dialogues.

    Before running the script you must prepare your files accordingly (eg. select your rendered engine, rendering quality, animation frames etc)

    1. Select the render executable in case you have more than one blender versions in your machine.

    Select_Executable.png

    2. Select the folder that needs to be rendered

    Blend_Files_Folder.png

    3. Select the folder where the renders should be saved

    Rendered_Folder.png
    Last edited by SunBurn; 30-Jan-16 at 15:10.



  2. #2
    Member SunBurn's Avatar
    Join Date
    Aug 2012
    Location
    Greece
    Posts
    231
    4. Select Image Format

    Image_Format.png

    5. Select what action to take after the renders have finished. If shutdown or suspend is selected then you're prompted for your password

    Finishing_Action.pngPassword.png



  3. #3
    Member SunBurn's Avatar
    Join Date
    Aug 2012
    Location
    Greece
    Posts
    231
    6. Select if you want to render a single frame or an animation

    7. A progress bar displays the total progress of rendering jobs

    Progress_bar.png

    8. Notifications are displayed for successful rendering (or not) and total rendering time.

    Notifiaction.png

    The script can also be modified to play a sounds on render finish or on render error, so you can leave the room.

    I'm planning also to implement an SMS functionality so you can leave the office/house and be notified in you phone if something went wrong or everything run well.

    On the other hand maybe I could use this script as an excuse to learn python and re-write it over again.
    I hope it will be helpful for you as it was for me.



  4. #4
    Member Spirou4D's Avatar
    Join Date
    Jul 2010
    Location
    Lille, France
    Posts
    1,267
    Hi SunBurn, your job is very usefull and clear to use! A great Thanks!
    Congratulations.
    Spirou4D
    Words are Images that loosed Light!
    Linux Mint 18.2 Saunya - Bi-Quad Intel 2.66Ghz x64Bytes - Nvidia OpenGL GT 630 4Go-vram



  5. #5
    Member
    Join Date
    Jan 2017
    Location
    Boston
    Posts
    13
    Hi @sunburn. Will this run on a Mac?



  6. #6
    Member
    Join Date
    Oct 2014
    Location
    Chernivtsi, Ukraine
    Posts
    223
    The usefull thing. Thanks



  7. #7
    Member SunBurn's Avatar
    Join Date
    Aug 2012
    Location
    Greece
    Posts
    231
    @mckeephoto
    I'm afraid it won't work without modification in Mac. The script is doing a heavy use of zenity, which I'm afraid is not the case in Mac.

    After doing a quick search I found there's a similar program to zenity called cocoaDialog.
    I think you could easily modify it to work for your system.
    Unfortunately I don't have access to a Mac machine at the moment so I can really test it.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •