Blender - How To Use Command Line Rendering

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.พ. 2023
  • In this Blender tutorial, I show you how to use Command Line rendering to render blender projects without having to use the GUI.
    "PATH TO BLENDER.EXE" --background "PATH TO BLEND FILE" -a -- --cycles-device OPTIX
    "PATH TO BLENDER.EXE" --background "PATH TO BLEND FILE" -a -- --cycles-device CUDA
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Background Music:
    (NA) by (NA)
    Available free to use and monetize.
    - - - - - - - - -
    Some of my most popular videos:
    • Keva Plank Building Bl...
    • Molecular Script Addon...
    • Physics Simulation Cyc...
    • Multicolored Fluids Si...
    • 2017 Animation Mega Co...
    • My 2018 Blender Animat...
    • Molecular Script Sand ...
    • Convert Image Sequence...
    • Motion/Camera Tracking...
    • Dual RTX 2060 Super Bl...
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FIND ME ON SOCIAL MEDIA:
    Odysee: odysee.com/@BlenderRookie:8
    BlendSwap:
    www.blendswap.com/user/Blende...
    Blender Rookie:
    / blenderrookie
    Socialblade
    socialblade.com/youtube/chann...
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    DONATE:
    Paypal
    paypal.me/BlenderRookie
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    The Software I Use:
    Live Streaming/Screen recording: OBS(freeware)
    obsproject.com/
    3D Editor: Blender 3D (freeware)
    www.blender.org
    Video Editor: Cyberlink PowerDirector14 (payware)
    www.cyberlink.com
    MP4 Encoder: HandBrake (freeware)
    handbrake.fr
    Audio Editor: Audacity (freeware)
    www.audacityteam.org
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    My Hardware:
    Desktop 1
    Motherboard: Asus X570 TUF
    CPU: Ryzen 9 3900X
    GPU: RTX 3070 - RTX 3060
    RAM: 64GB 3600Mhz G Skill Ripjaws 4 X 16GB
    STORAGE: 500GB NVME (Western Digital Black)
    1TB Samsung Evo NVME
    COOLING: Cooler Master Hyper 212
    POWER SUPPLY: EVGA 850 Gold
    Desktop 2
    Motherboard: MSI X470
    CPU: Ryzen 5 3600
    GPU: 2X RTX 2060 Super - 2X GTX 1060 6GB
    RAM: 32GB 2133Mhz G Skill Ripjaws 4 X 8GB
    STORAGE: 250GB SSD Western Digital Blue
    COOLING: Stock AMD Cooler
    POWER SUPPLY: EVGA 500 Bronze
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Keywords & Hashtags:
    #Satisfying #KevaPlank #BlenderRender #Blender3D #Freeware #Animation #CGI #VFX #ParticleFluids #BlenderRookie
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    I am a Blender Rookie teaching myself how to use Blender. I am posting my animations on this channels for people to see and critique.
  • ภาพยนตร์และแอนิเมชัน

ความคิดเห็น • 34

  • @oscarmicklethwait2771
    @oscarmicklethwait2771 ปีที่แล้ว +6

    lol I come back to this video once a week to copy the cmd line, love you!

    • @BlenderRookie
      @BlenderRookie  ปีที่แล้ว

      LOL I had to reference it yesterday.

  • @GZWA
    @GZWA 9 หลายเดือนก่อน

    thanks, I feel powerful now.

  • @hdri3dvideo
    @hdri3dvideo ปีที่แล้ว +2

    Thank you so much

  • @christianmklein
    @christianmklein 3 หลายเดือนก่อน

    Thank you!!

    • @BlenderRookie
      @BlenderRookie  3 หลายเดือนก่อน

      You are welcome.

  • @BlenderFun_
    @BlenderFun_ 8 หลายเดือนก่อน +1

    i can recommend using the free LOOM add-on, which can do that with (!) a graphical UI and a lot of settings. You can even batch render multiple files. And by using that it is much quicker to render what you want than typing commands in the command line.

    • @BlenderRookie
      @BlenderRookie  8 หลายเดือนก่อน

      Thanks, I will look into that.

  • @MelvilleG
    @MelvilleG 8 หลายเดือนก่อน

    Thank you. Been trying that on Linux. Honestly on Linux there isn't much of a difference between the command line version and the UI version. Is it the same on Windows?

  • @FalseDeities
    @FalseDeities 3 หลายเดือนก่อน

    any idea how to define the file path it writes to from the command line too? This is awesome. I want to use it to render projects on a remote computer.

    • @BlenderRookie
      @BlenderRookie  3 หลายเดือนก่อน +1

      You don't do that through the CMD. Just save the blend file as you want with the desired output location and then when you render through the CMD, the output will go to that location.

  • @mg-se5ws
    @mg-se5ws 10 หลายเดือนก่อน +1

    one question
    what if you want to render it in 4k. do you save the settings in blender press save the run that command or do you make a command for it to render in 4k?

    • @BlenderRookie
      @BlenderRookie  10 หลายเดือนก่อน +1

      Yes. Basically setup everything and then save. The commandline runs the blend file as it was saved.

  • @ggdevelopment7403
    @ggdevelopment7403 หลายเดือนก่อน

    Nice tutorial. I have a few questions:
    Does the command line render follow the simplify limitation for the render? For example, if I set the texture limit to 2k, will that still work?
    And what happens if I don't add "--cycles-device OPTIX" in the end?
    Thank you for the tutorial!

    • @BlenderRookie
      @BlenderRookie  หลายเดือนก่อน

      I believe if you don't add "--cycles-device OPTIX" or "--cycles-device CUDA", it will default to using all CUDA capable processors. In other words, I believe it will use all GPUs in CUDA and use the CPU in CUDA.
      As far as I know, however the blend file is saved, that's how it will run in the command line and that includes textures.

  • @The500Cuts
    @The500Cuts 10 หลายเดือนก่อน

    I have a blend file with multiple scenes in it. Have you figured out a way to specify a scene in the command line? I'm trying to batch render, but also just render one of the 4 scenes without opening and saving the blend file each time.

    • @BlenderRookie
      @BlenderRookie  10 หลายเดือนก่อน

      I don't know how or even if that's possible. Here are the command line arguments blender uses. docs.blender.org/manual/en/latest/advanced/command_line/arguments.html I have never been that good at command line stuff. So unfortunately, I can only help with the basics.

    • @The500Cuts
      @The500Cuts 10 หลายเดือนก่อน

      @@BlenderRookie Thanks! I went through these and found -S (big S) which allows you to select the scene by name. blender -b blendfile.blend -S scenename -a. I appreciate the link!

  • @hdri3dvideo
    @hdri3dvideo ปีที่แล้ว

    I'm trying to export the animations of the flip fluid simulations in Alambic format to use them in cinema 4D.
    But every time Blender crashes!
    Do you think it's possible that there is a line command to export?
    thank you very much in advance

    • @BlenderRookie
      @BlenderRookie  ปีที่แล้ว +1

      I have absolutely no idea when it comes to exporting anything from blender to another program. I have only used blender and have zero knowledge about exporting to other programs.

    • @hdri3dvideo
      @hdri3dvideo ปีที่แล้ว

      @@BlenderRookie Ok thx

  • @martinianogarcia9167
    @martinianogarcia9167 7 หลายเดือนก่อน +1

    It's weird. It's rendering the camera animation, but not the any animation of the objects and meshes. I'm using Blender 4.0 at the moment. Any idea?
    Great work, thanks!

    • @BlenderRookie
      @BlenderRookie  7 หลายเดือนก่อน +1

      Are the objects rigid body or something else that needs to be baked? Also, don't forget you need to save the file after making changes and before using the commandline because it only goes by the most recently saved version and not whatever state the GUI version is in.

    • @martinianogarcia9167
      @martinianogarcia9167 7 หลายเดือนก่อน

      @@BlenderRookie No physics. But a sphere is linked to an Empty which rotation is programmed with a Driver.Do you think it need to be baked?
      Thanks for the quick answer sire

  • @makswilczynski9485
    @makswilczynski9485 2 หลายเดือนก่อน

    what if i wanted to start from specific frame, but dont change that in blender and not use -a? thanks in advance:)

    • @BlenderRookie
      @BlenderRookie  2 หลายเดือนก่อน

      I think it would be this
      "PATH TO BLENDER.EXE" --background "PATH TO BLEND FILE" -s START FRAME NUMBER -e END FRAME NUMER --cycles-device OPTIX
      Just replace the "START FRAME NUMBER" with a number like 10 and replace the "END FRAME NUMBER" with a number like 100.

    • @makswilczynski9485
      @makswilczynski9485 2 หลายเดือนก่อน

      @@BlenderRookie i figured it out, just after file i needed to add -s (frame start) -e (frame end) -a, it worked perfectly fine, thanks!

    • @BlenderRookie
      @BlenderRookie  2 หลายเดือนก่อน +1

      @@makswilczynski9485 Glad you figured it out.

  • @mirzawajahatofficial9454
    @mirzawajahatofficial9454 8 หลายเดือนก่อน

    I am doing everything exactly. But in the Cmd window. I can't see anything like in the video. Luckily it is rendering. But it isn't showing any progress just like yours.

    • @BlenderRookie
      @BlenderRookie  8 หลายเดือนก่อน

      I'm not sure. I don't know if that's something that needs to be enabled or how to enable it if it does need to be enabled.
      The only thing I can think of that may work would be to add
      --verbose
      to the command line. But I honestly am making a guess.

  • @bluegemphotos1614
    @bluegemphotos1614 5 หลายเดือนก่อน

    Hi. I followed your instructions yet cannot get the command to run....
    "C:\Program Files\Blender Foundation\Blender 3.0\blender.exe"--background "C:\BLENDER\Candyheartdop.blend" -a -- --cycles-device OPTIX
    Am i doing something wrong? I just open command prompt and enter the command line. No results..

    • @BlenderRookie
      @BlenderRookie  5 หลายเดือนก่อน

      If you are using a different version of blender you will need to change the path.
      My example assumes the person is using blender version 3.0. Go to your C drive or whichever drive you have blender installed on and find the "blender.exe" and copy the path and replace
      "C:\Program Files\Blender Foundation\Blender 3.0\blender.exe"
      With the path specific for your machine.
      For example, on my machine I now have blender 4.0 installed, so I would need to change it to
      "C:\Program Files\Blender Foundation\Blender 4.0\blender.exe"
      I would bet that's what's going on. I probably should have been more clear about that in the video.

    • @bluegemphotos1614
      @bluegemphotos1614 5 หลายเดือนก่อน

      @@BlenderRookie I figured it out. Thanks.

  • @user-iz5fo2yr9m
    @user-iz5fo2yr9m 21 วันที่ผ่านมา

    Ok i found a solution (for me). If it saids "could not open the file" just make it administrator but you need to do it manually by typing(or just copy the file path). And boom