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,272
questions
0
votes
1
answer
73
views
How to recalculate pose bone rotations when armature bone rotation is changed?
I'm trying to import bones and animation data in to blender. The quaternions I have for each keyframe are correct if the armature's bones do not have any rotation. However I also need to import the ...
0
votes
0
answers
13
views
Save an image of an area by it's index [duplicate]
General Question: Is there a way to capture a raw image, so no overlay or gizmo, of an area within Blender only by its index?
I would need a script that writes the pixels of the area to an image ...
1
vote
0
answers
36
views
Is there a way to restart a modified addon without restarting blender? [closed]
This was answered 10 Years ago. Unfortunately, it doesnt work anymore.
It should be a simple console command:
bpy.ops.script.reload()
However, it only reloads the <...
2
votes
1
answer
352
views
Call operator with tweak popup window
I'm making a panel with buttons to do different actions for modeling. One one of my button I want to merge vertex by distance when I click on it, but merge to center when I CTRL + Click.
I got this ...
3
votes
0
answers
38
views
How to create unsigned Int property?
I need a property that can accept the 2267538950 number, unfortunately by default Blender uses a signed int range. There was a way to set subtype="UNSIGNED" in the previous versions but it ...
1
vote
1
answer
334
views
Vscode debugger ignores breakpoints in imported modules
I am not a programmer. I am trying to create an addon using VScode and jacqueslucke.blender-development addon. I configured the system according to directions shown here: https://polynook.com/tutorial/...
0
votes
2
answers
332
views
'import aud' works in viewport, but no audio in renders
Have an animation (made from geometry nodes) along with the script below. Everything works fine in viewport, the animation plays and the test.wav plays when it should. During render there is no sound, ...
0
votes
1
answer
393
views
Import Python Dependencies from current script/addon directory. (Filepath shows up as /script.py, or blender install)
I'm trying to import a github python directory, which is not on PyPi, and I am attempting to develop an addon for blender. I cannot use the method which automatically downloads dependencies because of ...
0
votes
0
answers
29
views
Copy framebuffer of 3D View into image
General Question: How can I copy the frame buffer of the currently active viewport to an image within Blender?
The following link already addressed the question, however it utilizes a modal operator ...
3
votes
1
answer
56
views
How can I instantiate a Simulation Zone input / output node's socket via python?
I couldn't find an interface like the node tree interface where I can add sockets using interface.new_socket(). In the documentation, the only method I found for ...
2
votes
1
answer
29
views
direction perpendicular to screen
I want to create a script that squeezes a curve along the vertical direction of the screen. Currently, I am using
`def get_view_direction():
...
3
votes
1
answer
463
views
Custom Icons not showing up in Add-on
The structure of my add-on files is this:
...
1
vote
1
answer
27
views
Python: Randomly selecting 1 object in a set
I have a set up like this:
Where there are 3 or sometimes more grids of different objects one behind the other. The objects are regularly spaced around 20 units in each axis, tho their origins are ...
2
votes
0
answers
25
views
Operator called by another operator does not trigger Adjust Last Operation panel
I have an Operator defined as ImportImageOperator which calls another operator ...
0
votes
1
answer
520
views
BPY in Game Engine Workaround?
I hope that someone might be able to explain me a workaround on how to use the bpy module in the game engine as a standalone.
I've read of methods like modifying Blender and import it as a module into ...