Questions tagged [development]

For coding questions about Blender development, including addon or script development with the Python API. Does not include general programming questions, non blender specific tasks or errors, nor compilation of Blender binaries.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Calling view_all() operator from another context is not working specifically on 4.0

I have this code in my addon. It just runs view_all() operator from another context. ...
Fatih's user avatar
  • 1
1 vote
1 answer
53 views

Can the blender api be used to create alternate viewport control modes

I am trying to build a workflow for painting equirectangular images. (I would pirate photoshop as I know it can do this but I am averse to running proprietary software) As seen in the image below I ...
NotImportant's user avatar
1 vote
1 answer
28 views

Addon doesn't work after restarting blender 3.3.1

I made an addon for blender (3,3,1). It works. I managed to install it. But after restarting the program, it stops working. At least the checkbox in the edit is active. I just can't find a solution to ...
WhiteFlame 's user avatar
0 votes
1 answer
44 views

PointerProperty for a particle system

Please, I would like to know How to make a pointer property for a particle system. My goal is having a prop that contains the particle system name and it updates when the particle system is renamed ...
Mostafa Samir's user avatar
0 votes
0 answers
50 views

Custom plugin documentation - Import Helper options

I'm a developer looking to write a plugin, but am having such a hard time finding docs on the options for many inbuilt blender functions. Specifically today I'm trying to customise the ...
Patrick S's user avatar
2 votes
1 answer
38 views

Gizmo culled depth doesn't take effect when mouse is hovered on it

I have created a GizmoGroup with the option DEPTH_3D enabled, which, according to the docs, "Supports culled depth by other ...
Colton Fox's user avatar
1 vote
0 answers
76 views

Get property that the operator was invoked for

Operators like anim.keyframe_insert_button can be invoked by right clicking a property or hovering over a property and hitting I. How does the operator know which ...
theres1's user avatar
  • 189
0 votes
0 answers
97 views

How can i create this (Ps2 Characters & Enviroment)

{ https://de.files.fm/u/mu93hd5qz } Hello I‘m wondering since days on how to make something like this. I wanna put myself as a „ps2“ character and i‘m curious on how he did it on the video. is there a ...
Damian's user avatar
  • 1
0 votes
0 answers
65 views

No type hints or auto-completion for bpy 3.4?

I was happy to hear in the release notes that we can now install bpy as a pip module as opposed to building Blender ourselves or using fake-bpy-module. However, after installing bpy using ...
Colton Fox's user avatar
1 vote
0 answers
208 views

UV Map editing with python

I have been trying to figure out the best way to make a material for Minecraft blocks inside of my addon. Excluding special cases, a Minecraft block is a 1-meter cube that has an image texture of ...
Jacob Stone's user avatar
0 votes
1 answer
29 views

Changing order of props in input dialog (addon development)

I'm creating addon that adds couple of objects to the scene and I need to control input arguments. Figured out that the best way for me (with almost zero experience with python but 25+ years in other ...
Wh1T3h4Ck5's user avatar
1 vote
1 answer
84 views

Who owns Blender? [closed]

Blender is an program that has been growing over the past few years through the work of the community. The development of the program is to my understanding largely community based. Although some of ...
Lennart Knospe's user avatar
1 vote
0 answers
302 views

How to convert Blender as a Python module into an easily downloadable package?

I have successfully converted Blender 3.2 into a python module on Windows 10 and can import it into my Python 3.10 scripts and run bpy commands. As described in Building Blender as Python Module on ...
Torrin worx's user avatar
3 votes
3 answers
369 views

How do you work with a GitHub repo inside Blender.app/.exe? [duplicate]

What is a good method to update a GitHub repository without manually copy/pasting the entire repo into the Blender addons folder when developing Blender add-ons?
Torrin worx's user avatar
1 vote
0 answers
189 views

Group Custom Node Tree

I am using the built-in python script template 'Custom Nodes' to create a custom node tree, and when I have finished most of the works and try to group my nodes, I find the menu item 'Group' is ...
Xi Lu's user avatar
  • 11
0 votes
0 answers
82 views

Can a new Node for Compositor be implemented as an add-on? (vs. modifying Blender code)

My goal is to add a new Node to Compositor. Currently it does nothing but I can already add it from the Shift+A menu... wowewow, great success! Is it be possible to deliver the new Node as an add-on, ...
Jaroslav Záruba's user avatar
1 vote
1 answer
159 views

Different result between applying matrix to mesh and applying matrix to object

...
Colton Fox's user avatar
2 votes
1 answer
59 views

Custom Nodes: How to make something happen when node is added

I'm creating a custom node tree and custom nodes following the blender script templates - https://github.com/blender/blender/blob/master/release/scripts/templates_py/custom_nodes.py The template does ...
Ed Tate's user avatar
  • 5,146
0 votes
1 answer
82 views

MixRGB vs math performance for single/greyscale values

I would like to know if MixRGB still calculates the three color channels if the input is a number or grayscale value. I am aware the result is the same either way but, this matters for simplifying and ...
Zak Nelson's user avatar
1 vote
1 answer
177 views

Dynamic Paint displacement use wrong normals if placed after deforming modifiers

I've been trying to use the displacement option from the Dynamic Paint physics modifier after an Armature modifier, but it seems that the normals used for the displacement direction are from the raw ...
Hulifier's user avatar
  • 5,798
4 votes
2 answers
161 views

How can the linear-time cost of Blender's .children Python property be avoided in scenes with many objects?

While working on optimizing an add-on that creates/manages a large number of objects, I noticed that invocations of bpy_types.Object.children accounted for an ...
NeverConvex's user avatar
  • 1,229
1 vote
1 answer
675 views

How can I change the size of a modal operator popup dialog box?

I have a modal operator that invokes itself and is called from an AddonPreferences PT. I have been trying to scale_x without success. A row.scale_x works within the size of the entire modal, it is 3....
noyogi's user avatar
  • 25
1 vote
1 answer
150 views

Remove "Preferences:" label from AddonPreferences, no bl_label to " "?

I see no "bl_label" in "AddonPreferences" in the Blender API. One of the buttons in my AddonPreferences is "Preferences" and it would be nice to remove the default "...
noyogi's user avatar
  • 25
0 votes
0 answers
38 views

What areas of mathematics will help me in creating this add-on?

I want to create an add-on like this. It edits the selected edge, adds vertices to it ( as much as you need - the parameter will be adjusted ), creates the curvature we want. I want to make this add-...
White Raven's user avatar
  • 1,033
1 vote
0 answers
519 views

Cannot import nested Python module when writing an add-on

I am working on my first add-on, though I am pretty experienced with Python having written multiple apps using Django. My project structure looks like this: ...
michael_vendler's user avatar
1 vote
0 answers
23 views

Info Node Eevee Integration [closed]

I am currently working on an integration for a length socket in the Hair Info node and got it working in cycles allready, but am currently struggling to find out where in the code the shader values ...
LasseF's user avatar
  • 11
3 votes
2 answers
314 views

Camera solving - what algorithm is used?

Note: this question is about how Blender is implemented, not how it's used. IIUC, Blender uses 8 points (or more) at two keyframes to calculate the position in space of the camera. What is the ...
Barak's user avatar
  • 563
0 votes
1 answer
180 views

Blender addon development [closed]

I have a hard modelling addon idea for blender. I have no coding experience and have no idea where to even start with learning coding or what I need to learn. It's an add on building on an existing ...
Max Lee's user avatar
1 vote
0 answers
252 views

Blender Dev. Custom properties set hide or non editable

I was wondering if is a way to hide or set as non editable a custom property. In Phyton i can use: object[ label_property ] = value_property I need to said... ...
user70587's user avatar
0 votes
2 answers
176 views

Menu list keeps on growing every time I debug my Operator script [duplicate]

This is a question about the process of developing an addon rather than a specific error in the script. I'm creating an Operator that I want to show up in the UV Unwrap menu. I'm editing the script ...
kitfox's user avatar
  • 1,586
2 votes
0 answers
101 views

Help me understand the viewport render pipeline with cycles

I am trying to understand the pipeline that creates a rendered image in the viewport with cycles from start to finish in the blender/cycles source code. A little bit of context (Skip if not interested)...
Alpengringo's user avatar
0 votes
1 answer
129 views

Git Flow when coding for blender

I am sry if this is the wrong place to ask this or if this has already been answered elsewhere but I couldn't find it. I am confused about the git workflow when coding for blender: When I clone the ...
Alpengringo's user avatar
1 vote
1 answer
301 views

Extending Sverchok - Development of new nodes in a separate addon

TL;DR: Is Sverchok designed to have their node list extended by third-party addons? If so, are there any formal templates to follow? I would like to play with the idea of developing new nodes for ...
user109785's user avatar
3 votes
0 answers
213 views

Is there a way to insert an operator into a menu?

I've written an add-on for saving files, and I want to insert it into the file>save menu. But if I use ...
stib's user avatar
  • 845
1 vote
0 answers
93 views

Viewport with external application?

Is it possible to display/draw the viewport of Blender in an another application? eg. Run blender in the background to display the wireframe view of a Blender file within another app? (Sorry if this ...
Dan's user avatar
  • 951
2 votes
0 answers
97 views

How to add my own SECOND splash screen

I want to add a second splash screen that will appear when I start blender and in which I can add my own text. This is necessary for my addon.
user78950's user avatar
  • 149
2 votes
0 answers
2k views

How the Blender 3D 2.8x Graphical User Interface is Made?

I want to know all the processes, functioning, involved languages, examples of code, and URLs to official sites with updated information if possible. NOTE: I'm not a programmer. I just want to know ...
DATALOT's user avatar
  • 182
0 votes
3 answers
949 views

Looking for Blender source code of version 2.79.7

Where can I find the source code, corresponding to this exact build 2.79.7 blender-2.79 e045fe53f1b0 ? - https://download.blender.org/release/Blender2.79/latest/
Wisi W's user avatar
  • 1
2 votes
1 answer
697 views

Accessing Blender's DNA Mesh struct via as_pointer()

How can I access the actual structure of a Mesh datablock in memory using the value returned from bpy.types.Mesh.as_pointer() In 2.79 Blender there used to be a possibility to do that by just passing ...
D. Skarn's user avatar
  • 677
0 votes
0 answers
185 views

Connecting A Node Group Between Principled and Output Shaders With Python

I am aware I could do ...
Ned's user avatar
  • 31
2 votes
1 answer
325 views

context.material.node_tree - context has no attribute to material?

I am trying to write an addon, I am making a node group that will be created with a single button however I have run into issues with these final lines: ...
Ned's user avatar
  • 31
2 votes
1 answer
568 views

Query if modifier exists on listed objects [duplicate]

I'm new to Blender and the way it works with Python, so I still don't understand quite well the way the different commands work. But I wanna create a small tool where i can assign a modifier to a ...
Eunice Panduro's user avatar
2 votes
1 answer
96 views

How to remove the upper tabs from the UI?(i.e Layout, Modeling, Sculpting etc.)

I want to streamline the UI of Blender from the source, so I was wondering where I could find the code concerning those tabs because all of them are very overwhelming and I would prefer to either ...
Kartik Kshirsagar's user avatar
1 vote
2 answers
504 views

How do I add an .obj file from a relative file location?

I need help adding an .obj file via scripting. I've tried using this line of code, but I'm having issues importing the obj file: ...
VortexHero's user avatar
1 vote
0 answers
72 views

How do you go about solving a bug in Blender: language selector in python console

For example, based on: Purpose of the languages selector in the Python Console I am familiar with git and reporting a bug. But my question is: How do you go about solving such a bug? Blender uses C/...
Yousif Tareq's user avatar
1 vote
0 answers
70 views

Where is the core code that makes up Blender's ShapeKey? [closed]

I'm looking for the core C / C ++ code that makes up Blender's ShapeKey. I'm looking for Blender standard features, not add-ons. I know Blender is open source, but I'm an amateur about Blender. ...
gncc's user avatar
  • 153
1 vote
0 answers
222 views

Equivalent of mesh.tessfaces.add, foreach_set in 2.8

I have the following code in an addon: ...
Mattwmaster58's user avatar
0 votes
0 answers
52 views

Why do Blender objects have one ShapeKey each?

I am using Maya and Maya has BlendShape. Maya's BlendShape is almost the same as Blender's ShapeKey. And, Maya's BlendShape can transform multiple objects with one node. However, Blender's ShapeKey ...
taichi's user avatar
  • 388
0 votes
1 answer
124 views

Add-On Dev: Open external file with default program

I was planning to create some simple help-like text or HTML documents in a local folder of my add-on, and provide "help" buttons on the panels to allow the user to access them from each section that ...
Robert's user avatar
  • 1,235
1 vote
0 answers
25 views

Add-on Dev: Label Tool-tips?

I have a list of 12 'elements', where several check-boxes will relate to each element. The best way I can think of to handle this type of situation is to draw the check-boxes without labels, then ...
Robert's user avatar
  • 1,235