How to render animation in Blender using Command-Line

แชร์
ฝัง

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

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

    Hello!, thanks for the video man but for some reason in my command prompt when I run the line, it shows me the following message "' 'blender.exe' is not recognized as an internal or external command", I tried installing blender in cmd through pip, still, I am getting the same error. If you know how to fix it, then plz do let me know.

  • @jacopotassinari
    @jacopotassinari 6 หลายเดือนก่อน +1

    nice tutorial, really usefull, thanks

  • @נתילוי-ד7נ
    @נתילוי-ד7נ ปีที่แล้ว +1

    is it using the gpu ?

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

    Great lesson!

  • @philhacker1137
    @philhacker1137 3 ปีที่แล้ว +4

    writing Batch files.
    1 you must use an unformated/ stylized txt editor. like Write.
    2 To save your batch file save it as:
    Filename.Bat
    3 CD = change directory
    Md= Make Directory
    .. (period period )= back one directory
    For animation:
    So the (pathof blender) blender_ (path and file name)-a
    For single frame:
    (blender path)_blender-f(frame number) (blend filename path)-a
    docs.blender.org/manual/en/latest/advanced/command_line/arguments.html

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

      Thanks for the comment! I wish I could pin this comment.

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

    For some reason my background renders default to using the CPU even if my blender file has gpu as the rendering device.
    Anyone know if there's a command to specify -gpu render?

  • @נתילוי-ד7נ
    @נתילוי-ד7נ ปีที่แล้ว

    Thx for video. last 2 times after 20 minutes, my computer froze... whilte rendering throw the command code... any help?

  • @freddyfredrickson
    @freddyfredrickson 2 ปีที่แล้ว

    Okay, but how do we select a specific GPU in the command line.
    I have multiple GPUs but because my frames are easy to render, it is faster if I open multiple instances of blender in the command line and assign each one a specific GPU. I thought it might be -gpu 0 or -gpu 1 but that didn't work.

  • @KakachiNt
    @KakachiNt 3 ปีที่แล้ว

    i have a question , can it still renders frames that my GPU cannot render ( out of memory ) or it just takes my CPU and make it do as fast that i can do with my GPU because i tried to do a fluid animation and my GPU is useless , i need a better GPU to render it. so i use my CPU and it takes like 30 min / frame

  • @westonrothchild4756
    @westonrothchild4756 2 ปีที่แล้ว

    If "-b" is the command to render in the background, is there another command to render in the foreground? When I try running the .bat file just without "-b" the render never starts

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

    Can't wait to work up a render test and see if this saves me some render time. Thanks very much!
    Also: I never knew you could drag and drop stuff into the CMD window. *mind blown*

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

    Hey man, really nice tutorial! Any chance you could do one for linux? (specifically pop! OS? XD)

    • @AlexPearce3d
      @AlexPearce3d  3 ปีที่แล้ว

      Sorry Shadow, I don't have a Linux machine :( otherwise I would love to.

    • @theshadow6273
      @theshadow6273 3 ปีที่แล้ว

      @@AlexPearce3d shoot! All good man. Cheers for the reply!

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

    Hello
    How must i do to render video file instead png with the command line ?

    • @AlexPearce3d
      @AlexPearce3d  3 ปีที่แล้ว

      First, you can change the format of the output through the Scene tab in Blender. You can choose video format, FFMPEG with specific settings is probably what you'll want to do, but there's also AVI raw. Then when you render the animation through command line, the format should be what you set.
      Alternatively, you can use the "-F" flag in the command to choose the format. For example,
      blender -b file.blend -o /project/renders/frame_##### -F OPEN_EXR -f -2
      "-F OPEN_EXR" This part oft the command tells Blender, "I don't care what the scene settings are, I want you to render Open Exr files." You'd change OPEN_EXR to your format of choice.
      docs.blender.org/manual/en/latest/advanced/command_line/render.html#animation

    • @axala
      @axala 3 ปีที่แล้ว

      @@AlexPearce3d If idefine mp4 with ffmpeg in blender i'll get an mpg file if i understand ?
      So i don't need to specify an extension for the file ?

  • @Lio2coolPlays
    @Lio2coolPlays 3 ปีที่แล้ว

    Hi there, Thanks for the helpful tutorial. But I have a script on my blend file that changes the scene every frame, but when i run this cmd command in animation or image mode, my script doesnt take effect. Any idea why or how to fix? Thanks

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

    Great tutorial! I do have a quick question: Are there any other benefits to background rendering? Like is it at all faster at rendering the scenes or anything like that? Thanks!

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

      I have read that some people say it is faster, and certainly in theory it should be, but everytime I've tried I have not seen a noticeable improvement. It may depend on your hardware, or the scene itself.