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
0answers
7 views

Script : deduce code from console to manipulate object

sorry if it's basic. I select an emty for instance. I delete a rigid body constraint. The code is visible in the console : bpy.ops.rigidbody.constraint_remove() ...
1
vote
0answers
31 views

Why does my render look different when submitted from command line to a Linux cluster?

If I render this scene using Cycles from my personal computer I get the scene on the left and if I run it from the command line on my university supercomputer, I get the image on the right. Both ...
0
votes
1answer
45 views

How can I turn this math formula into a 3d model?

how can i turn a 3d model made in surfer into a 3d file that i can print
0
votes
0answers
25 views

Blender 2.79b to 2.82

I can't update Blender 2.79b to 2.82. I am using a HP Chrombook x360 Linux. I tried to update on the Linux app and on the terminal. I did an update as well.
0
votes
1answer
27 views

Issue running Blender Command Line Arguments using Python Subprocess

I have the following code in a file named call.py, which I've reduced down for debugging. Note: I've tried various paths, either using os.path (join) or absolutes, as seen below: ...
1
vote
1answer
34 views

System console encoding format problem? [closed]

I'm using blender 2.82 on windows.The default blender system console is cmd.exe and it doesn't support Unicode so the non-ascii characters be garbled. Here's my question: 1.can i replace the default ...
0
votes
1answer
26 views

GPU rendering via CLI not working in 2.81

Blender 2.81 seems to have broken CLI headless rendering with CUDA GPU. Here's the Py script people often use: Rendering on command-line with GPU? ...
1
vote
2answers
34 views

Linux cmdline rendering on multiple GPUs

I'm running a number of benchmarks on Linux (Ubuntu 18.04) cloud VMs that have multiple GPUs attached, however I can only ever render on a single GPU. I'm not using the standard Blender benchmark ...
1
vote
1answer
107 views

How to automate the conversion of objects generated by Python script to fbx or to obj?

I've several Python scripts (around 6000 scripts). Each of them generates 3D objects. I want to find a way to export these generated objects to either fbx or obj files. Is there a way to do it using ...
1
vote
0answers
34 views

Is it possible to use loop statement via --python-expr in command line?

I have several scenes in a blend file. Sometimes I want to render all scenes with lower resolution, or mute some of the input nodes in the compositor of all the scenes. I can accomplish the above ...
0
votes
0answers
27 views

Render to vector file using command line + Freestyle

I am trying to render to a vector file using Freestyle. I have enabled it in my file and when I render to image via GUI, it generates both a PNG and an SVG file, so everything is OK. When I do it via ...
1
vote
1answer
29 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
13 views

Comment out code when doing command line rendering

I tried command line rendering with the code below. The result worked very well. ...
1
vote
0answers
32 views

How to execute python inside blend file from command line

I'll explain the numbering of what I did. I created a text file called lowRes inside the blend file as shown in the attached image. And I noticed that when I click Run Script in Blender run with ...
1
vote
0answers
27 views

Setting up headless rendering on 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 ...
1
vote
0answers
48 views

Rendering from command line script that allows specifying which camera to use / render with

I have a command line script below that can render an image of frame 193 of a blend file using the default camera below, but how can I specify another camera view (specify which camera to use / render ...
0
votes
0answers
19 views

How to render only audio from command line?

Yes, how do we render ONLY audio from command line? I know there is an option to do it from the GUI, but I don't want that. Don't be too critical, as I'm still a newbie. Thanks.
2
votes
1answer
74 views

Can I specify which version of Blender to run when rendering from a command line prompt (Linux)?

I want to begin creating projects in version 2.8; however, I still have a couple created in 2.79b that still need to be wrapped up + rendered. I currently have version 2.79b on a server from which I ...
1
vote
0answers
35 views

Missing geometry and UVs when batch rendering through command line and Deadline

I'm trying to render a scene composed of alembics(cached geometry and transformations) on my farm using deadline, which should itself be using command line rendering anyways. When I try to command ...
0
votes
0answers
20 views

Linux console : is rendering frame x, updates missed?

I am running Blender v2.81.16 on Ubuntu and whenever the viewport render updates by navigating in the timeline, I get this message in the console for every frame : ...
1
vote
0answers
36 views

How to minify/simple display with python script execution

Is there a solution to execute python script in command line and display only viewport or render view. No splash screen, no menu, no outliner, etc. Actualy, the command line display everything : <...
0
votes
0answers
14 views

Blender module for pytho 3.7 and ubuntu 18 [duplicate]

Could not find an answer, as the documentation does not state if it only supports windows or not, But I could not import bpy after installation. The question is ...
0
votes
0answers
28 views

Blender GUI freezes when running interactive python console

When starting blender from the command line with: blender.exe --python-console The blender GUI seems freezed and says "Keine Rückmeldug" - no response. I am ...
0
votes
1answer
30 views

How can I render a composition(s) from the command line? [duplicate]

I've never used the python console before so I only know these commands from the documentation that I've looked up. But I've read that it can be a lot faster than just pressing ctrl+F12 because it ...
0
votes
0answers
38 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
0answers
49 views

How do I render a render view layer using the command line in Blender 2.8

It is possible to render using a specific scene but I did not see how to select only a view layer. The only solution I found is by unchecking the "Use for Rendering" button for each undesired layers, ...
0
votes
1answer
23 views

Script for loop issue

So I should be missing something simple. (Amateur here...) I am testing snippets of code to create an addon. The idea is to create markers on the timeline from a list. The code below works in the ...
1
vote
1answer
20 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
72 views

Blender 2.8 Command Line: Errors on running script

I am looking to run my python scripts using the command line. So far, I have confirmed I can open blender using the command line, and I can open a specific file as well. The issue comes when I ...
-1
votes
1answer
26 views

Python - writing console output to disk

Is there a way to write the console output to disk? In other words, as the system writes to the console, it also writes to a text file? I am hoping that there is a simple setting in blender rather ...
0
votes
0answers
36 views

Cannot Render Frames From Command Line/PowerShell

So I've been learning to use Blender and want to render the first and last frame of an animation that I created. Looking at the documentation, I came up with this command: ...
0
votes
0answers
9 views

How to see a shader and its nodes thru python or text console?

Can i inspect how a shader node is build seeing it thru python console or text script? it's possible to save/export shaders as scripts?
0
votes
1answer
68 views

Error with Python script when run using `--background`

With the following minimal example: test.py: import bpy bpy.ops.mesh.primitive_plane_add(size=1, location=(0, 0, 0)) Calling ...
0
votes
0answers
62 views

Reduce text output of command-line render

When executing something like blender -b project.blend -a a line for each object syncing objectxy1, ...
1
vote
1answer
291 views

Rendering on command-line with GPU?

I am trying to submit a render job via slurm on our cluster with blender 2.8, that is, completely command-line based with no way to start the GUI on the computing nodes. I have assigned 38 CPU to the ...
0
votes
1answer
50 views

Blender kiosk mode?

Sorry if the question is stupid or doesn't make sense. I'm playing around wiht Blender as a programmer, I'm not an 3d artist. Is there a way to open Blender in this kiosk mode (like Electron does ...
0
votes
1answer
421 views

How to select all non-CPU CUDA or non-CPU OpenCL devices for Cycles rendering (command line)?

I'm looking for a way to have Blender 2.8 render with Cycles using CUDA but only for Nvidia GPUs (no CPUs selected) and do the same using OpenCL with only AMD GPUs (no CPUs selected). My goal is to ...
1
vote
1answer
579 views

ImportError when loading Open3D module into Blender python console

I have installed the Open3D module using pip into the interpreter of Blender 2.79b, which uses Python 3.5.3. If I open the Python interpreter from the system ...
0
votes
1answer
112 views

Why do I get 'addon not found' errors when starting blender from the command line?

I installed blender with the source code and when I start from the command line it shows: ...
2
votes
1answer
75 views

Blender hangs on exit with console window open?

Has anyone run into an issue with Blender randomly freezing/hanging when you attempt to close while the console window is open? I can't say for sure that the console is the murder weapon, but after a ...
0
votes
0answers
40 views

Command Line OBJ Model Merging and Texture Applcation

I would like to use the command line to take 2 obj files and merge them while also merging their associated material files. I would also like to be able to in the same command line apply a texture to ...
1
vote
1answer
83 views

How can I make Blender to exit with the same exit code as the python expression?

I am running a python expression through blender from the commandline. I want to know if the python expression is executed correctly or not. But Blender always exits with a 0 code. Is there any way to ...
0
votes
1answer
22 views

How are scripts from commandline executed

to state it right away, I'm a complete beginner to scripting in blender. I have a simple python script to change the text of a text element. The script works when run from the scripting tab in ...
0
votes
1answer
691 views

Blender 2.8 - AWS EC2 command line EEVEE render

I have been trying to get this to work for a couple days now. I have an EC2 P2 instance with NVIDIA CUDA configured by default, its a Deep learning Ubuntu AMI. This OS does not have a GUI so ...
2
votes
0answers
41 views

Calling blender in PHP outputs nothing

I'm currently running a python script in my command line that uses blender: blender -b -P script.py -- argument1 This works fine in my terminal however it ...
0
votes
1answer
93 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
0answers
47 views

How to install blender 2.79 -on-centos-7 DEDICATED SERVER? (CentOS Linux release 7.6.1810 (Core)

Only need to use blender to render in the background via .py script, GUI not needed. This video is why I think it will work, published on Jun 27, 2019: https://www.youtube.com/watch?v=LbadAU8CULs (...
1
vote
1answer
65 views

How to start rendering (and save result) in terminal on Ubuntu?

I am getting ready, to try out cloud computing for Blender rendering, that's why I'm curious if I can just drop the .blend file and render the scene from the terminal. PS: Can Somebody tell me if I ...
0
votes
0answers
77 views

Is there any way to iterate the name of output image file?

This is the command that I'm putting into console: ...
1
vote
1answer
123 views

Blender - b Why blender is quiting?

...

1
2 3 4 5 6