Skip to main content

All Questions

Tagged with
-1 votes
0 answers
16 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
19 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
3 votes
1 answer
86 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
  • 35
0 votes
0 answers
26 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
45 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
60 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
47 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
  • 543
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,549
3 votes
2 answers
110 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
  • 543
-1 votes
1 answer
44 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
64 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
  • 543
4 votes
2 answers
493 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
19 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
  • 13

15 30 50 per page
1
2 3 4 5
80