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
1answer
13 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 ...
0
votes
1answer
74 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 ...
4
votes
2answers
1k views

Is it possible to quit blender from the command line?

Is there a way to quit blender from the command line? I tried killall -s QUIT blender However, blender does not quit the same way as it does when pressing ...
1
vote
0answers
70 views
+50

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: ...
1
vote
1answer
165 views

Setting up Blender headless rendering inside an Ubuntu docker image on a server

Recently I got access to my college server and I want to set up headless rendering for my blender projects in the server. The issue is, they have given me a docker image with Ubuntu 19.10. I tried ...
5
votes
1answer
69 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 ...
1
vote
1answer
340 views

Render Function - rename filename

So close yet so far (I think) A function within an addon am creating is suppose to rename the file ouput using tokens. This is based on the Oscurart tools. The projects consists of markers on every ...
2
votes
0answers
26 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 ...
2
votes
1answer
132 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 ...
1
vote
1answer
32 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 ...
1
vote
1answer
155 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
1answer
33 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 ...
0
votes
1answer
37 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
6 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 ...
1
vote
1answer
118 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 ...
0
votes
1answer
198 views

How do I do GPU rendering with enabled OptiX from the Command Line?

I need help running Blender from the command line with GPU rendering. Also, Optix must be enabled. I read this article: How do I do GPU rendering from the Command Line? very much helped, but now I ...
0
votes
0answers
18 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 ...
0
votes
1answer
218 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 ...
8
votes
3answers
1k views

Can you clear the System Console without restarting Blender?

The question is simple enough, but I can't find the answer. Is there an operator or something similar that clears the Blender System Console history? I would also be willing to create an operator type ...
1
vote
1answer
368 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
0answers
49 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 ...
1
vote
1answer
86 views

Blender Python Console Commands not completing before next one is interpreted?

I'm working with the default Blender file that has single cube object. I'm rotating it with Python and adding keyframes. The problem is that a ...
0
votes
1answer
33 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 ...
1
vote
1answer
416 views

Blender hangs at command window

I cant start Blender right now. I used --debug to get some info about that. Unfortunately I only can see this: ...
0
votes
0answers
26 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 ...
0
votes
1answer
326 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/...
1
vote
0answers
32 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: ...
2
votes
2answers
65 views

How to find which machine rendered a specific frame in a render farm

I have 6 servers rendering the same project (not using the Network Render add-on). All of the servers are exporting into a shared network folder. Some frames have issues; how can I find the faulty ...
8
votes
4answers
14k views

How to open system console to get output from Blender on Mac OS 10?

Noobie here. Should I open Mac terminal and cd to /Applications/Blender/ which is where my Blender app is? Doesn't seem to work for me trying to run script from Text screen in Blender. I guess there ...
0
votes
0answers
40 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 ...
0
votes
0answers
32 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
1answer
239 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 ...
0
votes
2answers
791 views

Set Driver Target Object from the Console

Setting a Target Object for a constraint is fairly straight forward: ...
0
votes
0answers
70 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
1answer
29 views

Workbench Outlines not appearing when rendering animation from command line

The "Outlines" feature of the Workbench render engine Properties / Render Properties / Options / Outline provides the expected results when rendering an animation from the UI Render / Render ...
0
votes
0answers
33 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 ...
5
votes
1answer
7k views

How to use Keyframes and the Python API programmatically?

Currently I have a default cube and 400 frames. Here's what I have working without keyframing ...
0
votes
0answers
70 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
34 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 ...
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
21 views

Running commandline blender in background returns bke.fcurve error

sudo prime-run blender --background x.blend ...
0
votes
0answers
185 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-...
0
votes
0answers
51 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
37 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
65 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
50 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
46 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 <...
13
votes
1answer
10k views

Setting render options from the command line

I was hoping to render blender using the command line mode on linux. However, I do not no how to set the output resolution and H.264 as the encoding. Both these options work in the GUI mode but I wish ...
73
votes
3answers
58k views

How can I run blender from command line or a python script without opening a GUI?

I'm interested in using Blender for producing images, 3d files, or calculating geometry on a server. Can I make blender run a python script without opening a GUI? If not, can I incorporate Blender's ...

1
2 3 4 5
8