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. - ภาพยนตร์และแอนิเมชัน
lol I come back to this video once a week to copy the cmd line, love you!
LOL I had to reference it yesterday.
thanks, I feel powerful now.
Thank you so much
Thank you!!
You are welcome.
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.
Thanks, I will look into that.
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?
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.
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.
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?
Yes. Basically setup everything and then save. The commandline runs the blend file as it was saved.
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!
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.
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.
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.
@@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!
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
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.
@@BlenderRookie Ok thx
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!
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.
@@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
what if i wanted to start from specific frame, but dont change that in blender and not use -a? thanks in advance:)
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.
@@BlenderRookie i figured it out, just after file i needed to add -s (frame start) -e (frame end) -a, it worked perfectly fine, thanks!
@@makswilczynski9485 Glad you figured it out.
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.
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.
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..
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.
@@BlenderRookie I figured it out. Thanks.
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