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).

0 votes
0 answers
3 views

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

when I fire the following code inside blender it's working well, no matter the version 3.x or 4.x But if I try to use it when launching blender with specific argument telling to open a blender file ...
cscholl's user avatar
  • 193
0 votes
0 answers
11 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
20 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
  • 959
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
16 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
16 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
18 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
  • 959
0 votes
0 answers
12 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
1 vote
1 answer
102 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 ...
3DBear's user avatar
  • 835
0 votes
0 answers
22 views

Blender Script - 3D Cursor management

I'm making an addon with miscellaneous buttons and I've got a problem with the cursor management. I copied a line from my custom pie menu and pasted it to my addon script and replaced "pie....
norab's user avatar
  • 136
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?
Zen Of Kursat's user avatar
0 votes
0 answers
20 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-...
Zen Of Kursat's user avatar
0 votes
0 answers
23 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 ...
N03's user avatar
  • 433
1 vote
0 answers
9 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 ...
The VFX Man Colorization VFX E's user avatar
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.
Nra's user avatar
  • 1

15 30 50 per page