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
15 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 ...
user avatar
  • 21
2 votes
1 answer
32 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 ...
user avatar
  • 55
1 vote
0 answers
22 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 ...
user avatar
  • 11
0 votes
0 answers
19 views

Bat. file rendering samples text only

I am wondering how to turn off most of the notifications in the command line when rendering via a .bat file. I just need the number of samples and the time, as shown in the picture. I tried the ...
user avatar
1 vote
0 answers
24 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 ...
user avatar
  • 11
1 vote
1 answer
40 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 ...
user avatar
  • 3,140
0 votes
0 answers
30 views

Toggle system console not opening

I'm using Blender for a year with Python. In recent times, I can't check the script result in system console as it is not opening. If I select the "Toggle system console" from the Windows ...
user avatar
3 votes
0 answers
9 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 ...
user avatar
1 vote
1 answer
24 views

Command line argument not recognized

Complete error code: ...
user avatar
2 votes
0 answers
16 views

How to save all render views when rendering from command line

I have a quite big file with which I have troubles working through the UI. So I have seen it is possible to launch rendering from command line. My scene is a single frame anyway with 5 render views (...
user avatar
0 votes
0 answers
31 views

Approaches for a quick STL turntable

I used Blender today to create a turntable animation for very simple model that I made and intend to 3D print. I've found that such animations are very effective for communicating the shape of a model ...
user avatar
  • 101
0 votes
1 answer
35 views

Launch System Console, Blender 3.0

Is there a way to launch the system console from inside Blender? I'm running a script that displays info in the console. I don't want the end-user to have to launch Blender from the command line. Best ...
user avatar
1 vote
1 answer
44 views

How to copy objects to another blend file

I have my main.blend file opened and running. There I have an operator, by the execution of which ...
user avatar
0 votes
0 answers
17 views

Using Addon via Command Line Rendering

Trying to render via command line and some add-ons don't get loaded and therefore do not render correctly. We have tried the additional --addons command line option to try and force an addon to be ...
user avatar
0 votes
1 answer
39 views

How to access source code in Mac OS?

I want to open Blender source code file for studying more details. There's a YT video for doing this, but it's about 2 years old and on my laptop, somewhat reason, Blender can't open the file then ...
user avatar
0 votes
0 answers
23 views

Command Line Render crashes

So far, rendering via the command prompt has worked without any issues. But since today the rendering process seems to stop working. I did not update anything. The only thing that's different now is ...
user avatar
  • 873
1 vote
1 answer
27 views

Specify which frame to render in blender terminal

I want to render a selected few frames in blender from terminal. From blender docs, it has options to set start and end frame, but no option to specify individual frame numbers. Is there a way to ...
user avatar
0 votes
1 answer
69 views

Running a python script with arguments in blender from terminal [duplicate]

I want to run a python script for a blend file within blender and I want to give the command from terminal. Blender has this option as follows: ...
user avatar
0 votes
1 answer
51 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 ...
user avatar
0 votes
0 answers
13 views

Running Blender as command-line has a long warm-up phase

I am using Blender 3.1 and want to export a .blend file. I am calling Blender through its CLI with the following command: Blender.exe --background --no-addons -E ...
user avatar
0 votes
0 answers
30 views

Connected to Ubuntu Server using ssh and trying to run python script in Blender

I have connected to a ubuntu server via ssh. Blender is installed. I move to that directory and run the following command. blender. -b -P /path to py file.py I get the following error Blender 2.82 (...
user avatar
0 votes
0 answers
26 views

Join FBX files into a video file

I’m headging into learning blender in order to have it on a cloud instance (Ubuntu - EC2) and using python or command line. Yet, i want to confirm if what am planning to do is doable. 1- I have 100 ...
user avatar
2 votes
1 answer
97 views

Why "bpy.data.window_managers["WinMan"].(null) = 'LOCAL'" dosen't work in console

As the picture showed, I changed the coordinate into LOCAL, then paste the command blender given to me into the console and run, but error...
user avatar
0 votes
0 answers
27 views

Blender Console stays open when exiting Blender

so whenever I close Blender, whether it be closing it when my work is saved or not, Blender itself will close with no issues, but the console window will open and stay open. The only way to close it ...
user avatar
0 votes
0 answers
35 views

Change resolution/samples via python when executing it via console

I can't change Cycles's render samples via python when executing it via console, I'm using this script and nothing changes at all: script.py: ...
user avatar
2 votes
1 answer
98 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 ...
user avatar
  • 21
0 votes
0 answers
21 views

How to set up clip editor to have movieclip set from command line

I've been trying to set up a scene for motion tracking entirely using a python script from command line. My code involves simple.blend file, which is a pre-saved blank scene with default motion ...
user avatar
  • 1
0 votes
1 answer
22 views

Issue trying to render animation through command line

Trying to render an animation for class through command line. I did the following: cd /Applications/Blender.app ...
user avatar
0 votes
1 answer
33 views

How to get single colours on voxel faces bpy to blender python api

I created a script within blender to voxelize an .obj model, uv map it, and reduce the colour of each voxel face to a singular tone. The script runs fine inside blender itself. When I switch over to ...
user avatar
2 votes
1 answer
186 views

Is there any way to change the number of rendering samples using command-line?

I am sending my .blends to another remote machine for rendering, and then I render them using command-line. Sometimes, the size of the .blends become as high as ...
user avatar
  • 606
0 votes
1 answer
28 views

Context problem when running script from command line

The script below will run fine when executed from within Blender 3 (text panel), but if I try to run it through the command line, it fails on line 25 with bad context (on rotation). Any hint will be ...
user avatar
2 votes
1 answer
38 views

Blender doesn't work on a server

I have a server with Linux installed on it. I also installed Blender with apt install blender and I want to start a render on it with ...
user avatar
  • 41
0 votes
0 answers
59 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. ...
user avatar
  • 1
0 votes
0 answers
24 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? ...
user avatar
0 votes
0 answers
52 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 ...
user avatar
  • 1
2 votes
2 answers
55 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 ...
user avatar
  • 926
1 vote
1 answer
137 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 ...
user avatar
0 votes
0 answers
118 views

Headless (background) blender not starting with many python errors

The environment: ...
user avatar
  • 926
0 votes
1 answer
44 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: <...
user avatar
1 vote
1 answer
495 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 ...
user avatar
  • 379
0 votes
1 answer
21 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 ...
user avatar
0 votes
0 answers
62 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
0 votes
0 answers
50 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 ...
user avatar
  • 1,360
3 votes
0 answers
92 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. <...
user avatar
1 vote
2 answers
430 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 ...
user avatar
  • 121
6 votes
1 answer
102 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 ...
user avatar
  • 6,177
2 votes
0 answers
140 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 ...
user avatar
3 votes
1 answer
301 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 ...
user avatar
  • 139
0 votes
1 answer
107 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 ...
user avatar
  • 121

1
2 3 4 5
8