Skip to main content

All Questions

Tagged with
0 votes
0 answers
21 views

Georeference 3D data generated using BlenderGIS

I generated a 3D model (terrain + extruded buildings) using BlenderGIS,and I was wondering if I could integrate them into an ifc project having the right georeferencing using BlenderBIM. The problem ...
aogino's user avatar
  • 11
0 votes
0 answers
13 views

How do I close an area using Python in Blender 4.1? [duplicate]

I want to close a panel from within my Python addon. Existing questions and answers seem to yield results that no longer work as they are very dated. The suggested code to run is: ...
Kristopher Ives'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
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 ...
Trantor's user avatar
  • 45
-1 votes
0 answers
23 views

Script for importing an OBJ file as Shape key for blender 4.1

I have blender version 4.1 I’m trying to adapt the script for my version ...
notgrilbi's user avatar
2 votes
1 answer
23 views

Add text (label) to colored bar created using gpu module

I've created a colored bar using the gpu module (see picture). Here is the code. Now I would like to add some text as displayed in the image with the labels 5 Kg and 100 kg. Any suggestion? ...
Alex Mekx's user avatar
0 votes
1 answer
13 views

Hard ops smart apply menu is missing

I just started using Hard ops. But it seems there is no Smart Apply in my context menu. Does anyone know what am I missing? I tried to search for this issue but I can't find anything related.
Nra's user avatar
  • 1
4 votes
1 answer
98 views

Automatic actions after starting addon?

I'm creating an addon in Blender using bpy. It's a side panel with a few buttons and input fields. To speed up development, I would like the addon to automatically ...
lurvas's user avatar
  • 45
0 votes
0 answers
29 views

How to add a collection from a Blend file via add-on code?

This is my current code: ...
Vindicator MC's user avatar
0 votes
1 answer
48 views

Including external Python libraries in Blender addon

I am developing a Blender addon, which needs few external Python libraries (e.g. scipy, pandas, etc). I was wondering about the best approach for including them into a "stand-alone" software ...
Alex Mekx's user avatar
2 votes
1 answer
62 views

How to determine whether the FCurve array_index is targetting a specific property?

This question is within the context of Geometry Node and drivers. Using the Python API, we can retrieve the drivers associated to Geometry Nodes of a given node tree this way: ...
Alio's user avatar
  • 85
0 votes
1 answer
48 views

How to change exporting scale using Python?

When we export an .stl via File>Export>STL - we see a window which has a Scale variable. This one: • This variable is named ...
Yaroslav's user avatar
  • 555
0 votes
0 answers
24 views

Show context menu addition only for object custom properties?

I am looking for a bpy.types.?????_MT_context_menu (or similar) so that I can insert an item Copy Color Property as new Driver for a script that will help me past ...
james_t's user avatar
  • 5,539
3 votes
2 answers
116 views

How to reload ONE particular UI script? (an alternative to 'Reload Scripts' )

My add-on edits Blender's UI scripts. To apply changes to UI - edited scripts should be reloaded. For this purpose I use bpy.ops.script.reload() It does the job, ...
Yaroslav's user avatar
  • 555
-1 votes
1 answer
60 views

My Blender 4.1 whit error AttributeError: 'bpy.app' object has no attribute 'version_char' [closed]

is this : Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 376, in enable mod = importlib.import_module(...
Paulo Petris's user avatar
2 votes
1 answer
31 views

How to avoid persisting bpy properties to .blend files

I have a few operators that are effectively batch scripts that perform bulk operations on objects in a scene or .blend file. Each operator is a one-shot thing that has no need for the followup ...
Foxcapades's user avatar
0 votes
1 answer
65 views

How to reload UI without restarting Blender

I'm writing addon which edits default UI. To be specific - it works with VIEW3D_MT_mesh_add The functionality I need goes beyond standard ...
Yaroslav's user avatar
  • 555
4 votes
2 answers
498 views

Placing 3D cursor using python

I want to place an object where the cursor is using python. So I need a script that place the 3D cursor where I have the cursor at that moment and then place the already selected object there. To do ...
Víctor GV's user avatar
1 vote
1 answer
26 views

Is there a way to create a colored text box for StringProperty in addon UI, like the overwrite warning in Blender save-as window?

To store a user setting, I managed to access a StringProperty in my addon popup window like this: But i want to add an overwrite warning as same as the blender file save window: Is there a way to do ...
Trantor's user avatar
  • 45
0 votes
1 answer
24 views

Blender Addon Question - Change World Color

Is there a way to add an option to change the World Surface Color and Strength settings via a button? I already coded out the panel and everything, but maybe it's just based on the specific context, ...
FrostByte Studios's user avatar
0 votes
0 answers
32 views

How can I prevent operator from blocking Blender Interactions during execution?

I'm new to Blender Python programming, and for a personal project, I'm experimenting with creating a Blender Python addon. I aim to execute an asynchronous GET request when I select a button in a ...
kernage's user avatar
0 votes
1 answer
68 views

Transfer (float) vertex-attribute to vertex-weight, to allow GeoNodes to control subsequent Armature binding

In Blender 4.1 or higher, I want to write a custom modifier, which transfers values from a vertex attribute (on geometry generated by geonodes) to a vertex group (usable with other modifiers). This is ...
Mark K Cowan's user avatar
0 votes
0 answers
28 views

How can I add a FloatVectorProperty to my addon layout? [duplicate]

How to properly register a FloatVectorProperty? When I do: box.prop(self, "amb_day_color") where ...
Oleg Kivasev's user avatar
0 votes
1 answer
67 views

Blender 4.1 addon to add time to rendered file names

I'm trying to make an addon for Blender 4.1 that adds current seconds to rendered file name. We need it for our workflow when rendering overnight, to check later which frames had the biggest gap ...
Matt's user avatar
  • 3
0 votes
0 answers
18 views

Can't use Cython to compile the Core Library of GeomDL or PyMcubes using --install-option="--use-cython" since "--install-option" is depreciated

I am trying to install Cython compiled versions of GeomDL and PyMcubes packages into Blender 4.1's shipped embedded python (...
fmotion1's user avatar
  • 1,433
4 votes
1 answer
129 views

How can I expose Geometry Nodes properties in my addon panel?

I came across this question and learned that I can actually expose properties from the Blender UI in my addon panel. So I was experimenting on exposing properties of modifiers like for example the ...
Harry McKenzie's user avatar
3 votes
1 answer
82 views

How can I pass an object (like a bmesh) to an operator or should I not do that?

I have an operator that creates a certain mesh but I want to keep things modular so I separated each operation into its own operator. Like for example, I have an operator that removes vertices that ...
Megan Love's user avatar
2 votes
1 answer
33 views

multi-file add-on cannot find import

I am working toward have a multi-file add-on, as our add-on is getting pretty long. I'm starting with a trivial example to build up from and can't even get that to work. I have two files at top level ...
Janet Rossini's user avatar
0 votes
0 answers
26 views

How To Capture Mouse Movements During Blender Operations

I'm looking to capture mouse movements while using specific Blender operations, such as ...
Axel Olsson's user avatar

15 30 50 per page
1
2 3 4 5
41