All Questions
627
questions
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
1
vote
1
answer
73
views
UIList with checkmarks (one on all others off)
I have an UIList in which I display a PropertyGroup defined like this:
...
0
votes
0
answers
42
views
Add icons (properties/operators) to Blender's Outline?
I'm trying and wondering if its possible to add new icons (to trigger properies or operators) in the Blender's Outline showing all the objects in the scene.
I mean adding new properties/operators in ...
0
votes
1
answer
53
views
Variable length list in Preferences (displayed as UI List with a selection checkmark)
I would like to have a list in the preferences of my Add-On where the content of the list is read from a file. (And therefore the length of the list is not known.)
In this list I would like to have a ...
1
vote
2
answers
47
views
How do I customize the draw_item method in UI List
I created a ui list in which each item in the list has 3 properties--name, type, and number. In the list in my panel, I would like to have the type and number, but not the name. Here is my Python ...
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 ...
0
votes
1
answer
39
views
how do I change the properties of the selected element in the UIList?
so, i have the ui list and many properties for each element witch is added to it. The idea is that when the user selects an object in the list, its properties are displayed at the bottom. He can ...
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.
...
2
votes
1
answer
89
views
How to make popup auto adjust width?
I want my popups to be wider to fit the label but it seems it is limited to this width as shown with a label with ellipsis. How do I make it wider? I tried ...
3
votes
1
answer
61
views
How can I display a bpy.types.Text custom properties in the interface?
Re an interesting question in another Q&A : https://blender.stackexchange.com/a/315212/86891
bpy.types.Text, which inherits bpy.types.ID, supports custom properties. It is possible to access, read,...
0
votes
0
answers
26
views
Blender crash after closing area from python script
I'm working on a contextual script for 3D_VIEW that shows a popup panel with different properties/buttons/operators.
One of the buttons calls the operator to close the area in which the script was ...
0
votes
1
answer
29
views
Why 2D Gizmo disappears when running Modal Operator?
I would like to know why 2D Gizmos disappear when running a modal operator using them?
Here is a trivial example of a code that creates a gizmo in 3d view and by clicking it and dragging we can move ...
1
vote
1
answer
118
views
Accessing Geometry nodes Socket Names
I'm trying to make a modifier list and for the Geometry nodes modifier, I cannot find a way to access the Socket name I have in my group input node.
I'm currently using this code.
...
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
40
views
Dialog to get user input during load_pre handler
I want to create a dialog to get user input during a load_pre handler for handling version control.
As .blend could be opened for edits by another user, I might want to notify users attempting to edit ...
1
vote
1
answer
96
views
Is there any way to create a boolean input to a ShaderNodeGroup in Blender 4.x using python?
I'm working now on a plugin that includes NodeGroups and I want to make a Boolean Socket. I remember that in the older versions it was possible to do this, but in the Interface system, I didn't really ...
0
votes
1
answer
53
views
Is possible to execute an operator (OT) from code and SHOW its UNDO panel?
Hello folks I'm trying to execute an operator from code (like calling bpy.ops.my_operator()) and I'd like to show its UNDO-REDO panel.
(The OT's panel is showing as ...
0
votes
0
answers
50
views
Showing (and modifying) a Color Ramp in addon's menu?
I've seen this post from 9 years ago and I'm asking it again because is possible that things have changed (I hope) when it comes to work with color ramps.
I'd like to display and modify a color ramp ...
4
votes
1
answer
215
views
Is there a way to create custom Node types or Nodes Categories using Python?
I want to create custom Nodes for my plugin, and I've found a few places on the web that say it can't be done, and a few places I've seen people say yes, but haven't explained how.
So what is the ...
0
votes
0
answers
31
views
How to implement outline entries like those found in an outline
I have a feature that can search for related objects associated with a specified object, similar to Unreal Engine's reference viewer. However, there's an issue: the usability of the user interface is ...