How To Batch Render Multiple Blender Files (I'm Not Dead)

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • Commands Explained
    cd : This command is used to change the directory. We type it to change the default folder CMD open's in to the blender folder.
    blender : This is a command to use the blender.exe file
    -b : This flag tells blender to not open the interface but run in the background.
    -f : Determines a frame or frame range to render (eg. 1 or 1-30)
    -a : Tells blender to render out all the frames determined in the file
    cmd /k : Tells CMD to not close after finishing the script
    The quotation marks tell the computer that the space doesn't mean a command has ended but has a space in the name.
    To sum things up. This is what the commands are saying:
    GO TO THIS FOLDER
    cd "C:\Program Files\Blender Foundation\Blender X.X"
    USE BLENDER.EXE IN THE BACKGROUND TO OPEN THIS FILE AND RENDER ALL THE FRAMES
    blender -b "C:\Users\TheUser\The Folder\The Blender File.blend" -a
    _TIME_
    0:00 Where I've been
    0:41 What We're doing
    1:30 Setting up the Scene Files
    2:41 Batch Render Tutorial
    7:14 Outro - I'm not dead
  • Фільми й анімація

КОМЕНТАРІ • 145

  • @lunardbay
    @lunardbay 2 роки тому +20

    Guys I figured out what the problem is when you get the "'blender' is not recognized" issue. Make sure the .exe file is named Blender.exe and not anything else. I had the same issue because my .exe was set to Blender 3.exe so I renamed it and everything is fixed now.

    • @terr20114
      @terr20114  2 роки тому +1

      That's great! Makes sense too. If there's no blender.exe in the location there's nothing to run the commands

    • @PlanetXtreme
      @PlanetXtreme 2 роки тому +13

      ALSO make sure your batch file is on your C drive; since all my blender files were on my G drive, I put my batch file also on my G drive. I kept getting errors until I moved it to the desktop; the errors were telling me "blender is not recognized," like your comment is saying.

    • @hugoantunesartwithblender
      @hugoantunesartwithblender 2 роки тому

      I copy the path of blender.exe

    • @blackout5145
      @blackout5145 2 роки тому +1

      @@PlanetXtreme thanks man you are a lifesaver.

    • @PlanetXtreme
      @PlanetXtreme 2 роки тому +1

      @@blackout5145 yeah us _guys_ with extra *hard* _drives_ gotta stick together

  • @momentum_animation_studio
    @momentum_animation_studio 9 місяців тому

    So helpful! Thank you Terrence, I've got a lot of scenes to get rendered out and micro managing all the renders wasn't something I was looking forward to. It is working like a charm!

  • @MrSharkYT
    @MrSharkYT 2 роки тому +1

    Oh lovely, lovely, lovely!
    Thank you so much!
    Note for others as well... people mentioned the blender launch file has to be named "blender.exe" (which mine was) but still didn't work which, afterwards I realized is cause I had blender installed on disk B rather than C, I had to move the .bat file to disk B so it can detect blender

  • @k0walsk
    @k0walsk Рік тому

    Just the ultimate soundtrack to learning something, thanks Terrence!

  • @vishalsaini-un5lq
    @vishalsaini-un5lq Рік тому

    Thanks man, I was searching batch rendering with multiple blender file last couple of days.

  • @ScraggyDogg
    @ScraggyDogg Рік тому +1

    Late to your channel but just what I needed, thankyou keep up good work. I'm new to blender but not to 3d and although there are a lot of good tutorials on UA-cam most are beginner friendly. I'd like to see more intermediate ones personally.
    The bought ones are very similar in my experience so far but am enjoying blender.

  • @Aloneboy_T3
    @Aloneboy_T3 3 роки тому +3

    Keep creating bro🔥

    • @terr20114
      @terr20114  3 роки тому

      I will bro! Staying focused

  • @PlanetXtreme
    @PlanetXtreme 2 роки тому +5

    Make sure your batch file is on your C drive; since all my blender files were on my G drive, I put my batch file also on my G drive! I kept getting errors until I moved it to the desktop, telling me "blender is not recognized."

    • @PlanetXtreme
      @PlanetXtreme 7 місяців тому

      More importantly, Put your batch file on the same drive where blender is installed on!

  • @wanyee6444
    @wanyee6444 9 місяців тому

    Simple and easy, most importantly it works well! Thank you so much your video helps A LOT!

  • @JaniEU
    @JaniEU 2 місяці тому +1

    my friend linked me this, im new to blender and this is perfect for my use case. thanks bro

    • @terr20114
      @terr20114  2 місяці тому

      Welcome to the blender community! 😁 I’m happy my video was able to help.

  • @stathiskefalas
    @stathiskefalas 3 роки тому +10

    Thank you, exactly what I was looking for!

  • @TomSargent24
    @TomSargent24 2 роки тому

    Wish i could double upvote - perfect video explaining this

  • @KnowArt
    @KnowArt 2 місяці тому

    awesome. Exactly what I was looking for

    • @terr20114
      @terr20114  2 місяці тому

      Glad I could help.

  • @addixie
    @addixie 3 місяці тому

    this is a work of wonder, God Bless You my guy!

  • @patricklevar
    @patricklevar 3 роки тому +7

    This is really cool I didn't know you could do this 🤯🤔

    • @terr20114
      @terr20114  3 роки тому +2

      No kidding. I was a little mind blown when I learned it myself. Saved me some boring nights

  • @andyw6739
    @andyw6739 10 місяців тому +1

    wow this music is absolutely killing me.. can't concentrate on what you're saying but I try my very best! :D

  • @sajjadabouei6721
    @sajjadabouei6721 Рік тому +2

    thank you very much,
    really helpful man
    the only thing that I can say is that it would be much more easy to follow if there was not background music or decrease the background music volume level.
    💮

  • @alixsaffari
    @alixsaffari 3 роки тому +1

    Amazing content! subscribed without hesitation.

    • @terr20114
      @terr20114  3 роки тому

      Appreciate the comment and the Sub! Thank you!

  • @bro4ever771
    @bro4ever771 Рік тому +1

    Thank you so much!!! This is what I needed!

  • @xeppepochannel
    @xeppepochannel 2 роки тому +1

    This is magic, isn't it? Thank you very much, sir.

    • @terr20114
      @terr20114  2 роки тому

      An ancient family secret :)

  • @PedroScherz
    @PedroScherz 10 місяців тому

    Thank you for this awesome piece of knowledge

  • @surajpednekar
    @surajpednekar 3 місяці тому +1

    If you want to shutdown your pc after completing render jist add the following command
    shutdown/s /t 0 before cmd/k

  • @VoxKal3D
    @VoxKal3D Рік тому +2

    Thanks, It worked however I had to add the drive name before the cd line, Like this
    C:
    cd "C:\Program Files\Blender Foundation\Blender 3.5"
    after this it worked amazing

  • @LKM__
    @LKM__ Рік тому

    That's what I needed ! Thank you

  • @user-md1yj9wo1g
    @user-md1yj9wo1g Рік тому

    great video! does it uses the gpu or only cpu with that method? because the gpu is much stronger in my case, thx.

  • @lasthunter572
    @lasthunter572 Рік тому

    Thank you very much I didn’t know about this ❤❤❤❤

  • @herseyiizleyenadam2553
    @herseyiizleyenadam2553 8 місяців тому

    Great way to save time to render while sleeping. But i have small questions. Is that work on image sequences too? Also I have another 1 tricky question, I'm rendering product videos, obejcts or lights not moving, I do some camera pans around the product. I do frames 1-150 for first scene and frames 151-300 for next scene with different camera angle. Is ıt possible to render both camera view at the same time? Because lights, shadows, reflections are not changing..

  • @equalium9980
    @equalium9980 2 роки тому

    Is there a way to set a time limit on the renders? like, let's say that all together all of my projects have a render time of about 12 hours, but I only want 8 hours of the render done on a certain day, and the other 4 hours a different day, how would I go about doing that?

  • @rj_enoz
    @rj_enoz 7 місяців тому

    That is amazing 🌟

  • @tuantran-sb6ic
    @tuantran-sb6ic Місяць тому

    one question, can i even set the active cam from the cmd? if yes that would be nut

  • @juandefdezduran
    @juandefdezduran 2 роки тому

    Thank you so much, it really helped me.

  • @antoniopepe
    @antoniopepe 3 роки тому

    thanks man. very appreciated trick

  • @cesaramaral7007
    @cesaramaral7007 2 роки тому

    Thank you, it worked perfectly. I couldn't use -f tho, it doesn't work when I try something like "-f 1-24", but -a works fine. Any ideas?

  • @zakymhansem995
    @zakymhansem995 2 роки тому

    I can't seem to be able to get the second file to render. The Code stops after saving the files.

  • @SumberInspirasi99
    @SumberInspirasi99 Рік тому

    do you know,..why my render result is in "TMP folder" not in the same folder that I saved my file?
    thanks in advance

  • @TuckerGibsonLegendary
    @TuckerGibsonLegendary 2 роки тому

    Is it possible to have it automatically render all blend files in a specified folder rather than listing each file manually?

  • @juncando
    @juncando Рік тому

    Incredible. How would you export objects from a bat file. Is there any documentation available for these commands ?

  • @royphotography390
    @royphotography390 Місяць тому

    You are life saver❤

  • @JinnyjinnyJin
    @JinnyjinnyJin 2 роки тому +2

    Can you also batch render multiple scenes in a blender file?

  • @harrybellingham98
    @harrybellingham98 3 роки тому +1

    Excellent man!

    • @terr20114
      @terr20114  3 роки тому

      Thank you! Cheers! 🍻

  • @AukePoelman1
    @AukePoelman1 Рік тому

    Hey man this was exactly what I was looking for. I noticed that when rendering this way it wont actually use my gpu. Eventhough If I start the same render in blender it does use the gpu to render. Any ideas?

  • @CapVFX
    @CapVFX Рік тому

    Great tutorial! Thx

  • @darius55508
    @darius55508 Рік тому

    thx - This is what I needed

  • @sergeyandreev2599
    @sergeyandreev2599 2 роки тому

    10/10 you're the best thank you

  • @carlinhosjm88
    @carlinhosjm88 2 роки тому +1

    is it possible to render the files with out having to input all the files address ?? just say "render every blender file inside this folder"

  • @fluffybunnyexp4034
    @fluffybunnyexp4034 Рік тому

    How does one batch render multiple scenes in one blender file?

  • @cickmiss5077
    @cickmiss5077 Рік тому

    Does the command line read the plug-in?

  • @sergeyandreev2599
    @sergeyandreev2599 2 роки тому +6

    The "cd" command changes the directory, but not what drive you are working with. So when you go "cd d:\temp", you are changing the D drive's directory to temp, but staying in the C drive.
    Execute these two commands:
    D:
    cd temp
    That will get you the results you want.

    • @joshrokman
      @joshrokman 2 роки тому +1

      Thanks for that!

    • @danielwp498
      @danielwp498 Рік тому

      @sergeyandreev2599 so if I want to render a file in my D drive into my D drive. I should do:
      cd "C:\Program Files\Blender Foundation\Blender 3.3"
      blender -b D: cd temp "D:\project file location" -a
      cmd/k
      doesn't seem to work for me but I guess I didn't do it correctly. Do you perhaps know why?

    • @sergeyandreev2599
      @sergeyandreev2599 Рік тому +1

      @@danielwp498 My working file:
      C:
      cd "C:\Program Files\Blender Foundation\Blender 2.93"
      blender -b "T:
      ame.blend" -a
      cmd /k
      Is it helpful for you? I don't know. If you're talking about render files location, you need to change settings in blender and save the file

    • @danielwp498
      @danielwp498 Рік тому +1

      @@sergeyandreev2599 that worked for me! Adding the C: in the first line before the cd command solved the issue. Thanks so much!

    • @sergeyandreev2599
      @sergeyandreev2599 Рік тому +1

      @@danielwp498 I'm very happy to help you :)

  • @k0walsk
    @k0walsk Рік тому

    Btw does that cound as writing code?

  • @chrisstonalll
    @chrisstonalll 3 роки тому +1

    is there a way to render multiple cameras in one scene using this method or do you have to create multiple copies of the same scene with different camera angles?

    • @andrejpisut974
      @andrejpisut974 3 роки тому

      There is a really handy marker solution. You can create markers on timelie (M) and bind active camera to marker (ctr+B). As long as they are in render range they will get rendered. Thus you can render multiple shots throughout multiple blend files. I dont know how it works with different scenes. As far as i know it only renders active scene.

  • @ErikvanSchaaik
    @ErikvanSchaaik Рік тому

    Hi, and thanks! How can I do this on a Mac?

  • @belaidt6801
    @belaidt6801 Рік тому

    Great Thank you

  • @ericknisley100
    @ericknisley100 7 місяців тому

    This is extremely helpful! I work in a science museum, where I often have to crank out huge sequences of frames, often running the computers on weekends or nights. This really helps to make tha an automatic process! I do have one question, and please forgive me if you've already answered. I want to set start and end frame numbers for my rendering. I looked up the commands, and I think I understand them, but I think my syntax is not right. I have my first line of rendering as
    >>
    Blender.exe -b "D:\projects\batch-file-test\batch-file-01.blend" -s -e

  • @WillFalcon
    @WillFalcon Рік тому

    Do u have an example if I would want to use 2x-GPU and render multiple .blend files?
    For now I will try this code
    echo on
    start /d "%blenderPath%" blender2.exe -b "%cd%\%sceneFile1%" -s %startFrame1% -e %endFrame1% -j %instances% -a
    timeout 1
    start /d "%blenderPath%" blender3.exe -b "%cd%\%sceneFile2%" -s %startFrame1% -e %endFrame1% -j %instances% -a
    timeout 1
    What cmd /k does?

  • @realinus
    @realinus 18 днів тому

    GENIUS

  • @vishnuhere6150
    @vishnuhere6150 2 роки тому

    Png files?? Support? I did it but not working

  • @ivanpergasiFreelance
    @ivanpergasiFreelance 16 днів тому

    hey does it work for VSE ?

  • @koraykoralturk5054
    @koraykoralturk5054 Рік тому

    İts not working.” Error cannot read file No such file or directory “ what did a do wrong

  • @ingorotfuchs1267
    @ingorotfuchs1267 5 місяців тому

    Hmmm, sorry, but the batch doesn't work at blender 4.0.2, in my case.
    I have all blender-versions installed at drive D and the blend-files, including the batch-subfolder, at drive F.
    The batch tells me, that the blend-files could not be found or were misspelled.
    Tis is how I did the script:
    cd "D:\3D-Software\Blender\Blender 4_0\"
    blender -b "F:\Projects - 01 Alle\Projects - Blender\Blender Scenes\xyz.blend" -a
    cmd /k
    What must I change, to make the batch-file work?

    • @royphotography390
      @royphotography390 Місяць тому +1

      I think moving the batch file in the installation drive should work

  • @yochintohere
    @yochintohere 11 місяців тому

    Amazing

  • @JohnDowson100
    @JohnDowson100 Рік тому +1

    Hi
    I'm new to blender. I usually batch render with arnold. Is there a list of render flags you can use like in Arnold?

    • @terr20114
      @terr20114  Рік тому +1

      Hey Paolo, I never checked out Arnold before but I can look into it. I'm considering making a discord where we can discuss these kinda things easily.

  • @HakBaba
    @HakBaba 2 роки тому +1

    ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))... I'am getting this error. Can you please help me out here. Thanks in advance.

  • @benwan3710
    @benwan3710 Рік тому +1

    does it work on Mac?

  • @Raitan2008
    @Raitan2008 2 роки тому

    This is not working for me at all in blender 3.1. I tried running as administrator from the desktop, and I get a lot of shit about other addons in the cmd line. I saved what it said--are you able to help? Willing to donate to your patreon or whatever you take in order to get this working. This would be a game changer for my production flow.

  • @HappyballSoul
    @HappyballSoul Рік тому

    Can you do that with mac too?

  • @TT-hu2hd
    @TT-hu2hd Рік тому +1

    Thanks, does it is possible to rendered several files one by one without overwritting the new render at each loop ? Example : Files C1, C2 and C3.blend, then launching the command and finally have C1, C2 and C3.png pictures in the directory. Thank you in advance !

  • @naoremedisonsingh6035
    @naoremedisonsingh6035 2 роки тому

    can we have the .blend files in different folders? wat about the .bat file?
    please help!!

    • @terr20114
      @terr20114  2 роки тому

      Hi, I"m a little late but yes you can, you just need to put the path to each .blend file in the bat script.

  • @firsrtexperiencewithab81
    @firsrtexperiencewithab81 6 місяців тому

    Keep in mind you have to open file as administrator if you face issue like file is not recognized

  • @hugoantunesartwithblender
    @hugoantunesartwithblender 2 роки тому

    Thank ypu, so useful

  • @sahilsingh2367
    @sahilsingh2367 2 роки тому +4

    Think I might be doing something wrong. getting this error
    'blender' is not recognized as an internal or external command,
    operable program or batch file.

    • @terr20114
      @terr20114  2 роки тому

      Message me on discord Terr20114#7206

    • @DamianMathew
      @DamianMathew 3 місяці тому

      SOLUTION: right click, Run as administrator.

  • @paolohuesp
    @paolohuesp 3 роки тому +1

    works also for jpg and png with eevee?

    • @terr20114
      @terr20114  3 роки тому +1

      Yes it does. Just set your settings and save the file before you begin the batch render

  • @MercuryRisingFast
    @MercuryRisingFast 5 місяців тому

    omg... blender. Does it batch render in the latest version without all this nonsense?

  • @pmvelectric8690
    @pmvelectric8690 3 роки тому +4

    'blender' is not recognized as an internal or external command,
    operable program or batch file.
    I AM GETTING THIS ERROR PLEASE TELL ME WHAT SHOULD I DO?

    • @terr20114
      @terr20114  3 роки тому

      Hey there! It sounds like you're not running the command from the correct folder. Watch from 2:46. You should get the location of the blender.exe and copy it to the note pad file. You will need to CD command to ensure the command look for the blender exe in the correct folder.

    • @MrZakousky
      @MrZakousky 3 роки тому

      @@terr20114 Same trouble :( my command : cd "C:\Program Files\Blender Foundation\Blender 2.91"

    • @terr20114
      @terr20114  3 роки тому

      @@MrZakousky I'm thinking blender isn't located in the default folder. Right click the shortcut, click open the file location and see where it is.

    • @mrflyman123456789
      @mrflyman123456789 3 роки тому

      hey I had the same issue, first type in >cd copy paste your blender file path here and then write blender.exe, after that it will open blender for you, so close it afterwards, the rest is the same as in the video

    • @makacofilms4180
      @makacofilms4180 3 роки тому +3

      you have to run it as admin.

  • @hamidmohamadzade1920
    @hamidmohamadzade1920 Рік тому

    Make sure to run the batch file as administrator. it fixed not recognise blender

  • @b3dsign
    @b3dsign 2 роки тому +1

    Amazing!!!! Thank you so much! Just save one more life! (Is there a way to open blender to see the rendering?)

    • @terr20114
      @terr20114  2 роки тому

      Really glad I could help 😁. Unfortunately using this method wont allow you to see the render. I always check my settings, lighting, enabled objects etc. Do a few test renders before committing to a render like this.

    • @b3dsign
      @b3dsign 2 роки тому +1

      @@terr20114 I was imagining that, but it's ok, I am doing a lot of renders just changing a object, it was crazy wait the render all the time, now I can do 10 and send =) Thank you again!

    • @terr20114
      @terr20114  2 роки тому

      @@b3dsign you're welcome 😁👍

  • @realinus
    @realinus 18 днів тому

    genius

  • @ayb2337
    @ayb2337 2 роки тому

    Can we make the pc to shutdown after finishing the render?

    • @terr20114
      @terr20114  2 роки тому +1

      Actually you can, instead of "cmd /k" you can add "shutdown /s" at the end of your script. Your PC will shutdown about a minute after the render is complete.

    • @ayb2337
      @ayb2337 2 роки тому

      @@terr20114 thanks man ❤️

  • @ayb2337
    @ayb2337 2 роки тому

    I don't have a specific set of skills. But If I had, I will find you. And I will hug you.

    • @terr20114
      @terr20114  2 роки тому

      😄 Thanks! Glad I could help

  • @EFEKTStudio
    @EFEKTStudio 2 роки тому +1

    tried to watch the video, just couldn't, because music in background is so annoying.

    • @terr20114
      @terr20114  2 роки тому +1

      Thanks for the feedback. I had no good audio equipment back then. I've long upgraded my equipment. My future videos will be a whole lot better from an audio standpoint.

    • @EFEKTStudio
      @EFEKTStudio 2 роки тому

      @@terr20114 Thanks, I rather listen your audio with all the issues then like this. Great video btw.

  • @DamianMathew
    @DamianMathew 3 місяці тому

    'blender' is not recognized as an internal or external command
    SOLUTION: right click, Run as administrator.

  • @AlexandreMarcati
    @AlexandreMarcati 2 роки тому +2

    Jump to 2:41 to get to the actual batch render tutorial.

    • @terr20114
      @terr20114  2 роки тому +1

      Good suggestion. I've updated the timecodes.

    • @AlexandreMarcati
      @AlexandreMarcati 2 роки тому +1

      @@terr20114 nice, thanks!

    • @terr20114
      @terr20114  2 роки тому

      @@AlexandreMarcati Gotta thank you for that suggestion 👍

  • @ihebKirikachi
    @ihebKirikachi 2 роки тому

    i love this shit thaaaaaaaaaaaanks

  • @S9universe
    @S9universe Рік тому

    ok wow

  • @LORDSofCHAOS333
    @LORDSofCHAOS333 3 місяці тому

    Bruh my render nightmares are finally over can't wait to test is out on a 4gb NVIDIA 1650 i can render 10 or more files without using my gpu holly molly.

  • @gustavoluisrodela
    @gustavoluisrodela 3 роки тому +2

    Nice tut. Terrible bmg. Can barely hear you! Please get rid of it!!

    • @terr20114
      @terr20114  3 роки тому

      Don't you worry. I've purchased an audio interface and a good microphone for all future videos. :)

  • @Venous_fx
    @Venous_fx 2 роки тому

    linux?!!?!?

    • @terr20114
      @terr20114  2 роки тому

      I'm not sure how this is done on linux. I could try

  • @getsebt1
    @getsebt1 Рік тому

    just for this tutorial you got a new subcriber!
    Thanks for this tutorial!
    But the cumunity is the most beautiful that you have! I got some problems but thanks to @lunardbay and @PlanetXtreme I could do it YOU GUYS ARE awesome. thanks