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
1 vote
1 answer
3k 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 ...
0 votes
1 answer
24 views

How to override context area using script when running Blender using Command Line

I use this command for running (open) Blender blender --factory-startup --python path_to_script script.py In script.py i tried ...
1 vote
1 answer
569 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
0 answers
12 views

Blender is crashing how do I know what the problem is? [duplicate]

Blender is crashing how do I know what the problem is? Is there a error log file somewhere?
0 votes
1 answer
1k views

What's the fastest method to output grease pencil line art images?

I'm using line art modifiers to generate stylized outlines for some meshes. I'd like to be able to do this process with some improvements: Simplicity: The output images I want are just the line art ...
0 votes
0 answers
17 views

Installing blender from file

I'm new to Ubuntu, and I want to install blender on Linux from *.tar.xz file I have downloaded from the blender.org, but I just can't make it work. If I install blender from the Repository, it works ...
1 vote
1 answer
30 views

how to get 2d bounding box(x_min,x_max,y_min,y_max values) from IndexOB output of RenderLayer node in Blender compositor?

I'm doing synthetic data generation for AI training. I need to render lots of images a scene, and giving the 2d bounding box value of each object in the image(assuming that all object in the scene ...
0 votes
1 answer
692 views

Is there some way I can update the viewer node during background rendering to output the correct results?

I'm rendering several images from one blender file and I would like to manipulate the pixels of the render output directly. I implemented the workaround from https://blender.stackexchange.com/a/71264/...
0 votes
1 answer
13 views

Blender console when clicking on UI elements in python console

I am working on a blender addon. After working with the addon enabled in the blender window. I start seeing the following bug in the console. ...
0 votes
1 answer
458 views

How do I use a cached/baked smoke simulation with command line rendering?

Under cache in the physics tab on the smoke domain, I have Use Library Path and External checked and a ...
5 votes
2 answers
2k views

How do I run a script on multiple .blend files from the command line?

Problem: I have a bunch of .blend files that I want to make the same changes to as quickly as possible. Solution: Run a python script on each file from the command line? Here's the python script I'm ...
0 votes
0 answers
11 views

How to free a fluid bake on the commandline?

I want to rerun the fluid bake. I'm using the code at https://blender.stackexchange.com/a/311453/158745 to bake the fluid, which seems to work. I try a variation on this code, to free the fluid: ...
0 votes
1 answer
14 views

How to bake rigidbody simulation from commandline?

How to bake rigidbody simulation from commandline? I want to run simulation from cloud services, which are head-less. So I want to run from command-line. I searched around for a while, and tried ...
2 votes
1 answer
627 views

Viewport Render Animation - From the Command Line

Inside of the 3D Viewport, there is an option available to perform a 'Viewport Render Animation'. My understanding of this feature is that it performs a full render, using viewport settings across ...
1 vote
1 answer
257 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: ...
0 votes
0 answers
337 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
1 answer
316 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
1 answer
380 views

Blender player lauched by command line

I am looking for a list of arguments that is possible to give to blenderplayer by command line on linux. I need to open a blender file with blenderplayer in a specific scene. I cannot find anywhere!
0 votes
0 answers
14 views

Exception_Access_Violation --- command line render always quits

Recently i had a new CPU put into my system, i9 from i7. Since then i've been getting this error always when i do command line renders.. it usually goes for a while then stops. Anyone have a clue what ...
0 votes
1 answer
117 views

Blender Quits while trying to render in Command Line

I Am getting an Error when i'm trying to render in CMDLine 2023-12-18 21:12:13,417 - app - WARNING - REGISTRATION FAILED: MODULE NOT FOUND (ui_registration.py:57) i ...
2 votes
1 answer
281 views

Render from command line different (and bad) compared to render from GUI

I'm on blender 3.2.2 and I'd like to use SheepIt and/or Google Colab to support my render. The scene uses Cycles @ 2048 samples, no de-noise, output PNG without compression. The main features of the ...
8 votes
2 answers
7k 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 ...
1 vote
1 answer
302 views

Keymap warnings when using the "Industry Compatible" keymap on Blender 4.0

I'm using the Industry Compatible keymap. When I open the console, it's getting flushed with this warning: ...
4 votes
2 answers
1k 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? ...
0 votes
1 answer
63 views

Console Window not displaying Japanese characters

I can't seem to get the Console Window to display these Japanese characters. I can copy/paste from the blender console window into Notepad and it will display the characters properly, but the console ...
1 vote
1 answer
35 views

Blender doesn't recognize '-P' or '--python' command line argument when called with subprocess.run()

I'm trying to run a headless Blender from inside a Python program. I intend to have Blender run another Python program after it opens a file. I can make this work from the command line as such ...
1 vote
1 answer
314 views

How can I export 2 file formats using command line rendering WITHOUT re-rendering?

When I render via Blender, after rendering it's very easy for me to choose a different format and save it as that. Therefore I can get both Open EXR and PNG. However, when rendering an animation, say ...
0 votes
0 answers
66 views

Problem: Rendering from command line longer than rendering from Blender GUI?

Can someone please explain why command line render took almost twice as longer when it was supposed to be faster then a render via GUI? I am confused, everyone's talking about how command render is ...
1 vote
0 answers
29 views

Multi files rendering with windows script command dont work

I have a recent problem that prevents me from using windows scripts for render queue on my desktop workstation. The commands work, but the only problem is that it doesn't chain the next command to ...
2 votes
2 answers
1k views

How to execute a method from the console

I'm just getting started with bpy and I wish to know how can I execute the addon below from the console. ...
4 votes
1 answer
105 views

Can Blender addons execute Shell commands on Linux?

I'd make an addon that would use several external command line programs to process output images. Is this possible?
0 votes
0 answers
112 views

Adding image sequence to sequencer + render as video in commandline not working properly. (Only shows first frame)

In the code below I am adding an image sequence(multiple images) and then render it as a video. Scenario 1 - script in Blender text editor: When I run this code in the text editor in Blender it works ...
0 votes
1 answer
81 views

Create bmesh & save into OBJ format without opening blender

I want to create a mesh outside of blender, using bmesh module, and save it into an OBJ or whatever, completely through a python script. ...
1 vote
0 answers
1k views

'Toggle System Console' is not in the window tab

v2.82a mac osx high sierra. Anyway to turn this on elsewhere? I've tried the search menu and check earlier versions. Thanks
0 votes
1 answer
22 views

Python: Rotation not applying to child object

I am trying to pose a hand using values read from an XML file. All the joints are parented to the previous joint and finally the fingers to the hand. Í am using the following code: ...
0 votes
1 answer
43 views

Why drivers shows error when running in command line?

My blender file contains drivers and when I run Blender using the command line it gives this error ...
-2 votes
1 answer
158 views

The system command line prompts for a WARN, how do I fix it? [closed]

...
0 votes
0 answers
178 views

Can I load a blend file and execute a script with the blend file with Blender in the background

I would like Blender to perform a task in the background. In order to do the task, I need to have a blend file loaded and run a script (or an operator). I've tried the following batch file (with the ...
0 votes
0 answers
85 views

Is there a documentation of Blender's installer's command line arguments?

I only found documentation of CLI for Blender itself. What about the installer? I can't find any sort of info anywhere, I also asked few times in the support chat with no reply. Why do I need it? Main ...
0 votes
1 answer
215 views

Can i bake a texture in headless mode? 2.80

I'm tring to bake an EMIT texture. The script works inside blender, but when launched in headless mode (-b -p) gives me an ...
0 votes
0 answers
516 views

How to get recent Blender version to work on Linux?

How to get latest or recent Blender (headless okay) to work on Linux ARM64? I am using Ubuntu 22.04, but I can choose from Oracle Linux (based on Red Hat), Ubuntu 22.04, AlmaLinux, or Rocky Linux, or ...
1 vote
0 answers
49 views

Taming big bad Blender

How big is Blender lite and headless (uncompressed) on Linux? Blender 3.5.1 uncompressed is roughly 1250 MB. I can delete directories like addons, Eevee engine, built-in world shaders/EXRs, and still ...
0 votes
1 answer
266 views

How to run script in a new blender subprocess

In my code I am trying to open a new blender subprocess with this code I am trying to do some action like this how to run a give code = ''' import bpy''' like in code below, in that new blender ...
0 votes
0 answers
139 views

Error During Running Python file in a Blender Subprocess from blender

I am working on this code from the post: How can I run blender from command line or a python script without opening a GUI? I am trying to open a blend file and have a script run in that blend file to ...
1 vote
0 answers
47 views

ID user decrement error raised in the console but has no actual effect on Blender. What's the cause of that?

By displaying the property I am getting this error by editing the property or simple scrolling around in the node editor. So maybe something with the layout or UI? ERROR (bke.lib_id): C:\Users\...
0 votes
0 answers
14 views

Loading VDB files in Blender using command line

My blender scene has a Vdb volume object, and I am rendering it in cycles. I wish to perform the rendering using command line (in hpc). I am looking for a command to specify vdb files in command line ...
4 votes
2 answers
3k views

Why doesn't the Blender console go away when opening the program?

I started having an issue a few days ago with Blender. When starting up the program it runs the console and it never goes away, it stays like the image. I can still use the program, but i don't know ...
2 votes
1 answer
207 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
1 answer
35 views

Passing commands to blender with GUI open

is there a way to pass python commands to blender with the GUI visible? I have a simulator made in Matlab where measurements can be changed. When one of these measurements change I want the script to ...
0 votes
1 answer
419 views

How to render an animation through command prompt in Cycles?

I have been trying to render a 180 frames animation from command prompt with blender -b file.blend -a but instead of giving me an MP4 file it rendered me each frame ...

1
2 3 4 5
9