Questions tagged [command-line]

Questions pertaining to using Blender from the command line or using Blender's console window.

Filter by
Sorted by
Tagged with
52
votes
4answers
26k views

How to pass command line arguments to a Blender Python script?

Let's say we have a Python script my_script.py that does some data processing with Blender. This script accepts some arguments (e.g. ...
68
votes
3answers
53k views

How can I run blender from command line or a python script without opening a GUI?

I'm interested in using Blender for producing images, 3d files, or calculating geometry on a server. Can I make blender run a python script without opening a GUI? If not, can I incorporate Blender's ...
34
votes
4answers
22k views

Is there a way to batch render multiple scenes?

I have animations in 4 different scenes in my Blender file that I would like to batch render. Is there a way to batch render all the scenes, instead of only the scene I am working in?
9
votes
3answers
7k views

How to view the system console message after Blender crashes?

I am testing a script in Blender game engine. I can view the helpful message on the external system console when the script throws exception. Sometimes the bugs of the script cause the Blender to ...
9
votes
1answer
3k views

Auto-run scripts security options

We have a preferences option to enable auto-run of python scripts when opening blend files. We can also add paths that are excluded from auto-running scripts. Then we have a cli options to enable or ...
29
votes
2answers
15k views

Can Cycles renders be done from the command line?

It seems that Cycles is mainly built in the form of Python scripts (as far as I can tell). Is it still possible to use Cycles to render a .blend file from the ...
13
votes
1answer
9k views

Setting render options from the command line

I was hoping to render blender using the command line mode on linux. However, I do not no how to set the output resolution and H.264 as the encoding. Both these options work in the GUI mode but I wish ...
7
votes
2answers
2k views

Batch generate preview/thumbnail image for old files?

I got hundreds of old files (some are from 2.4x) that need to generate Preview/thumbnail images with the new Blender version. I think the straightforward way is to open and save each files to generate,...
1
vote
1answer
314 views

No Preview in the Preview Sequencer View (just white on black) [duplicate]

I am a new user and I just installed Blender 2.76b on a Lenovo R500, OS Windows XP Pro. I intend to use it mostly for (short) video editing. I could load, hear audio, cut and animate video correctly, ...
0
votes
1answer
533 views

Access Audio Strips Sample data in Python for a Cross-Correlation

I want to perform an Audio Cross-Correlation in Blender (like with numpy.correlate) to align two Audio Strips. But I can't figure out how to access the Sample Data of an Audio Strip inside Blenders ...
8
votes
4answers
13k views

How to open system console to get output from Blender on Mac OS 10?

Noobie here. Should I open Mac terminal and cd to /Applications/Blender/ which is where my Blender app is? Doesn't seem to work for me trying to run script from Text screen in Blender. I guess there ...
9
votes
1answer
5k views

Specify tile size for Blender Cycles rendering via the command line

I'd like to write a little piece of code which splits a frame into a few tiles and uses all available devices to render the still image. It seems like the Blender developers are working on such a ...
21
votes
3answers
14k views

Blender rendering automation (build script)

I would like to automate the proccess of rendering images (sprites). What I want to do is to render an image of the same model with different textures, ideally the texture filename would be passed as ...
5
votes
1answer
2k views

Rendering on command-line with GPU?

I am trying to submit a render job via slurm on our cluster with blender 2.8, that is, completely command-line based with no way to start the GUI on the computing nodes. I have assigned 38 CPU to the ...
5
votes
1answer
5k views

How to render in command line? [duplicate]

I have a very very slow computer, but would like to animate 3D. I'm aware we can render via the command line. but I don't know how. I want to render the entire animation of my Tutorial.blend file in ...
3
votes
1answer
6k views

Rendering a cube as png file using Blender's Python API

I am new to Blender. I create a cube and want to render it. Since, we are later going to do this for large number of shapes, we are working with Blender's Python API. I want to save this rendering as ...
7
votes
1answer
2k views

Run multiple Python scripts in Blender from the command-line

I have 8 python scripts and I need to lunch them at once. For one script, I used blender --background --python script1.py for the eight scripts, I tried this ...
2
votes
2answers
1k views

Is it possible to get render time per tile?

Is it possible to ask blender when each render tile starts/finishes rendering? e.g. for a render time estimator This used to be somewhat possible from the command line: For example in blender 2.65a ...
1
vote
1answer
983 views

How to select all non-CPU CUDA or non-CPU OpenCL devices for Cycles rendering (command line)?

I'm looking for a way to have Blender 2.8 render with Cycles using CUDA but only for Nvidia GPUs (no CPUs selected) and do the same using OpenCL with only AMD GPUs (no CPUs selected). My goal is to ...
19
votes
4answers
8k views

Can blend files be queued for animation rendering?

I would like to be able to render several files one after the other, when I am not using my computer, e.g. at night. Is there a way of doing this?
14
votes
3answers
10k views

How to use blender command lines in OSX?

Update: NB: This is a revised and updated version of my original question. You can also see the relevant discussion on meta as to why it was closed and reopened. On June 29th I asked what I thought ...
11
votes
1answer
3k views

Render with openGL from the command line?

Is it possible to use the openGL quick render for rendering from the command line? e.g. something like blender -b <file> -E opengl -f 1
4
votes
1answer
1k views

How can I copy or print errors from the console?

I am testing an importer addon that still has bugs. Sometimes when I import a file, I get a large error all over my screen (and in the console.) I want to save this error log out to a text file so ...
2
votes
1answer
2k views

Change value of material emission strength from Python console or script

I need to programatically modify the value of Material > Surface(Emission) > Strength When I change this value manually the output is: ...
2
votes
2answers
2k views

Blender 2.8 - AWS EC2 command line EEVEE render

I have been trying to get this to work for a couple days now. I have an EC2 P2 instance with NVIDIA CUDA configured by default, its a Deep learning Ubuntu AMI. This OS does not have a GUI so ...
15
votes
3answers
13k views

Is there anyway to make blender print errors in the UI?

For some reason, sometimes error messages encountered while scripting are not printed in the info panel, only the message ...
7
votes
2answers
5k views

How to write the output of Blender console out to a file

Is it possible to launch Blender in a mode where everything that appears in the Blender Console is sent to a file?
5
votes
1answer
5k views

Print all commands in the Info view?

The Info view doesn't show every command (scripts) which I actioned. Example open new file, reload file, import, export... How to show them?
4
votes
1answer
3k views

Blender script run print to console [duplicate]

How can I run some script and have print result in console window? Now I have these results only in System Console Window.
3
votes
2answers
6k views

Multiple addons using the same name

I was trying to install the add-on Blam Master and for any reason was not showing up, and didn't show any action confirming the installation. I try to run it again an this error popped out: ...
11
votes
2answers
2k views

Headless Blender using Cycles without X-server?

I would like to render with Cycles on a headless machine, without an X-server. Has anyone done this with success? I am getting the following error on Linux using Blender 2.78a: $: blender -b cube....
6
votes
1answer
7k views

I can't load an image from a script

I'm trying to use Blender's mesh displacement from a script to create stl's. Once this works, I'll run blender with --background to create the stl files from the command line. I start Blender with: <...
9
votes
3answers
4k views

Silent command line rendering

I'm using a simple script to create and render a scene and when I run the script from command-line as blender --background --python hello.py it prints lots of lines ...
4
votes
2answers
3k views

Calling Python Function from Console

Would it be possible to call Python codes I wrote in Text Editor from the Python console so that I can interact with it?
1
vote
1answer
405 views

Multiple addons using the same name (OS X)

I got an error message in User Preferences > Addons tab ...
0
votes
2answers
1k views

Time delay when selecting objects in a python script!

I am trying to create a simple script in python that will allow me to select objects from my scene. What I did, is created a scene, and added 3 objects, a cube, a sphere and a cylinder, and they are ...
2
votes
4answers
4k views

How do I send multiple command line commands to the same Blender instance?

im pretty new to blender, and im facing the need to issue python scripts to blender outside of blender via command line. Im using the following from a windows shell: "blender exe" --python "python ...
2
votes
1answer
765 views

Run script stored in text editor/blend file from CLI

What is the correct way to run a script internally stored in the blend file from the CLI? I'm trying to run a script I have in the text editor. I have it named "Import" in the text editor. The ...
8
votes
3answers
3k views

Get number of frames in scene from the command line?

I'd like to know if there is a command-line option (or combination, or a way!) to get the number of frames that are included in a specified blender scene; for example I'd like to use is like this: <...
6
votes
1answer
6k views

Render on GPU from command line on Ubuntu server

For best render performance and more free VRAM I installed Blender on an Ubuntu server without GUI. I launched Blender from the command line using argument and all was OK, but after installing it ...
8
votes
1answer
2k views

How to get actual rendering progress and estimation from render_stats python handler?

There is render_stats bpy handler It seem like it is invoked every time rendering engine prints to console smth like ...
8
votes
1answer
8k views

How can I run blender from the command line to export and import models

I am interested in exporting and importing 3d models using blender via the command line, as mentioned in this question. So now I want to know how I can import and export the models in blender with ...
5
votes
3answers
4k views

Install Addons in Headless Blender

Is it possible to install a Blender addon in headless mode? I need the ability to export gltfs from a Ubuntu server instance and the only instructions I can find for installing an addon in Blender is ...
4
votes
1answer
1k views

Automatic select vertices by given coordinates

I have a mesh with some thousand vertices and want to select a few specific. An external program choses the vertices i have to select. They are too many to do it manualy. My first idea was to take a ...
3
votes
1answer
176 views

Rendering large amount of short videos with different generated “animation”?

I have a very specific and probably strange question to which I couldn't find any answers. I'm a computer vision researcher and I need some data for a "small" side project, I want to know if it's ...
3
votes
2answers
340 views

Accessing Vector Pass Data in python in background mode

Background: We are building an automated pipeline to extract motion (i.e. vector pass output) from animated blends by running scripts using blender's python API. We are able to programmatically set up ...
1
vote
1answer
918 views

Blender command line - Change input image when rendering?

I'm rendering an image from the command line using this command: ...
7
votes
1answer
3k views

How to increase the scrollback history of the Python console/terminal within Blender?

How can I increase the size of the command history in the Python console? The console options don't provide any option for doing this. Like Maya's unlimited output section in the script editor.
5
votes
1answer
3k views

What values do the --verbose and --debug-value options accept?

Running blender with either blender --verbose or blender --debug-value returns ...
5
votes
1answer
11k views

How do I get the console on windows?

How do I get the console on windows? I opened the python console and it does nothing, and it isn't open on startup.