Skip to main content
The 2024 Developer Survey results are live! See the results

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.

0 votes
1 answer
77 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 ...
taptaptaptap's user avatar
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 <...
rhavin's user avatar
  • 111
1 vote
1 answer
38 views

Addon works from Text Editor, but fails to enable from Add-ons preferences [duplicate]

I've written very simple addon that exports triangulated and quad mesh of selected object, deleting all material slots and applying transformation. And all work fine if I run it from the Text Editor, ...
Dmitry Stogov's user avatar
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 ...
Ігор Спасівський's user avatar
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 ...
Erasers45-Studios's user avatar
3 votes
1 answer
58 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 ...
Trantor's user avatar
  • 45
2 votes
1 answer
31 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(): ...
hutianyi's user avatar
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 ...
Cornivius's user avatar
  • 1,896
3 votes
1 answer
78 views

bpy.app.timers.register is lagging Blender

In my blender python script I have a function which reads data from a serial port then moves the position of an object based on that data. I use ...
David B's user avatar
  • 423
2 votes
1 answer
39 views

Correct way of using bpy.ops.import_mesh.stl bpy function?

First time here! So, I'm trying to create a python script that uses bpy (This script is not being used from within blender, but rather bpy is being called from python as a module), and in this script ...
Syl's user avatar
  • 51
0 votes
0 answers
14 views

How can I turn an Object LineArt into a Poly Curve?

I am really new to bpy and I wrote this script: ...
Psyduck Fan's user avatar
2 votes
1 answer
41 views

KeyError: 'bpy_prop_collection[key]: key "View Layer" not found' when launching blender with external script

When I execute the following code within Blender, it works well regardless of whether it's version 3.x or 4.x. However, if I try to use it by launching Blender with a specific argument to open a ...
cscholl's user avatar
  • 315
0 votes
0 answers
15 views

problem with UvRizom

I downloaded the trial version of UvRizom 2024, And I bought the Rizomuv Bridge addon - Blender 2.8+ (https://blendermarket.com/products/rizomuv-bridge) In "RizomPath" I chose this path: ...
Alena Zhuravleva's user avatar
0 votes
0 answers
13 views

is it correct to set the camera intrinsics in this way?

I have a 3x3 matrix inside a calibration file that has the intrinsics of my real room inside it. We will call them fx fy cx cy. I would like to know if the code I have written is correct, as I am not ...
wiseme's user avatar
  • 1
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 ...
stib's user avatar
  • 981

15 30 50 per page