Skip to main content

Questions tagged [scripting]

Questions concerning scripting in Blender using the Python programming language. Also use this tag for questions about scripting in OSL (Open Shading Language).

Filter by
Sorted by
Tagged with
1 vote
0 answers
9 views

Edit topbar menus without changing inbuilt UI-scripts

I'm making an add-on which inserts useful stuff to topbar menus. To edit topbar menus I've wrote an injector which automatically adjusts inbuilt UI-scripts in ...
Yaroslav's user avatar
  • 565
2 votes
1 answer
28 views

How can I add a library override to a non-API custom property from a linked file with Python?

The question regards setting custom properties of a linked file via Python. Because when setting the property like ...
iclemens's user avatar
  • 117
1 vote
0 answers
36 views

Is there a way to restart a modified addon without restarting blender? [closed]

This was answered 10 Years ago. Unfortunately, it doesnt work anymore. It should be a simple console command: bpy.ops.script.reload() However, it only reloads the <...
rhavin's user avatar
  • 111
3 votes
1 answer
51 views

How can I instantiate a Simulation Zone input / output node's socket via python?

I couldn't find an interface like the node tree interface where I can add sockets using interface.new_socket(). In the documentation, the only method I found for ...
Trantor's user avatar
  • 45
2 votes
1 answer
28 views

direction perpendicular to screen

I want to create a script that squeezes a curve along the vertical direction of the screen. Currently, I am using `def get_view_direction(): ...
hutianyi's user avatar
1 vote
0 answers
34 views

Memory management batch file script not working

using the information from this exchange(When Blender crashes during rendering), I made a script that for some reason doesn't work. The script I made is just like the one in the example except for the ...
IntoThe Abyss's user avatar
4 votes
1 answer
111 views

Scripting: Separate by loose parts and get created objects

I am looking for a scripting/code/api way to do a separate by loose parts and get a list of the resulting separated objects. There doesn't seem like there is a direct way to do this? You can do ...
Christopher Pratt's user avatar
2 votes
1 answer
32 views

KeyError: 'bpy_prop_collection[key]: key "View Layer" not found' when launching blender with external script

When I execute the following code within Blender, it works well regardless of whether it's version 3.x or 4.x. However, if I try to use it by launching Blender with a specific argument to open a ...
cscholl's user avatar
  • 315
0 votes
0 answers
12 views

is it correct to set the camera intrinsics in this way?

I have a 3x3 matrix inside a calibration file that has the intrinsics of my real room inside it. We will call them fx fy cx cy. I would like to know if the code I have written is correct, as I am not ...
wiseme's user avatar
  • 1
2 votes
0 answers
25 views

Operator called by another operator does not trigger Adjust Last Operation panel

I have an Operator defined as ImportImageOperator which calls another operator ...
stib's user avatar
  • 981
0 votes
0 answers
21 views

draw() not called on a Panel when X-axis mirror button is clicked [closed]

Here's minimal example. When you click the 'X' mirror button in the 3D View header, the draw method is not called, so the panel is not updated. But draw is called when changing the mode. How can I get ...
m35's user avatar
  • 1
-1 votes
0 answers
18 views

Script for importing an OBJ file as Shape key for blender 4.1

I have blender version 4.1 I’m trying to adapt the script for my version ...
notgrilbi's user avatar
0 votes
1 answer
18 views

How to display images in Blender on a panel

I would like to know the script to display the image data in Blender on the panel. The only way I can think of at the moment is to convert the image once into an icon. At first I tried to register the ...
mml's user avatar
  • 642
0 votes
1 answer
22 views

How to get the path to an image that the user chooses

I'm using openCV to process an image that is chosen by the user. For OpenCV I just need to get the path to the image, but I'm unable to find anything in the API which lets me just pick a file path (...
stib's user avatar
  • 981
0 votes
0 answers
14 views

I’m attempting to rig a wheel chair model. But I’m having issues with making the front wheels fuction as in when rotating to reverse & back to forward

The two front wheels are Childs of empties that are circles around the center of each wheel (x rotation). Each of the empties, are Childs of circle empties that are flat (z rotation), which are ...
Champagne And Romaine's user avatar

15 30 50 per page
1
2 3 4 5
431
-