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
0answers
25 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
64 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
13k 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
26 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
19 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
215 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
746 views

Set Driver Target Object from the Console

Setting a Target Object for a constraint is fairly straight forward: ...
0
votes
0answers
18 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
310 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 ...
1
vote
1answer
19 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
21 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 ...
1
vote
1answer
136 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: ...
4
votes
1answer
6k 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
1answer
105 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 ...
1
vote
1answer
103 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
0answers
39 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
30 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
14 views

Running commandline blender in background returns bke.fcurve error

sudo prime-run blender --background x.blend ...
1
vote
1answer
205 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
105 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
24 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
35 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
43 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
39 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
45 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
9k 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 ...
69
votes
3answers
55k 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
vote
0answers
42 views

How to edit blender file parameters + settings from command line or python?

Note: This is not a duplicate of this question: How can I run blender from command line or a python script without opening a GUI? That question only addresses rendering, not modifying parameters in a ...
0
votes
1answer
300 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
1answer
74 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 ...
1
vote
1answer
379 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: ...
3
votes
1answer
67 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? ...
2
votes
2answers
24 views
1
vote
0answers
24 views

Render Passes File Output in Headless Mode

Here is the blender manual on command line rendering: https://docs.blender.org/manual/en/latest/advanced/command_line/render.html I am having an issue in blender where blender hangs on rendering in UI ...
0
votes
0answers
41 views

Run Blender Import-Addon from Python

I try too call a Import-Function from Command-Line or Python Script. (Addon: https://github.com/neverhood311/Stop-motion-OBJ) However, with ...
2
votes
0answers
12 views

Accessing Python Command Line Script Objects

If I generate an object in a python script e.g. called draw_a_cube.py def my_mesh_func(*kwargs): return useful_mesh ...
2
votes
1answer
3k views

force unbuffered output for the console

I'm trying to capture blender's console output to a file (as a result of a great suggestions from @Rich Sedman in another post) with something like $ blender > /tmp/output.txt The problem is that I ...
1
vote
0answers
91 views

“Unable to open a display” AWS EC2 Background Rendering

I launched an AWS EC2 T3 Medium Ubuntu 20.04 instance and installed blender 2.83.9 When I launch the simple command line blender -b -f 1 I get this error message : <...
0
votes
1answer
19 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 ...
0
votes
0answers
18 views

Dynamic Paint Headless Printing

I have been working on a code which uses dynamic paint to take images of 2D slices through a scene and output them to a folder. This has worked fine in Blender 2.90, however this is part of larger ...
0
votes
0answers
17 views

Render slow, console log “Using fallback” and after start render process

When I want render an image to animation, I prefer to render by CLI. It's more quiet. But my last render appear with this message ...
0
votes
0answers
154 views

blender on server with command line : Calling operator “bpy.ops.import_scene.gltf” error

I am building a 3D web app with threejs, in javascript. For renders, i want to use a renderfarm, so : i save threejs scenes in .glTF i command line blender to import and save these scene in .blend ...
5
votes
2answers
1k views

denoise a rendered image

Is it possible to use the denoiser of blender on an already rendered image, considering it will be rendered using blender ? (the reason being I'd like to use the resumable render via blender's command-...
0
votes
2answers
47 views

How to copy objects and set their origins with Python console?

I am trying to copy Cube and set different random origins to the copies. I use the following code: ...
1
vote
2answers
124 views

bpy - how to select an image running blender in -background mode so an operator can use it?

I need to invert an image running blender from the command line using the -background flag. To archive it I need to make the image active and later apply the ...
34
votes
4answers
23k views

Is there a way to batch render multiple scenes?

I have animations in 4 different scenes in my Blender file that I would like to batch render. Is there a way to batch render all the scenes, instead of only the scene I am working in?
0
votes
0answers
45 views

MSI Silent Install Switch

Good morning Is there anybody that could assist me with the silent install switches for the latest version (2.91.0) please? Happy to revert to an older version if required or switch to an .exe if one ...
1
vote
0answers
37 views

Update a script for Unwrapping trees using a python script

I was hoping someone in the community will be able to help with this. A similar question was posted back in 2017 and the user @Rich Sedman answered with a custom made python script that was able to ...

1
2 3 4 5
7