Questions tagged [python]
Python is an object-oriented programming language. In Blender, it is used as a general purpose scripting language and to create add-ons to extend Blender's functionality.
20
questions
1
vote
1
answer
18
views
Running modal seems to freeze if the mouse is not moving
I've written an addon for baking an animated material to a texture sequence. It works by creating a new image texture to bake to, baking to that image, saving the image to disk, and then moving on to ...
1
vote
1
answer
98
views
Control Blending Mode of the Color Mix node through the custom driver
Could somebody point me out on how to control the Blending mode of Color Mix nodes through the Custom Properties driver? I want to be able to choose between Mix, Multiply and Add parameters.
I have ...
0
votes
0
answers
40
views
Appending a great number of objects through scripting
I am currently working on a project in Blender that requires appending objects through script. I understand how to do that and everything works fine if I am appending a smaller number of objects (...
0
votes
0
answers
20
views
Props Dialog Width Issue
context.window_manager.invoke_props_dialog(self, width=400)
Should be giving me a popup window that is 400 wide, but it isn’t. At least not right away:
https://www....
2
votes
1
answer
15
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?
...
0
votes
0
answers
26
views
Is it possible to adjust 2d clothing image to 3d clothing with enough python code? [closed]
Is it possible to transform it into 3D like this??
0
votes
0
answers
14
views
Showing Info Text in Status bar as how "Merge By Distance" does
When "Merge By Distance" in action, I see in statusbar, some information like
"(infoicon)78 vertices removed" for a while (1-2 secs appears)
how can we do it in python blender API?
0
votes
0
answers
18
views
Similar to "Echo All commands" in Blender?
Is there a way to see which python codes or methods run when I press a hotkey ?
eg I Press "ö" and some action happens. and I don't know what it is.
(also Preferences > KeyMap > Key-...
0
votes
0
answers
19
views
Add more than two objects using driver distance
I'm currently working on a project and using the driver distance feature. I'm curious if it's possible to add more than two objects. Has anyone tried this before? Any advice or tips would be greatly ...
1
vote
0
answers
8
views
How to install the HCL or LCh Color Space for Blender's Compositor (for use in the Separate and Combine Color nodes)
I am working on a project within Blender that involves colouring black and white videos, and part of it involves using the "Separate" and "Combine" color nodes to overlay the color ...
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.
3
votes
1
answer
90
views
Python code doesn't work on 'Collection'
So I have this code that moves the vertices to the front on the affected objects:
...
1
vote
2
answers
43
views
How to run custom script (via python) after use "delete object" or "rename object"
Is it possible to run my own script after the "Delete object" and "Rename object" action? Not all at once deletion and rename - separately. (bpy.ops.object.delete(), bpy.context....
1
vote
1
answer
9
views
Get tags of appended asset browser object with python
I would like to get the tags of an object that I appended through the asset-browser.
I know this is possible with linked objects using:
...
3
votes
1
answer
84
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 ...