Questions tagged [python]
Python is an object-oriented programming language. In Blender, it is used as a general purpose scripting language and to create add-ons to extend Blender's functionality.
13,284
questions
92
votes
4
answers
91k
views
How can I run blender from command line or a python script without opening a GUI?
I'm interested in using Blender for producing images, 3d files, or calculating geometry on a server.
Can I make blender run a python script without opening a GUI?
If not, can I incorporate Blender's ...
12
votes
2
answers
3k
views
Scripting metaballs with negative influence
I'm generating metaballs with a python script, and I need to be able to toggle the negative option for some of the metaballs. (Edit: ...
4
votes
1
answer
361
views
Point and Edges based on Armature Hierarchy
Someone asked me if we can do what the Skin Modifier does, but in reverse. For example, you started with some Edges and then create an Armature based on those Edges.
If I started with Human Meta Rig ...
4
votes
1
answer
2k
views
Can I access the render screen size in a custom filter 2D in the game engine?
I am using Blender Game Engines Filter 2D to make a post effect with GLSL.
In an fragment shader applied on the frame buffer, I want to access the size in pixels of that buffer in GLSL.
...
30
votes
2
answers
64k
views
How can I get vertex positions from a mesh?
I want to read the vertex x and y coordinates with a script or a function.
How can I do that?
The MeshVertex
appears to have ...
16
votes
3
answers
14k
views
How to get world-space matrix of any pose bone?
Is there a command for getting world-space matrix of pose bones, same as obj.matrix_world for objects? I found pose_bone.matrix, ...
32
votes
3
answers
21k
views
Is the Blender GUI package available for other programs?
I really love the look of Blender's built-in GUI, and would potentially like to use these tools in some of my other Python applications. As I understand it, Blender created all of these tools from ...
71
votes
6
answers
25k
views
Is there a tool for scientific visualization using Blender?
Is there an interface or API that allows using Blender as a tool for mathematical and scientific visualization? It should allow Blender to read in data (a la gnuplot or matlab, perhaps using scipy) ...
8
votes
4
answers
6k
views
Blender becomes very slow with large amount of objects sharing mesh data
In my script I am importing a large amount of objects (+2500) but sharing the mesh data from one single primitive. While this has taken care of importing speed, it completely slows blender down. ...
7
votes
1
answer
2k
views
Is it possible to add a custom property on bpy.types.Sequence?
I am in the process of writing a tool that makes uses of Sequences in the Sequence Editor. I was trying the following in my add-on (register() method)
...
21
votes
2
answers
703
views
Which modules are guaranteed to be present in Blender's Python?
Which modules are guaranteed to be included in Blender's custom Python build?
24
votes
2
answers
6k
views
Blender UI Multithreading Progressbar
The following question might've been asked several times, but I've found no satisfactory answer.
Short question:
How can I show progress of background task in Blender UI?
Explanation:
I have a ...
3
votes
1
answer
265
views
How can I optimize the code to parse lines in a file?
I have a working importer that needs to handle large data sets ie. thousands of primitives.
When I import a file containing 2500 objects it takes roughly 90 seconds to import. Now if I import the ...
7
votes
2
answers
2k
views
What is the difference between bpy.types.IntProperty and bpy.props.IntProperty?
I am always confused between bpy.types.IntProperty and bpy.props.IntProperty. (similarly with other properties)
Most of the ...
10
votes
3
answers
8k
views
Execute function on object property change
I'm searching an equivalent to the observer design pattern.
I want to execute a script function every time an object position changes.
To achieve this there might be some options directly in blender ...