Questions tagged [command-line]

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

132 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
256 views

Rendering to Viewer Node in headless mode

I'm running Blender 2.79: /path/to/blender -b empty.blend -P script.py With script.py: ...
3
votes
0answers
274 views

Running a tracking script with Blender in the background

Im trying to run a script that when Blender is opening through the command line with this script it will track the clip it is being open with. I have a script that already opens the Blender file with ...
2
votes
0answers
43 views

Is there a way to auto name my AOV outputs?

So in most other software I use like Houdini and C4D there are tokens you can use to assign auto naming conventions such as the $ (dollar sign) expression. In C4D <...
2
votes
0answers
11 views

Accessing Python Command Line Script Objects

If I generate an object in a python script e.g. called draw_a_cube.py def my_mesh_func(*kwargs): return useful_mesh ...
2
votes
0answers
98 views

Launching blender on the command line results in a error

When I launch blender from the command line, it results in the following error: ...
2
votes
0answers
27 views

Using Knife_project in command line

I have developped an addon and I want to call a few function from command line. Everything works fine except when I'm using knife_project. Here is my code: ...
2
votes
0answers
83 views

Calling blender in PHP outputs nothing

I'm currently running a python script in my command line that uses blender: blender -b -P script.py -- argument1 This works fine in my terminal however it ...
2
votes
0answers
57 views

Why is there a difference in getsizeof() returns for Blender's python console and Python Shell? (for basic types)

This is a getsizeof() return for basic types in blender's python console: And this is one (same args) in Python Shell:
2
votes
0answers
717 views

How to ensure Blender uses the GPU when running from the command line on a headless Linux computer?

I have Blender installed on a Linux machine with 6 Nvidia GPUs (GTX 1060) I have an ssh connection into it but it doesn’t look like Blender is using the GPUs. The ...
2
votes
0answers
258 views

CLI (linux) rendering cycles, and cpu + GPU

I'm currently testing my first try at the rendering cycles on the CLI in Linux. this is the script I wrote for it. I was wondering what about using the GPU along with cpu.Laptop Specs ...
2
votes
0answers
58 views

How can I insert “blend_filename” into the output node?

One thing I often do is rendering via CLI, and I like to choose EXR format to have 32bit files ready for archive. I also like to have blender saving the jpg preview to quickly see it in OS filebrowser....
2
votes
0answers
392 views

Pipe the render output via command line interface

How can I pipe the render output via command line interface? I mean normally we are rendering and saving the render output as a PNG image file with this command: ...
2
votes
0answers
226 views

Run a python script before console

When I launch blender with -P and --python-console together like this ...
2
votes
0answers
676 views

How to force GPU rendering using SSH command in Windows?

I have two Windows 10 computers in the same network. I installed OpenSSH and can remotely connect from one computer from another. I have a blend file that is set to render by GPU. If I use ssh to log ...
2
votes
0answers
51 views

When I run Blender headless I do not get proper beveling if I unlink the object

When I use this code in Blender I get what I want. When I run from the command line the result is not beveled like I expect ...
2
votes
0answers
192 views

knife_project in --background

I like to use the function knife_project() in a command line : blender.exe --background --python ... but bpy.ops.wm.redraw_timer(type='DRAW_WIN_SWAP', iterations=1) isn't avaible. I try to use ...
2
votes
0answers
419 views

Drivers not working when running blender in the background from command line

I am trying to animate a Blender file from the command line that is using a couple of Python functions for Drivers. However, the command gives the following error, and consequently does not perform ...
2
votes
0answers
357 views

Script has no effect but Python console do (Blender 2.72b)

I am writting a script to import a 2D DXF and turn it into 3D. I have to convert curves into meshes. I manage to do it in Python console but the same Python code in a script has no effect (no errors ...
2
votes
0answers
258 views

How to reduce Cycles logging output?

when rendering scenes on the farm, the created logfiles get huge. Is there a way to reduce cycles log output? --verbose didn't work for me... Thx
1
vote
0answers
33 views

How to Copy Python Command (with python)

I would like to copy the python command from operators in edit mode, but the "Copy Python Command" is disabled Is there any way to copy the python command from these operators that don't ...
1
vote
0answers
40 views

How to edit blender file parameters + settings from command line or python?

Note: This is not a duplicate of this question: How can I run blender from command line or a python script without opening a GUI? That question only addresses rendering, not modifying parameters in a ...
1
vote
0answers
21 views

Render Passes File Output in Headless Mode

Here is the blender manual on command line rendering: https://docs.blender.org/manual/en/latest/advanced/command_line/render.html I am having an issue in blender where blender hangs on rendering in UI ...
1
vote
0answers
73 views

“Unable to open a display” AWS EC2 Background Rendering

I launched an AWS EC2 T3 Medium Ubuntu 20.04 instance and installed blender 2.83.9 When I launch the simple command line blender -b -f 1 I get this error message : <...
1
vote
1answer
148 views

ModuleNotFoundError: No module named 'bpy'

I am attempting to use blender from the command line including bpy functions using https://pypi.org/project/bpy/ I have completed a pip installation and have had no errors or warnings, however when I ...
1
vote
1answer
17 views

Workbench Outlines not appearing when rendering animation from command line

The "Outlines" feature of the Workbench render engine Properties / Render Properties / Options / Outline provides the expected results when rendering an animation from the UI Render / Render ...
1
vote
0answers
37 views

Update a script for Unwrapping trees using a python script

I was hoping someone in the community will be able to help with this. A similar question was posted back in 2017 and the user @Rich Sedman answered with a custom made python script that was able to ...
1
vote
0answers
40 views

PNG error messages in command line

I use image textures a lot and regularly get the following messages pop up in command line... libpng warning: interlace handling should be turned on when using png_read_image libpng warning: iCCP ...
1
vote
0answers
20 views

save partially rendered image with command line?

I want to render a frame, the image does not need to be 100% rendered, it can be at 40% stop rendering and save through the command line. How can I do that?
1
vote
0answers
63 views

How to change the default system console to Windows Terminal?

Any way to change the default system console to Windows Terminal?
1
vote
0answers
63 views

Cause of large delay occurring before rendering of each frame?

I'm trying to do background CYCLES rendering on a multi-gpu server using NUMA. However, adding any gpu's beyond 2 offers no speeds up as a unstated delay occurs before each keyframe. The more gpus I ...
1
vote
0answers
38 views

What are these Errors / Warnings when running simple command line script

I followed the official documentation to run a simple script: import bpy bpy.data.objects["Cube"].data.vertices[0].co.x += 1.0 by command ...
1
vote
0answers
282 views

How to pass parameter(s) to a Python script via the command line and also render in the same command?

I am trying to render a scene where I run a script with given parameters and then render the animation by passing parameters to the blender executable through the command line. Given the following ...
1
vote
0answers
44 views

Why does my render look different when submitted from command line to a Linux cluster?

If I render this scene using Cycles from my personal computer I get the scene on the left and if I run it from the command line on my university supercomputer, I get the image on the right. Both ...
1
vote
0answers
101 views

Is it possible to use loop statement via --python-expr in command line?

I have several scenes in a blend file. Sometimes I want to render all scenes with lower resolution, or mute some of the input nodes in the compositor of all the scenes. I can accomplish the above ...
1
vote
1answer
95 views

Blender system console character encoding

I'm using Blender on Korean Windows 10. While studying Blender Python I opened the System Console to check for error messages. By the way, some characters are displayed correctly in English and others ...
1
vote
0answers
215 views

How to execute python inside blend file from command line

I'll explain the numbering of what I did. I created a text file called lowRes inside the blend file as shown in the attached image. And I noticed that when I click Run Script in Blender run with ...
1
vote
0answers
122 views

Setting up headless rendering on server

Recently I got access to my college server and I want to set up headless rendering for my blender projects in the server. The issue is, they have given me a docker image with Ubuntu 19.10. I tried ...
1
vote
0answers
87 views

Rendering from command line script that allows specifying which camera to use / render with

I have a command line script below that can render an image of frame 193 of a blend file using the default camera below, but how can I specify another camera view (specify which camera to use / render ...
1
vote
0answers
40 views

How to render only audio from command line?

Yes, how do we render ONLY audio from command line? I know there is an option to do it from the GUI, but I don't want that. Don't be too critical, as I'm still a newbie. Thanks.
1
vote
0answers
45 views

Missing geometry and UVs when batch rendering through command line and Deadline

I'm trying to render a scene composed of alembics(cached geometry and transformations) on my farm using deadline, which should itself be using command line rendering anyways. When I try to command ...
1
vote
0answers
74 views

How to minify/simple display with python script execution

Is there a solution to execute python script in command line and display only viewport or render view. No splash screen, no menu, no outliner, etc. Actualy, the command line display everything : <...
1
vote
0answers
77 views

Blender GUI freezes when running interactive python console

When starting blender from the command line with: blender.exe --python-console The blender GUI seems freezed and says "Keine Rückmeldug" - no response. I am ...
1
vote
1answer
288 views

Render Function - rename filename

So close yet so far (I think) A function within an addon am creating is suppose to rename the file ouput using tokens. This is based on the Oscurart tools. The projects consists of markers on every ...
1
vote
0answers
170 views

How do I render a render view layer using the command line in Blender 2.8

It is possible to render using a specific scene but I did not see how to select only a view layer. The only solution I found is by unchecking the "Use for Rendering" button for each undesired layers, ...
1
vote
1answer
126 views

How to change object geometry over time in the same model from the command line?

I'd like to write a python script can change (not delete and re-create) the geometry of an object AFTER the initial object has already been loaded by blender. To clarify, here are the 3 basic steps: ...
1
vote
0answers
201 views

Reduce text output of command-line render

When executing something like blender -b project.blend -a a line for each object syncing objectxy1, ...
1
vote
0answers
33 views

Dynamic sys.stdout memory location, constantly changing the address

I am going to use logging.StreamHandler in Blender console. But, sys.stdout is constantly changing in the memory. In Windows Console: In Blender Console: Because of that, I cannot use logging....
1
vote
0answers
161 views

Headless rendering on remote Ubuntu server results in blank render

If I try and render this .blend on my Windows machine, using this command, I get the correct output: .\blender.exe -b testrender.blend -f 0 -F PNG -o frame_0.png ...
1
vote
0answers
380 views

How to run Blender through VNC on Ubuntu?

I am using tightVNC to connect to an Ubuntu 18.04 server. When I try to start blender, I get the following error in the command line: ...
1
vote
0answers
51 views

Render from Comand line

I am rendering a scene on some private HPC, they gave me putty to run render with command line: $ srun -N1 -pgpu blender -b test_gpu.blend -o //_###.png -P cuda.py -a everything works fine, but my ...