People who code: we want your input. Take the Survey

Questions tagged [command-line]

Questions pertaining to using Blender from the command line or using Blender's console window.

131 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
377 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: ...
1
vote
0answers
116 views

Ubuntu 18.04 and Background Rendering produces transparent image

So I upgraded my system from Ubuntu 16.04 to 18.04. With that I had to upgrade Nvidia drivers from 384 to 390, and a reinstall of modprobe and cuda-toolkit. Blender works ok, GPU live rendering works, ...
1
vote
0answers
191 views

DAG zero… Getting clearer information from the Console Window

How do I get more detailed information for the following message? This message appears in the Console Window. DAG zero... not allowed to happen! The goal is to ...
1
vote
0answers
418 views

Render with CLI and **then** save image with python command

I have this need: render with command line, with "-o" output option active, and then send a "-P" command, where into the python script I want to save again the image rendered. So, here what I came ...
1
vote
0answers
255 views

Is it possible to load file from memory?

Is it possible to load a .blend file from memory? Thus, open it without using its filepath (bpy.ops.wm.open_mainfile(filepath=l))...
1
vote
0answers
60 views

blender player extended monitor problem

I have an iMac and two mac Cinema displays connected using thunderbolt. The Cinema displays are setup as extended (each 2048*1152 giving 4096*1152 overall). The iMac is setup below the Left hand ...
1
vote
0answers
111 views

Start rendering a blend file from command-line WITH user interface

As the title says, I want to open a blend file from command-line (or rather with a batch file in Windows) and it should begin rendering the same way as if I pressed the Render Animation Button. I ...
1
vote
0answers
71 views

How to know if blender freezes, in larger render jobs command line

I am rendering animations, and randomly i note that Blender freezes. It happen not that often, but when i render at around 18:00 to note the next day it crashed on 18:15 instead of working whole night,...
1
vote
0answers
91 views

How to programatically insert python commands via Blender's C++ codebase

Hello Blender / Python gurus! Is it possible to programatically feed python commands into Blender's python's console and catch the return values in Blender's C++ codebase? I have added some C++ ...
1
vote
0answers
36 views

Triggering UI elements from a script or commandline

Is it possible to trigger UI elements of addons through an external python script or a commandline option? To automate some processes of the add on without the need to reverse-engineer it.
1
vote
0answers
377 views

Blender console render: Finished

I used blender console render for batch files. Sometimes files or frames doesn't produce any result. I got only "Finished" console string. After that render is stopped and no files was saved. I use ...
1
vote
0answers
60 views

VSE - duplicated frames in videos when rendering VSE timeline in parts from Command line

I have a VSE project that includes some h264 video in timeline. When I render the timeline in parts (videos) using command line, the frame on the end of a first part is the same as the frame on the ...
1
vote
0answers
76 views

Perform ops class from console

When loading any file, the sun_position add-on/plug-in, although enabled in User Preferences, is disabled in its panel. When trying to dynamically render a scene, ...
1
vote
0answers
199 views

facial landmark deduction compatible with blender?

I'm trying to to get dlib integrated with blender for over 3 months. Is there any other facial landmark detection that I could integrate with blender? or is there a method to get dlib working in ...
1
vote
0answers
382 views

Loft between curves in commandline

I am developing a commandline tool to experiment with lofting a set of curves, and would appreciate any guidance. Usage ...
1
vote
0answers
541 views

Rendering a composite: different behavior of a script on command line and in UI

A baffling (to me at least) Blender behavior. Here is a pared down version of my compositing setup (A). In Compositor, shadow of a sphere from one layer is combined in Alpha Over with cube from ...
1
vote
0answers
237 views

Blender crashes on launch

Have been using blender for months now and recently upgraded to the newest version 2.75a. It worked for about 2 days fine but now when i launch it the console flashes and immediately closes and ...
1
vote
0answers
169 views

blender --python-console result in a blank Blender window

I wished to use gnome-terminal running a python shell to do things in blender. Is this normal? Ubuntu 14.04, Blender 2.69, installed from Ubuntu software center.
1
vote
0answers
232 views

How to save (persist) bpy.ops.ptcache.bake_all() results?

How to bake all rigid body dynamics via CLI? There are methods described over internet to bake fluid or soft bodies, but for rigid bodies I didn't find UPD I've figured out that this can be done with ...
1
vote
0answers
298 views

How to install Blender sub-process modules to run Blender in background?

Does anyone know how to install BlenderAsPyModule on a Linux machine? As a beginner, I don't understand how to do it. Is there a simplified guide?
1
vote
0answers
215 views

encode video through windows command line

I am trying to integrate the Windows command line functionality of Blender into a program I am writing to perform some ProRes/XDCam to DnxHD video encodes. I am currently using FFMPEG to perform DnxHD ...
1
vote
0answers
860 views

Python script to edit addon settings

I am trying to use python to script to change the settings of the Network Render addon. I am attempting to change the tags in the slave that way I don't have to change my blend every time. I am using ...
1
vote
1answer
958 views

bpy.context.space_data.text throwing error from command line

I'm new to Blender and Python, but have programming experience. I'm writing a script that iterates through all the .stl files in the current directory (current being where the script is), does a few ...
0
votes
0answers
25 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
18 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
0answers
17 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 ...
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 ...
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 ...
0
votes
0answers
14 views

Running commandline blender in background returns bke.fcurve error

sudo prime-run blender --background x.blend ...
0
votes
0answers
23 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: ...
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 ...
0
votes
0answers
103 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
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 ...
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
16 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
142 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 ...
0
votes
1answer
101 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
43 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 ...
0
votes
0answers
31 views

How to query .blend file via command line, or python script, and extract data from it

I need to query the .blend file and extract any type of data from it. Things like: does it have composition enabled? what is the output file and format set by ...
0
votes
0answers
15 views

Animation rendered from command line only shows the first frame

I am rendering an animation using blender -b file.blend -a. The blender file is set to save animations as an ".mp4". It runs OK and creates an output ...
0
votes
1answer
51 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 ...
0
votes
0answers
70 views

Any Python Code Example for RemeshModifier API?

I'm new to Python and Blender, so my question could be ambiguous. I have to make Python script that remeshing OBJ files on Command Line Interface. I've googled about it and probably result code gonna ...
0
votes
0answers
26 views

Baking every object with physics by script

I am trying to create a set of scripts with bpy that render a project automatically from the console command line, and I have created them. But before rendering, I want it to actually bake everything ...
0
votes
0answers
39 views

Mesh Smooth / Remesh on Command Line Interface

I'm new to Blender, so my question could be ambiguous. I need to mesh smooth / remesh / mesh clean up on command line interface. I read command line part of Blender manual but it seems there's no ...
0
votes
1answer
32 views

How to repeat a cyclic animation of an object/armature from command line with Blender API

I need to render a cyclic animation of an object-armature from the command line. At the moment I am stack on how to repeat the keyframes, ie how to copy the keyframes of the first time points and ...
0
votes
0answers
355 views

How do I do GPU rendering from the Command Line?

I was searching, and command line rendering is working, but not on GPU. I also find something with custom python script to force it to GPU, but it doesn't work either, probably because of Blender ...
0
votes
0answers
106 views

'blender' is not recognized as an internal or external command, operable program or batch file

I can't get any blender commands to work in the windows command line. I have added to the PATH and changed the directory to where Blender is on my laptop but I just keep getting this error: 'blender' ...