Skip to main content

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.

4,065 questions with no upvoted or accepted answers
49 votes
1 answer
3k views

Custom trackpad pan/zoom/rotate behavior add-on

I'm trying to write an addon to customize the trackpad panning, zoomimg, and rotating gestures, but can't find a way to read the actual trackpad parameters for position and so on. The properties in ...
rraallvv's user avatar
  • 4,561
11 votes
1 answer
592 views

Save screenshot (bge) without writing to disk

This is a little odd but I need to save a screen-shot as an array (numpy array for eg) without writing to disk. The idea here is to create and then call the array once per frame in an external script ...
Snesticle's user avatar
  • 321
10 votes
1 answer
733 views

How can I get a list of currently running modal operators?

Here I found a working solution using ctypes which allows to find out if any modal operator is currently running. I am not good in C and don't understand how it works. But I'm sure someone does, so is ...
Andrey Sokolov's user avatar
9 votes
1 answer
3k views

Creating custom node types for geometry nodes

is it possible to create custom nodes for the geometry node editor (NOT node groups, combining blender built-in nodes), define inputs and outputs and execute some python code in between? I couldn't ...
Max Hacki's user avatar
9 votes
0 answers
248 views

Play/animate images, spritesheets or video files in 'template_icon_view'

I want to "play" some animation in this UI space, the template_icon_view: I can load all the images I want, for example: I know that the gif format is ...
yhoyo's user avatar
  • 2,285
8 votes
0 answers
875 views

Operator tooltip from layout text

The concept is to make a panel layout that emulates the workspace (screen) layout. While testing I have set all the buttons to be the Splash Screen operator. An image of how this looks for five ...
batFINGER's user avatar
  • 84.6k
8 votes
0 answers
367 views

Blender on Windows is skipping python script. (brenda on windows)

We've been using Brenda for quite some time now for rendering architectural stills. Since our editing stations are doing nothing at night, I started making a desktop app that allows you to pick jobs ...
Wouter Vandenneucker's user avatar
7 votes
1 answer
275 views

How to display an image in my custom node

I have a custom node and I want it to be able to display an image. I know that the node has a parameter show_preview and if you enable it, no image appears.
user78950's user avatar
  • 169
7 votes
0 answers
807 views

Scale operator icon OR make template_icon clickable

I am trying to present the user with a gallery view to select a item from the thumbnails. Ideally, they click a button, are presented with the gallery view, and with a single click choose the item. I ...
dvhart's user avatar
  • 193
7 votes
0 answers
642 views

Update function for NodeSocket?

How do I set a callback for socket input change (value or link change) when having a custom node? I have a socket defined like: ...
Hitokage's user avatar
  • 207
7 votes
0 answers
639 views

Is there a low level alternative for bpy.ops.object.convert(target='CURVE')?

(Note: Somebody asked there nearly the same question as me and got a very nice answer. However, this was to convert an object to a mesh. I have exactly the same context as this person but I want to ...
Arnaud's user avatar
  • 183
6 votes
0 answers
474 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 ...
Kosmos3D's user avatar
6 votes
0 answers
715 views

Is there a low level alternative for bpy.ops.mesh.separate()?

I am dealing with a great model, I have a problem, I want to divide it by parts, but bpy.ops.mesh.separate(type = 'LOOSE') seems to have a big problem, that is not ...
Noob Cat's user avatar
  • 1,257
6 votes
1 answer
2k views

How to wait for an operation - to another operator - to complete within an operator (import_scene)

Besides the point but why is this not working as a default stack is expected to work? I'm trying to get an operator to call another operator and wait for the operator's response before proceeding. ...
MostHost LA's user avatar
6 votes
0 answers
1k views

Can Blender automatically reload external script files when they are changed?

I came across this question: Is it possible to run a script from an external editor without reloading the file? Which also was asked over here in a similair format: Workflow for developing add-on/...
user007's user avatar
  • 536

15 30 50 per page
1
2 3 4 5
271