Skip to main content

All Questions

Tagged with
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 ...
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: ...
2 votes
0 answers
20 views

How to Get All Possible Values of an EnumProperty in Blender Python [duplicate]

I'm developing a script where I need to retrieve the available values of some EnumProperties in Blender. I found a similar question already answered here. However, ...
3 votes
2 answers
80 views

Interface Panel not Updating correctly

i'm currently trying to add presets to the addon i'm developing, while creating and loading those presets works fine, updating the values in the panel that the properties are used in does not work in ...
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, ...
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 ...
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 ...
4 votes
1 answer
686 views

Is it possible to execute two functions on a Pie button via an additional key pressed?

The mesh hide has two options, hide selected or hide non selected. So you need two buttons, but could it be possible to simply call the pie menu and then with an addition button pressed lets say RMB ...
1 vote
0 answers
28 views

How can I determine if the Dope Sheet menu state is expanded or closed via Python?

Is there a way I can access certain UI elements through a script in Blender? I am trying to access information within the Dope Sheet Editor. One thing I would like to achieve is to determine if a menu ...
2 votes
0 answers
20 views

Draw object selector property without drawing entire pointer property button

I want to draw just the datablock selector button from the pointer property ui: I tracked the operator down to bpy.ops.ui.eyedropper_ui, but when I draw it in a ...
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 ...
6 votes
0 answers
475 views

How do I change the width of the Adjust Last Operation panel?

I've done this simple operator taken from templates. How can I change the width of the Adjust Last Operation panel? I tried scale_x and ...
1 vote
1 answer
37 views

How to Align Icon to the Right in Blender Panel Header using python?

I’m trying to customize a panel using python in Blender 4.1, and I want to align an icon to the right side of the panel header. (like this) I’ve tried a few approaches, but I can’t seem to get it ...
0 votes
1 answer
377 views

Define the fbx file name : collection or active object name with a checkbox

I try to create this script but I’m newbie in python The aim is to export a fbx in specific folder when you click Export button. If the checkbox is True, then the filename get the name of collection. ...
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 ...

15 30 50 per page
1
2 3 4 5
42