Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line]

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

0
votes
1answer
28 views

Return the current release of blender on command line

Is there a way to poll the blender download website to return the current release candidates paths for blender. At the time of this writing there is a release for both 2.79 and 2.80 so i would like a ...
2
votes
0answers
20 views

Why is there a difference in getsizeof() returns for Blender's python console and Python Shell? (for basic types)

This is a getsizeof() return for basic types in blender's python console: And this is one (same args) in Python Shell:
0
votes
0answers
16 views

Blender flashes a cmd when I try to start it, but the program doesn't open

When I click on the blender program a cmd quickly flashes up and then nothing, I have tried launching the exe from C:\Program Files\Blender Foundation\Blender as well as the %appdata% folder. This was ...
0
votes
1answer
32 views

Blender building error 'fatal: unable to look up git.blender.org (port 9418)…or WSAStartup failed' Win64

im not a programmer, please help me like you would your grandma. Windows 10 64bit, followed all the previous steps from this page very carefully
1
vote
1answer
22 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
33 views

Is it possible to add images in the Text Editor?

A little bit of context: I've beeng working around some "interoperability" between Blender and other software/hardware like: Pure Data, reacTIVision, Arduino, Raspberry Pi, etc. I toyed with doing ...
3
votes
1answer
123 views

Rendering large amount of short videos with different generated “animation”?

I have a very specific and probably strange question to which I couldn't find any answers. I'm a computer vision researcher and I need some data for a "small" side project, I want to know if it's ...
1
vote
1answer
45 views

How do I choose the next item after using Autocomplete in the Python Console?

The list that populates below bpy. after using Autocomplete (Ctrl+Space) in the Python Console is: app, ...
2
votes
2answers
604 views

Environment variables specific to Blender? Do they exist?

Are there any global variables in Blender? I was searching for them in Blender docs, but didn't find anything. For example, I want to override the default /tmp directory with another directory. But I ...
6
votes
0answers
87 views

how to configure facility wide configuration files

We'd like to integrate Blender into our pipeline. With other software packages, we usually have cascading configurations: facility (eg configuring temp folders and common plugins) project (eg project ...
1
vote
0answers
48 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, ...
0
votes
0answers
29 views

How can I set log level in UI-Less rendering in blender?

I have try UI-less rendering in blender use --background parameters in terminal, but this will print something like this ...
0
votes
1answer
103 views

Rendering a cube as png file using Blender's Python API

I am new to Blender. I create a cube and want to render it. Since, we are later going to do this for large number of shapes, we are working with Blender's Python API. I want to save this rendering as ...
0
votes
1answer
22 views

How to select last imported object with console?

I'm writing a script for fast importing with CSV file. There's a lot of things, like location, scale and quaternion rotation. Problem with the location I've already solved, but scale and rotation are ...
0
votes
0answers
57 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 ...
0
votes
1answer
25 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
0answers
111 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
101 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
23 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 ...
0
votes
0answers
47 views

How to extract beginning part of 3D model files using Blender?

The business purpose is that I allow registered user upload different 3D model files. When other users review the file, he or she does not need to download the whole file (size about several Gbs), he ...
1
vote
1answer
78 views

Blender game engine data extract

i am trying to connect Blender game engine to a PLC(programable logic controller) so i can control a robot with blender game engine, i dont know where to start to take de bge data outside of blender, ...
1
vote
1answer
35 views

Blender command line open template

Hi and thanks for reading. I'm newbie and have problem to solve with Blender. We have a upper level app which will open a template of Blender with a button in GUI (for make difference startup file and ...
2
votes
0answers
243 views

How to ensure Blender uses the GPU when running from the command line on a headless Linux computer?

I have Blender installed on a Linux machine with 6 Nvidia GPUs (GTX 1060) I have an ssh connection into it but it doesn’t look like Blender is using the GPUs. The ...
1
vote
0answers
33 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 ...
0
votes
0answers
23 views

Render different on render farm

I am using an AWS EC2 instance to render some animations. When the animation runs on the instance, it is missing information, and lighting is altered. My process is to pack all external data into the ...
0
votes
0answers
26 views

Export collada from CLI

Given a .blend file, can I export a collada (.dae) file using the blender CLI? The CLI docs give some examples but they all seem ...
0
votes
0answers
71 views

Is it possible to decimate or remesh via the CLI?

I have a very large .stl file. I wish to use Blender in CLI mode to reduce the size of the file via decimate or ...
0
votes
0answers
56 views

Cannot import obj from command line

I have a obj file that imports fine into blender through GUI, but when I try to import it through a script it posts an error: ...
1
vote
0answers
120 views

CLI (linux) rendering cycles, and cpu + GPU

I'm currently testing my first try at the rendering cycles on the CLI in Linux. this is the script I wrote for it. I was wondering what about using the GPU along with cpu.Laptop Specs ...
2
votes
1answer
57 views

Constant error message in console - reinstall and factory settings doesn't fix

I am seeing an error message in my Blender console constantly. Not sure if it is affecting performance of Blender or if recent errors in the software have been for other reasons. I have no idea what ...
1
vote
1answer
42 views

Cycles - Denoising + command line

Blender 2.79 Do you have any experience with the Densoising in a command line / batch render? I would really like to use this feature since we have to render a huge project for the University. I can ...
1
vote
0answers
22 views

How can I insert “blend_filename” into the output node?

One thing I often do is rendering via CLI, and I like to choose EXR format to have 32bit files ready for archive. I also like to have blender saving the jpg preview to quickly see it in OS filebrowser....
0
votes
0answers
116 views

Pass output of PyQt5 interface to Console

I'm running a PyQt5 QDialog interface inside blender. The interface launches fine but in other applications (maya/nuke/houdini) when I use a print statement in the interface, the output gets printed ...
2
votes
0answers
67 views

Rendering to Viewer Node in headless mode

I'm running Blender 2.79: /path/to/blender -b empty.blend -P script.py With script.py: ...
0
votes
0answers
31 views

Unable to call Blender to run a script

I'm making a website. Here php executes a blender python script. I used exec('blender -p *path for script*',$output,$return) And put an if to check the result. ...
0
votes
0answers
50 views

Blender error SEGMENTATION FAULT.Anyone help me?

I'm running blender using command line. I've setup automatic script run. My file does image rendering as well as saving in a particular location. When I try to run my file in background mode, it ...
1
vote
0answers
20 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
2answers
868 views

How to properly paste Python function block into python console?

Hi i have some questions : i want to paste block of function into the python console and got a lot of indentation error. Is this a bug or do i miss something ? i'm using 2.79. I'm new in coding. ...
0
votes
0answers
41 views

how to check a python script all the time

for example if bpy.data.objects[1].location[1]>4: bpy.data.objects[1].location[1]=0 this script is only executed when I execute it from the python console and the position x of the object is greater ...
1
vote
1answer
380 views

Running Script and rendering from command line with external script

I'm trying to run a script like so from the command line blender -b oop-blender-demo.blend -P model.py followed by ...
0
votes
2answers
59 views

viewing rendered animation from command line

I've looked around online for this but it seems every source I find is dancing around the issue. I've created a build script so far that looks like this ...
2
votes
1answer
823 views

Cannot pass arguments to Python script when executed by blender.exe

On Windows, I'm trying to have blender.exe execute a Python script that internally uses the argparse module for the arguments handling. What I'm struggling with is ...
2
votes
1answer
19 views

Is it possible to save the text of the command line automatically?

When a rendering is made via command line, the progress is appreciated as follows: ...
2
votes
1answer
161 views

How do I render only part of an image via the command line?

I know that it is possible to render from the command line: https://docs.blender.org/manual/en/dev/render/workflows/command_line.html I'm tring to make it possible to render a single image on ...
3
votes
1answer
189 views

Launch Blender cycles render from terminal with tiles rendering view

Sorry for the title, I don't know how to better explain my "problem". In a nutshell: I would like to open from terminal or win prompt a blender file and see it render on the screen the same way it ...
0
votes
0answers
34 views

Can I change texture of a mesh with the command line?

I know it is possible to render a 3D model with blender's command line interface, but is it possible to also change the texture?
0
votes
0answers
60 views

how can I set/change the pivot point ? (Blender Python) [duplicate]

I have a tiny problem, the Python Command bpy.context.space_data.pivot_point = 'MEDIAN_POINT' or ...
1
vote
1answer
202 views

“'blender' is not recognized as an internal or external command” error when using blender from the command line

How to render a scene using DOS in blender. Every time I try, an error occurs in the DOS window like the following; C:\blender 2.9>blender 'blender' is not recognized as an internal or external ...
3
votes
2answers
1k 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
30 views

how do you add command to search box

I want to add shift k, knife tool command to be searched in search box. How do you do that?!