Skip to main content

All Questions

Tagged with
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
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
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
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
80 views

panel_prop Boolean Property from property group resets automatically to default value without throwing errors

the goal was to simply have a bool value to change whether or not to show a custom panel with additional settings or no, it is modifier specific the first thought was simply register it on ...
user avatar
3 votes
2 answers
161 views

Why is my Stretch-To update button looking for Grease Pencil in Blender 4?

I've been trying to make a button to reset all the stretch-tos in my custom armature as per this question, but my previous menu work has all been in a new menu section in the sidebar of the 3D view. ...
MisterLBlends's user avatar
2 votes
0 answers
96 views

Custom Blender Python icons with adjustable colours

I am writing a Blender add-on and I want to add a custom icon into the UI panel. I can do this with bpy.utils.previews, but it seems to only want PNG files so if I ...
Walter's user avatar
  • 359
0 votes
1 answer
63 views

Minimal object add-on UI with sub-meshes and Redo

I finally have this working UI, after exploring many rabbit-holes, so wanted to share it in the hope of improving its performance. Follow-up to this question. The key goal is to preserve the 'redo' ...
koober's user avatar
  • 51
1 vote
0 answers
127 views

Importing bpy.types malfunctions in custom script directory

Why can't bpy work properly when a script is loaded from a custom file directory? Given that there is a file on C:\scripts\addons...
BlenderEnthusiast's user avatar
0 votes
1 answer
53 views

Can someone help me troubleshoot this addon?

I want to make it so I (and my students) can access the Graph Editor's "Key" menu from the Timeline. This is very easy to do by changing the source code: in ...
Lincoln Ward's user avatar
0 votes
0 answers
142 views

How to write a script to add a button to the header of the 3D View?

I am trying to learn how to script in blender and also the basics of creating addons. Most beginner tutorials show how to make menus in the N panel. But I really want to know how to make menus in the ...
Asura_Sloth's user avatar
1 vote
0 answers
34 views

Is it possible to make a class from bpy.type to implement an abstract class?

Here is my problem: I'm making a Class A. This Class A, has some common functionality that I need to also add to another class (bpy.types.GPencilLayer). Since that functionality is going to be common, ...
Ommadawn's user avatar
  • 648
0 votes
1 answer
299 views

Creating properties dynamically for UI panels in a Blender addon

I'm currently working on a Blender addon, and I'm facing an issue regarding the creation of dynamic properties for UI panels. Specifically, I'm trying to read parameters from a JSON file and display ...
Adrián Delgado Del Sol's user avatar

15 30 50 per page
1
2 3 4 5
7