Linked Questions
35 questions linked to/from How to pass command line arguments to a Blender Python script?
0
votes
1
answer
1k
views
Running a python script with arguments in blender from terminal [duplicate]
I want to run a python script for a blend file within blender and I want to give the command from terminal. Blender has this option as follows:
...
0
votes
0
answers
193
views
How can I execute a Python script that utilizes the Blender API outside of the built-in Blender terminal? [duplicate]
I am trying to create a script that converts an OBJ file into an FBX file in Blender 2.78:
...
0
votes
0
answers
116
views
How to run blender python script with args? [duplicate]
I have a python script that takes command-line args. I'm using it to create some blender objects. I'll run it from the command line (actually from a script on a server). I run it like this:
...
0
votes
0
answers
46
views
Pass values from python script to Blender and automate render(mp4) creation [duplicate]
I have a project in Blender that provokes a shape to move in certain ways based on two values (currently I manually change the values in the Python script in Blender and manually click to render to an ...
21
votes
1
answer
159k
views
open .stl file with blender [duplicate]
I need to open .stl files with blender, without importing them!
In the properties of my .stl file, blender is set as "open with", but when I double click on the file it just opens blender as my ...
5
votes
1
answer
6k
views
How to prevent memory leakage in Blender?
I have to load lots of objects/meshes(50k) in Blender and render them for which I have written a Python script. My meshes have lots of vertices/faces (in the range of ~[10k, 70k]). I noticed that ...
5
votes
1
answer
6k
views
Print all commands in the Info view?
The Info view doesn't show every command (scripts) which I actioned.
Example open new file, reload file, import, export...
How to show them?
1
vote
1
answer
2k
views
How to output multiple images from Blender's compositor with Python?
I know how to render one image via Python and get an output with Blender's compositor.
What if I need it to render 100 images for me with numerical names e.g: img_1...
0
votes
2
answers
1k
views
What is best workflow for having a scene with multiple light setups?
I have a scene with interior room design and I created several light setups for it (daylight from windows, powerful electric light from the ceiling, moody evening light from floor lamps). What would ...
2
votes
2
answers
1k
views
Blender command line cli : create a new .blend from a normal 3d model like .obj, .fbx..... [[ FROM .OBJ -->> TO .BLEND ]] without a desktop
CONTEXT : I'm building a website where users can upload many files. [WEB SERVER, no gpu]
WHAT I WANT : that an uploaded .obj => render an image preview as a .png
WHY : to manage a library of ...
3
votes
2
answers
2k
views
Sequentially importing .obj files becomes drastically slow very quickly
I have written a very straight-forward script that imports many obj files one-by-one and renders them. The imported meshes have ~10k to ~120k vertices. After rendering, I completely remove the ...
1
vote
1
answer
2k
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 ...
2
votes
1
answer
2k
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 ...
3
votes
1
answer
852
views
Is there any way to change the number of rendering samples using command-line?
I am sending my .blends to another remote machine for rendering, and then I render them using command-line. Sometimes, the size of the .blends become as high as ...
1
vote
1
answer
2k
views
Is it possible to assign an active camera through command line rendering?
I'm wondering if there's a way of telling blender which camera to use as the active one when rendering from the command line.
I can't seem to find any documentation about this.
Also there is no ...