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
0 votes
1 answer
33 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 ...
wikid24's user avatar
0 votes
0 answers
21 views

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

I'm using the Industry Compatible keymap. When I open the console, it's getting flushed with this warning: ...
clawjelly's user avatar
  • 105
1 vote
1 answer
17 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 ...
CDMM's user avatar
  • 23
0 votes
0 answers
38 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 ...
Vuk's user avatar
  • 11
1 vote
0 answers
27 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 ...
Pomess's user avatar
  • 431
4 votes
1 answer
63 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?
reign's user avatar
  • 309
0 votes
0 answers
60 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 ...
muckyu's user avatar
  • 127
0 votes
1 answer
32 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 ...
Karan's user avatar
  • 1,879
-2 votes
1 answer
88 views

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

...
lee blues's user avatar
  • 121
0 votes
0 answers
107 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 ...
SJK's user avatar
  • 117
0 votes
0 answers
41 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 ...
Destroy666's user avatar
0 votes
1 answer
16 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: ...
Felix Küper's user avatar
0 votes
0 answers
325 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 ...
wjwrpoyob's user avatar
  • 123
1 vote
0 answers
47 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 ...
chhdgxhuc's user avatar
0 votes
1 answer
112 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 ...
NamanDeep's user avatar
  • 461
0 votes
0 answers
83 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 ...
NamanDeep's user avatar
  • 461
1 vote
0 answers
32 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\...
Erasers45-Studios's user avatar
0 votes
0 answers
11 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 ...
Nitesh Bhatia's user avatar
1 vote
1 answer
27 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 ...
Robert's user avatar
  • 11
0 votes
0 answers
45 views

How change scale text

in command bpy.ops.object.text_add scale not worked #scale=(0.005, 0.005, 0.005) ...
Andriu Andriu's user avatar
0 votes
1 answer
59 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. ...
MohammadHossein Jamshidi's user avatar
0 votes
0 answers
21 views

Run some blender action from command line

I'd like to scale an animation in bunch of files. How Can I run the blender from Windows command line to apply animation scale ...
Ringger81's user avatar
  • 109
0 votes
0 answers
104 views

System consol keep showing the warning: empty keymap 'Grease Pencil'

My consol is going crazy: Can I somehow fix this? =D First, I'm not sure if this warning is related to my own key configuration which I keep updating occasionally. I could have messed up with some ...
3DBear's user avatar
  • 713
-1 votes
2 answers
49 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?
willFederer's user avatar
0 votes
0 answers
390 views

Render in Console

I'm in trouble I render on a computing platform, where there is no graphical interface, and I have no permission to install software too. I use the portable blender to render, and it can start ...
Glowing Brick's user avatar
1 vote
1 answer
61 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: ...
Nutcracker's user avatar
1 vote
0 answers
62 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 ...
Geblendet's user avatar
3 votes
0 answers
66 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 ...
Johnny R.'s user avatar
0 votes
1 answer
127 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 ...
user123511's user avatar
  • 1,149
0 votes
1 answer
36 views

How can I tell Blender not to quit after finishing my script

So after my Python-Blender script finishes running from the command line, the command line window immediately closes..not giving me a chance to see any feedback, errors, etc. Can I make it not close? ...
AO A0's user avatar
  • 1
0 votes
2 answers
59 views

Restarting Blender with a Script

I am trying to create an operator that restarts Blender. This script has worked for me in the past: ...
Dr. Pontchartrain's user avatar
0 votes
0 answers
30 views

Running Blender Script via Console - Error

I wrote a Blender Script to create me images and Text elements (via Python Script) in a Timeline. All Works! But via Console it doesn't Work. I know, it has something to do with the GUI and the ...
dazzafact's user avatar
  • 111
2 votes
0 answers
89 views

How can I iterate and print all elements of a Menu (not objects or elements on scene)?

I'm having this little problem that is already costing me more than 24h of research hahaha. I didn't find the answer in any forum and I can't solve it myself in blender. My question is quite simple. I ...
Charles - charbavito - Barros's user avatar
1 vote
0 answers
83 views

Blender CLI does not work when blender is installed through Windows Store

In order to have a blender version manager I installed blender through the Windows store. When you install through the windows store it seems that they store the file in ...
Joel's user avatar
  • 11
1 vote
0 answers
116 views

How to disable all addons while using blender with --background command line option?

I found the commandline parameter --addons. But when I leave the parameter value empty it does not have any effect. Blender still loads all addons. Is it possible ...
Stephan Ahlf's user avatar
0 votes
0 answers
435 views

Is command line rendering faster than normal rendering?

blender users! https://docs.blender.org/manual/en/latest/advanced/command_line/render.html This manual write-on command line rendering is faster than regular rendering. I tried it, but the result was ...
Yuri Sato's user avatar
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 ...
Juan Cruz Marino's user avatar
2 votes
1 answer
341 views

Where is the output of the text script which is run at the Python console (not run on the text editor)

I have scripts loaded in the text editor. They are made internal, they are registered and saved under scripts/startup/myAddOns. They run OK when I run directly on ...
user2800464's user avatar
0 votes
1 answer
365 views

How to run python script with multiple files from console?

I want to run a python script in Blender via the console, but I split the script into multiple files. The folder consists of two files, "main.py" and "poser.py". I call the main ...
Philipp Köhler's user avatar
0 votes
1 answer
133 views

How to open and replace image texture via command line

This is how i could replace the Base Color if it was just a default color option : ...
smbl's user avatar
  • 111
1 vote
0 answers
82 views

How to do parametrized rendering (replacing text/image inputs dynamically before render)

I am currently generating a dynamic blender file with 2 text and 1 image objects that should be replaced with custom text/image inputs. I currently got the CLI command and placement of text/image ...
smbl's user avatar
  • 111
1 vote
0 answers
36 views

Programmatically retrieve available file extension/format options

So as per the documentation, you can override the file extension/type setting for the Blender CLI: https://docs.blender.org/manual/en/latest/advanced/command_line/arguments.html#format-options Set ...
S. Magnusson's user avatar
  • 1,483
1 vote
1 answer
262 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 ...
Hmm's user avatar
  • 739
1 vote
0 answers
268 views

writing "print" statements in Blender console

I know and use the great script from Codemanx from which you can start python script in the Blender-console and you would see print statements in the Blender-console. Unfortunately it looks like this ...
Chris's user avatar
  • 54.4k
1 vote
2 answers
223 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 ...
Kiamur's user avatar
  • 73
2 votes
1 answer
331 views

Keep Blender open after running script from command line for higher rendering throughput

I am using Blender for on-the-fly data generation for a machine learning task. The data creation process should be fast, and is conditioned on some parameter values given by my model, e.g., an RGB ...
i2n's user avatar
  • 55
1 vote
0 answers
93 views

What's the proper way to use mesh operators in python when running blender from the command line?

I need to do a loop cut on a mesh I've generated, so I found some code that works when I run Blender normally then the script. The catch is, I need it to work when I launch Blender from the command ...
ioflow's user avatar
  • 11
1 vote
0 answers
390 views

How to get return values when I run blender script from command line?

I've got these project structure: data.blend: Contains object and used by script.py script.py: Does some calculation with data.blend and return some_value ...
Petr's user avatar
  • 21
1 vote
1 answer
157 views

Blender doesn't recognize --python as a command line argument

I'm running into a weird problem where running blender from the command line will run with the --background flag, but it's not recognizing the --python flag. Any thoughts? This is the output of my ...
Anson Savage's user avatar
  • 3,342
3 votes
0 answers
10 views

Use start up command line to change file location [duplicate]

I am currenlty using a .bat file to start Blender, with this set PYTHONPATH= "%~dp0\blender" So that I can use the local Python folder. Is there a way ...
Patrick Dyer's user avatar

1
2 3 4 5
9