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
5
votes
2answers
128 views

Change material settings of multiple materials

I have an object with hundreds of materials, and I want to change the blend mode on all of them to opaque. I do not want to go through them individually, so I was wondering if there was a way through ...
0
votes
0answers
14 views

Offline rendering issues with geometry nodes

I created an animation on geometry nodes which works fine on my local computer but when trying to command line render on another server like colab or paperspace, the animation part doesn't work right. ...
0
votes
0answers
13 views

Cycles EXR compression from command line in Blender 3.0.0

Is it possible to set the compression to DWAA in a EXR file from command line without using a python script? ...
0
votes
0answers
37 views

Updated! Using only Python script, how can I make sure Unwrap places faces always in the same position?

I have a script that opens a simple model (cube with a deleted back face): It's then scaled, unwrapped and assigned a texture before exporting. The only issue I haven't been able to get over is that ...
2
votes
2answers
47 views

What does "Saving: time" stand for in the the finished command line render?

Using blender from the command line e.g. blender -b I see Time: 02:11.63 (Saving: 00:00.52)at the finished output. What for is ...
1
vote
0answers
25 views

How can I tell blender to quit from the command line once it finishes a render?

I'm using Blender 3.0 in Windows 10. I'm writing a batch file to invoke Blender to render individual .blend files in series (ie render shot 1, then shot 2, etc) in the background. The problem is that ...
0
votes
0answers
33 views

Headless (background) blender not starting with many python errors

The environment: ...
0
votes
1answer
12 views

Changing a frame range in blender file via command line

For farm rendering, I need to copy my blend file multiple times and change the frame FROM and TO in each of them via script. I try to create the following python file (with 123 as example) MyFile.py: <...
0
votes
1answer
51 views

Why won't this terminal window close itself?

I'm running Windows 11 and I use Windows Terminal as my default terminal app. This is a very minor issue, but whenever I launch Blender the terminal window remains open. This can be a problem as ...
0
votes
1answer
14 views

Characters are detached from skeleton when command line rendering in blender 3.0

I've just upgraded to 3.0 and am having issues with command line rendering. When I render using command line, my characters are no longer attached to their skeletons as you can see below. When I ...
0
votes
0answers
26 views

Blender CLI Rendering not behaving as expected

I’m having some issues with Command Line Rendering. I’m currently using Blender 2.93.6 ...
0
votes
1answer
24 views

How do I pack baked data to render in the command line

Rendering without fire when executed from command prompt In this question, the answer given states that the baked files should be included when rendering using the command line. However, they did not ...
0
votes
0answers
24 views

Open and edit Blender file without any viewport or depsgraph updates?

I just accidentally saved a file in a state that causes Blender to use up several dozen more gigabytes of RAM than I have when I try to open it again. I know exactly what went wrong. If I had BPY ...
3
votes
0answers
35 views

How can I render on SSH Linux machine?

I downloaded linux version from this official page and extracted files onto as folder. Created a very basic default cube file and uploaded it to via WinSCP as well. When I try to execute this line. <...
1
vote
2answers
118 views

Blender command line cli : create a new .blend from a normal 3d model like .obj, .fbx..... [[ FROM .OBJ -->> TO .BLEND ]] without a desktop

CONTEXT : I'm building a website where users can upload many files. [WEB SERVER, no gpu] WHAT I WANT : that an uploaded .obj => render an image preview as a .png WHY : to manage a library of ...
6
votes
1answer
83 views

Measure or log eevee compile times?

I am trying to troubleshoot some compile times on a complex setup. In order to do this properly, I need to be able to check how long it takes Eevee to compile in various different configurations (you ...
2
votes
0answers
73 views

Blender free up memory using command line

Note: This is my first post, so if my title is not appropriate, please let me know what an alternative could be for more relevant answers :) I am rendering a scene for someone(so no way for me to ...
3
votes
1answer
187 views

python script console command, poll() failed - context is incorrect

Trying this very basic simple straight forward script, invoked by console command $ blender --python basic_script.py ...
0
votes
1answer
50 views

Reload text block from disk with python

Backstory: I have a couple of .blend files that share a single python plugin that provides a custom operator that renders them. I also have a wrapper script that I run blender with that calls that ...
0
votes
0answers
8 views

Show 'Bake' physics button in custom UI

How can the physics bake and free bake be called from console? bpy.ops.ptcache.bake(bake=True) bpy.ops.ptcache.free_bake() both throw errors. Additionally I want ...
0
votes
0answers
49 views

Python script with handler in background mode

So I have been trusted with working on the code of a former colleague, who left the company. She made a .blend-file in which some objects get dropped onto a table with an animation and afterwards are ...
1
vote
1answer
40 views

Rendering with a different texture filename using texture node without manually changing filename each time

Rendering with a different texture filename using the texture node without manually changing the filename each time. I have several different texture files that i want to render out using the same ...
0
votes
1answer
55 views

Baking particles from command line

I am trying to bake particle systems from the command line. I saw this: Baking smoke on headless machine and I have been playing around with it, but I can't seem to get it to work for particles. I'm ...
1
vote
1answer
119 views

Run Blender from CLI with GUI

Hello dear blender community, I am trying to automate a few tasks in Blender, and trigger their execution from the command line like this: ...
0
votes
1answer
551 views

Is there no way of rendering headless using EEVEE?

I am using a computer without good graphics card and a remote LINUX server with a K40 Tesla card. I am operating on a remote server by MobaX to get the rendering working. For now I'm using Cycles to ...
0
votes
0answers
130 views

Why is area.type None when starting Blender + script from CMD?

coders! I get an unnerving error im my python script when running blender 2.91 (same for 2.92) from the command-line under windows 10 and executing a python script on the blend-file with the ...
0
votes
1answer
71 views

Issues running Blender from the command line despite setting up environmental variables

I have become interested in running Blender from the command line (Windows) to make my workflow more efficient. I also want to be able to run it directly without pointing Windows to my directory each ...
0
votes
0answers
33 views

How to get the angle of an object at each frame

In an animation of an object how will I get the real time angle value for an object at each frame. Is there any command for that just like for the location ...
1
vote
0answers
41 views

Initialize totally empty background instance of Blender

I'm using Blender python api as one part of a larger pipeline, to convert between Collada versions (1.5 --> 1.4). The simple script is this: ...
0
votes
0answers
45 views

Why isn't my GPU rendering anything in blender (cycles)?

I have a non-compatible GPU that I want to use in blender. I realize that you can't use non-compatible GPUs, but I saw this video where someone uses the windows command prompt to enable it. To my ...
2
votes
1answer
63 views

How to change to pose-mode when running a Python script

How can I change to pose-mode with a Python script while the whole program is running in the background? When I use bpy.ops.object.posemode_toggle(), it just shows <...
0
votes
0answers
180 views

Error when running Blender headless on a Ubuntu server without GNOME installed?

I am trying to deploy Blender on a Linux server running Ubuntu 20.04. This is a server without a display device; and therefore GNOME is not installed. I get the following error when running Blender ...
1
vote
0answers
58 views

Composite nodes being ignored when rendering from command line

I am trying to render an animation using cycles from the command line but my composite nodes are being ignored. The images look ok, just the denoising and glare are missing. In blender on my other ...
1
vote
1answer
39 views

problem during script execution

hi I wrote a simple script to take screenshots, but the frames are not updating in the screenshots i.e all screenshots are the same image (a single frame). I introduced a time delay in case blender ...
0
votes
0answers
98 views

os.system and subprocess not working in blender

i am not able to run an external script from blender python console using os.system or subprocess.run While if i use another ...
1
vote
1answer
32 views

Is this Normal when starting Blender?

Whenever I start Blender, this console window keeps popping up! I'm not that techy with devices, is there anything I should do to stop it?
0
votes
0answers
26 views

Running commandline blender in background returns bke.fcurve error

sudo prime-run blender --background x.blend ...
0
votes
0answers
109 views

Renders crashing using the Command-line interface ("BKE_animsys_eval_driver: invalid driver")

I'm trying to use the command line tool to render some parts of an (Eevee) scene. I need to slice it a lot so it would be awesome to have the terminal working for this; as I have already done for past ...
0
votes
0answers
45 views

Using blender API in python outisde Blender

I'm currently trying to create a python script that allows me to render multiple .blend files with multiple rendering options at once and in the non-GUI mode. So far I have the python script to run ...
0
votes
0answers
141 views

Problem running blender script from command line

I am trying to run a python script from command line as ./blender -P my_script.py, inside the script I have the following loop: ...
1
vote
0answers
72 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 ...
0
votes
0answers
7 views

Can Blender render a Compositor graph on an input images supplied via command line

Is there an existing workflow in Blender that can facilitate changing the input images on a Compositor graph and render the result from the command line or do I have to code my own solution similar to ...
2
votes
0answers
53 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 <...
0
votes
0answers
278 views

DAZ import (diffeomorphic addon), baking pose animations? -- doesn't render in batch cmd line

If I import a DAZ file using the diffeomorphic addon, I am able to use the "Expressions" and set keys on frames to animate a facial expression. If I Render Animation via the interface (ctl-...
1
vote
0answers
83 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 ...
3
votes
1answer
202 views

Invalid drivers aren't shown and can't be deleted

I have following problem. With the minecraft rig works everything fine (thomas rig) but when I open the console there are displayed invalid drivers of already deleted objects. How can I delete them? ...
1
vote
0answers
58 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 ...
2
votes
2answers
53 views

Script calculated multiple times on frame

I have a simple script like this: ...
0
votes
0answers
65 views

Run Blender Import-Addon from Python

I try too call a Import-Function from Command-Line or Python Script. (Addon: https://github.com/neverhood311/Stop-motion-OBJ) However, with ...
2
votes
0answers
15 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 ...

1
2 3 4 5
8