Questions tagged [command-line]

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

0
votes
1answer
23 views

How to show operator properties when running operator in scripts or console?

I run an operator in the console, but the operator properties are not shown in Tool Panel. However, if I run the operator from search, the properties will be shown up. How to show operator ...
1
vote
0answers
18 views

Dynamic sys.stdout memory location, constantly changing the address

I am going to use logging.StreamHandler in Blender console. But, sys.stdout is constantly changing in the memory. In Windows Console: In Blender Console: Because of that, I cannot use logging....
1
vote
1answer
14 views

2.79b to run script using command line in windows, preferably with a desktop shortcut or exe

Here's the code i have written so far, it's working inside blender text editor. I however like to run this script without opening blender, with command-line, better yet to create a shortcut icon on a ...
0
votes
0answers
14 views

Command Line Arguments for Hybrid Rendering (Parallel CPU + GPU)

There doesn't appear to be anything mentioned in the 2.8 user manual yet, unless I missed it. Are there any CLI arguments we can pass to set it to hybrid rendering? My blend file is setup to do this ...
2
votes
1answer
43 views

Different behaviour in script compared to Python Console

I'm running a script in Blender 2.79b to save 2D proyections of a 3D face model with annotated facial landmarks, I apply random transformations to the mesh and the landmarks, render the mesh and save ...
0
votes
0answers
29 views

Failed to set 44100hz, use 48000hz instead [duplicate]

How do i fix this? Ive used youtube videos and online information but nothing helps. My computer is an Lenovo, Ideapad 330. Its processor is an AMD A9, Radeon R5, 5 compute Cores 2C+3G. It also had ...
0
votes
0answers
16 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
0answers
20 views

How Blender uses the command line to detect missing texture files

How does Blender use the command line to detect missing texture files and display prints? I am not very good at English.
0
votes
0answers
40 views

Open blend from script and render after interface fully loaded

Blender 2.79b Ubuntu 18.10 I use CLI to start Blender. My blend file is simple animation with a movie appended to one object, to be played during animation. When I run ...
1
vote
0answers
62 views

Headless rendering on remote Ubuntu server results in blank render

If I try and render this .blend on my Windows machine, using this command, I get the correct output: .\blender.exe -b testrender.blend -f 0 -F PNG -o frame_0.png ...
0
votes
0answers
54 views

Blender Crashes seconds after startup

{Lenoveo Ideapad 330, Windows 10, Intel core i5-825U @1.60 GHz 1.80 GHz, 8 GB RAM, Intel UH Graphics 620} Hello friends, I downloaded blender today to try it out. When I launch the program, the ...
1
vote
1answer
63 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
50 views

Is composite able to be rendered by command line?

Could composite be done by command line too?
1
vote
2answers
64 views

duplicate the mesh in edit mode and flip normals using python script

I want to make my two sided (input model is collada). so, for that i want to duplicate all the faces in edit mode and then flip normals, and then export the model as fbx. i want to do this using ...
0
votes
0answers
15 views

Blender console loading for a long time

A few days ago I ran into a problem with Blender. When I open Blender the command window just stays there for several minutes and then blender opens, the problem is that blender just freezes when I ...
0
votes
0answers
39 views

Join two imported objects to set shape key via bpy script from cmdline

For an automated workflow (call from cmd), I am trying to import two objects into blender and would like to generate linearly interpolated shape keys based on the ...
1
vote
0answers
65 views

How to run Blender through VNC on Ubuntu?

I am using tightVNC to connect to an Ubuntu 18.04 server. When I try to start blender, I get the following error in the command line: ...
0
votes
0answers
140 views

Found bundled python and crash

If I open Blender 2.79b, it gives a command window briefly which says found bundled python: C:\Program Files\Blender Foundation\Blender\2.79\python I did this ...
1
vote
1answer
72 views

Rendering without fire when executed from command prompt

I am rendering from command prompt and output file is something like: expected: I executed this command(My installation Directory): ...
1
vote
1answer
406 views

How to render in command line? [duplicate]

I have a very very slow computer, but would like to animate 3D. I'm aware we can render via the command line. but I don't know how. I want to render the entire animation of my Tutorial.blend file in ...
1
vote
0answers
19 views

Render from Comand line

I am rendering a scene on some private HPC, they gave me putty to run render with command line: $ srun -N1 -pgpu blender -b test_gpu.blend -o //_###.png -P cuda.py -a everything works fine, but my ...
0
votes
1answer
252 views

How to export mesh object to FBX from command line?

I'd like to open a scene with certain mesh object and export it to FBX file from command line. I read some related questions; importing and exporting via command line as per https://stackoverflow.com/...
0
votes
0answers
69 views

Import SVG and export as OBJ using command line

I want to use the command line to import an SVG file type and export it as an OBJ file type. Being able to modify the scale and the extrusion would be a plus, but no other operations need to be ...
0
votes
1answer
38 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
22 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
28 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
87 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
63 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
44 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
130 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
96 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, ...
3
votes
2answers
957 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 ...
8
votes
0answers
110 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
71 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
1answer
657 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
50 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 ...
1
vote
0answers
111 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
32 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
178 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
170 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
31 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
55 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
110 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
52 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
374 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
75 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
39 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
134 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 ...
2
votes
0answers
188 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
72 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 ...