Questions tagged [command-line]
Questions pertaining to using Blender from the command line or using Blender's console window.
445 questions
0
votes
0
answers
22
views
Blender 5.0 Frame number in CLI output?
A little background that's not super important:
I have a python program I wrote months ago I use to do very large renders in blender. It does a few things by parsing the console output of blender. One ...
0
votes
1
answer
27
views
How to automate setting multiple machines to use OptiX Cycles Render Devices in User Preferences?
My goal is to be able to do this without manually opening Blender.
I'm managing a render farm and I've noticed that some machines render faster. I found out it is because they have GPUs enabled with ...
1
vote
1
answer
59
views
What are the benefits of command-line rendering? [closed]
I observe that it has much more stability compared to rendering via UI.
First encountered this when setting up Flip Fluids, and wondered why it is used.
Currently, I don't experience the render ...
0
votes
0
answers
33
views
can you bake geometry nodes from a script or command line
I have a geometry node setup with a long running simulation, that takes a good hour to bake. I would love to set up my workflow so that I can automate the process of baking it, then setting off the ...
0
votes
1
answer
53
views
box_select selects nothing of the cube
When I run main.py from CMD to run Blender and cube.py, select_box failed to select anything. If I copy cube.py to Blender's Text Editor and run it, it selects the visible parts of the cube. Is there ...
0
votes
0
answers
14
views
random line that wont go away [duplicate]
hi does anyone know how to get rid of this random line, like when i move around it moves with the screen and idk how to delete it
0
votes
2
answers
421
views
Install and Uninstall from windows command prompt silently
I would like to install and uninstall Blender from the Windows Command Prompt without user interaction, as per my corporate software installation policy. How can I achieve this?
0
votes
0
answers
156
views
Blender Auto Rig Pro skinned model with animation - fbx invalid Bind Pose error, gltf root bone renamed to root_ProxyTrueRootJoint
I have a problem with exporting my model to Unreal Engine. I am using Auto Rig Pro and made a rig to match UE5 Manny. I need the rig to have its root bone called root. I tried to call the main rig and ...
0
votes
1
answer
107
views
Command Line Rendering a whole folder of .blend files without absolute paths
I have been experimenting with the background rendering of multiple files in Blender using the command line (Windows) and I have two questions:
Is there a way to tell the command line to render ALL ...
0
votes
1
answer
123
views
Issues Setting Cycles Tile Size in a Blender 4.3.2 Command Line Rendering Script
I am using Blender 4.3.2 and writing a Python script to render animations via command-line using bpy. Below is the command I use to execute the script:
...
1
vote
0
answers
121
views
How to output bpy-based log to console log
Is there anyway to output all info panel log to console log.
I tried this command:
/Applications/Blender.app/Contents/MacOS/Blender >> log.txt
However, the logs starting with bpy appear in the ...
1
vote
1
answer
37
views
Selecting vertices with Python only works sometimes
When I use Blender Python to loop through all vertices to select only vertices with a Z coordinate <= 0, the script seems to randomly do one of the following:
Select all vertices
Select the ...
0
votes
0
answers
212
views
Blender 4.3.0 Linux CLI, symbol lookup error: blender: undefined symbol: vkGetDeviceBufferMemoryRequirements
I am seeing this error when running blender --version command:
...
0
votes
1
answer
67
views
Changing "Target to" Via Command Line
In Windows, I am using the command line (batch file) to select a camera and to render my Blender scene. This is done by using this snippet:
...
0
votes
1
answer
48
views
Command line render use scene name
Hello :) is there any expression for naming the render with the scene name ? something like that :
...
3
votes
1
answer
374
views
KeyError: 'bpy_prop_collection[key]: key "View Layer" not found' when launching blender with external script
When I execute the following code within Blender, it works well regardless of whether it's version 3.x or 4.x. However, if I try to use it by launching Blender with a specific argument to open a ...
0
votes
1
answer
64
views
K-Cycles won't render more than one blend file using the command prompt
I'm trying to render 2 different blend files in K-Cyles, frame 4 from each. This is the command I'm using:
...
1
vote
2
answers
232
views
Use 3D view context in python console
Very often I only want to execute a line of code which can only be executed in the 3D view, for example this:
...
1
vote
1
answer
86
views
Change the context.area.type in Headless mode
I've want to run a script Headless and need to set the bpy.context.area.type but it's confusing. Some sources suggest that setting ...
1
vote
1
answer
31
views
Automating F-Curve changes in Blender/Python to Match Song
I have a visualizer in Blender that can visualize songs. While I can change the songs using a script, I'm struggling to adjust the visualizer's f-curves to match the dynamics of the new songs. This ...
0
votes
1
answer
166
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 ...
0
votes
1
answer
212
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
120
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
50
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
93
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 ...
0
votes
1
answer
387
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 ...
0
votes
1
answer
285
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
659
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:
...
1
vote
1
answer
101
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
0
answers
41
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 ...
4
votes
1
answer
237
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
218
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
67
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
...
-3
votes
1
answer
305
views
1
vote
1
answer
465
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
234
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
36
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
0
answers
1k
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
56
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 ...
1
vote
1
answer
741
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
240
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
101
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\...
1
vote
1
answer
67
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
0
answers
137
views
How change scale text
in command bpy.ops.object.text_add scale not worked #scale=(0.005, 0.005, 0.005)
...
0
votes
1
answer
168
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
votes
2
answers
103
views
how to set CommandLine Blender default version?
I type blender in the command line tools, then 3.3 start, but i want to use blender 3.4 actually, so how can i specify the start blender version?
1
vote
1
answer
104
views
The results of python scripts and python console are different?
I'm running a script to create a bone and rotate it by setting rotation_euler of the PoseBone. But I got wrong results from the scripts.
My scripts code:
...
1
vote
0
answers
97
views
Blender only takes first value from Arduino and sensors
I am currently working on a 3D model of an arm. Therefore I get data from 2 sensors with a Arduino and in my Arduino IDE Serial Monitor the data changes as I move the sensor. However, in Blender I ...
4
votes
0
answers
88
views
Specify the order of execution for a Blender plugin and an external script?
I'm trying to use an external script at the same time with a Blender plugin but I am having a few issues because I believe the script is being computed/processed before the plugin and for this ...
0
votes
1
answer
674
views
blender cannot be started from command line / wrong path in environment variables?
I am trying to run blender from the command line on windows and followed this instruction Command line. I have a problem setting up the path in System properties/environment Variables. I actually ...