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
36
votes
1answer
24k views

What's the purpose of the EEVEE rendering engine?

Is it an alternative to Cycles, or just for the 3D viewport?
5
votes
1answer
577 views

Blender linear RGB to sRGB conversion

Does anybody knows what operation Blender does when it saves the image to .png file? I am interested in an exact formula, it might be also the source code. What I found in source till now is RGB->...
5
votes
1answer
384 views

Trying to extend the animation system

I'm trying to modify Blender to add something I call (informally) "bone inertia". It's a bit like having a soft body attached to a parent bone that's used to drive the child bone. The difference is ...
4
votes
1answer
3k views

How to edit 2.8 UI icons?

Blender 2.8 comes with a set of monochromatic icons which seem to be stored inside datafiles/icons/*.dat. How can these icon files be edited/replaced with other/...
4
votes
1answer
1k views

Does Blender have a Wayland backend?

I'm working on trying to submit a bug for an issue while running Blender 2.78c under Wayland, and need to know if Blender has a Wayland backend, or if it is still using X11 via Xwayland when running ...
4
votes
0answers
44 views

Blender Python: Output Paragraph of Text?

Is there any built-in support for automatic line breaks when writing text to the UI, such as through the layout.label() function? For example, if I set text that ...
3
votes
0answers
68 views

Cycles Displacement Socket performance considerations

Preface -- I'm not a skilled C-language coder at all, just a hobbyist-artist. This is an absolute newbie question involving Cycles code, and I was referred here by staff at CGCookie. Question: In the ...
2
votes
2answers
837 views

What do I need to become a Blender developer?

I have been wanting to become a developer for some time. I want to keep software up to date and put some ideas in practice, like creating a remesher with flow detection. I like to use python to write ...
2
votes
1answer
899 views

What are Blender nightly builds?

Lately I've been hearing this term a lot, but I don't really know what does it means.
2
votes
1answer
234 views

Macro operator children are not called from python

The Macro operator in the following code calls two other operators that log the calls of their invoke and execute functions. If the macro operator is called from the ...
2
votes
2answers
926 views

EnumProperty fill dynamically using callback

Fellow pythons, greetings. I am trying to create a dynamic Enum property that lists all objects on the scene with a certain custom property. However, whenever a new object is created on the scene (and ...
2
votes
0answers
49 views

How to check if mouse is in View3D Window from modal operator (2.80)

In the context of a modal operator, I would like to perform an operation when the left mouse button is clicked in the VIEW_3D area, ...
2
votes
0answers
44 views

Blender Python: Access Selected Collections?

How would I go about accessing the list of selected collections? It seems as though the selection state of collections is something specific to the Outliner? But I can't seem to find anything in the ...
2
votes
0answers
12 views

How to contribute as systematic beta tester

I am torturing Blender 2.80 beta as video editor to try to uncover bugs. I would like to know if there is any kind of list of tests to be done, in order to help developers.
2
votes
0answers
76 views

Real World Roughness Samples in Blender

TLDR: We've developed a method to measure a surface's microfacet distribution, and are looking for a way to integrate this in a Cycles shader. For more info, see this paper. Hi all, Together with a ...
2
votes
0answers
95 views

Blender(cycles) fails to render correct values in some pixels. Fails to hit correct triangle. Why? And how to avoid this problem?

I do some rendering in blender(cycles). I render with the help of cycles nodes .exr images, where in each pixel instead of rgba-channels I store xyzObjectIndex-channels. Everything works fine up to ...
2
votes
0answers
505 views

How Does Eevee Handle Shader Nodes?

I have been reading about GLSL development and the applicable portion relates to how different shaders pass data between each other. As I understand it once a shader finishes the computed color, ...
2
votes
0answers
61 views

What environment is used for building the Linux Blender executables? [closed]

The Blender precompiled binaries for Linux available at the official download page are said to suit most Linux distributions, with the only requirement of glibc2.11. I'd like to know how are such ...
1
vote
3answers
476 views

Blender Python: Call operator function from another function?

Sorry guys, I know I'm asking a lot of questions. I really am trying to find these before I ask. After searching, it looks like the best way to report a user-error to the user is by using self.report(...
1
vote
1answer
280 views

Patch notes for 2.8 beta?

Where I can see it? Doesnt seem to find anywhere. And new updates are released every day it seems? Should I update Blender every day too? Afraiding of that something will be broke in updates, like ...
1
vote
1answer
415 views

How to create a minimap with independent movement?

How can I adapt this script to the following needs? I want to be able to... move camera only camera travel a long the mini map shows the map in a litle circle in a corner of the screen without ...
1
vote
2answers
847 views

Search custom properties in objects on the scene (Python)

Is it possible to somehow search all objects on the scene which have a custom property enabled using prop_search? I know how to do this with dynamic EnumProperty but it seems to be not an option as ...
1
vote
1answer
149 views

Blender Python: Declare Property Group (on the stack?)

The questions keep coming, I know. I cannot find this simple answer anywhere. It may be because I'm not sure exactly how to phrase it in searches. Is it possible to declare a variable of a custom ...
1
vote
1answer
35 views

Why blender is not registering its website on brave rewards?

I was trying to send blender some fund but my brave browser said that blender website is not registered for brave rewards.
1
vote
1answer
40 views

What brings 3d software to gain weight?

I would like to ask a somewhat unusual question. A few days ago I downloaded the 2.26 version of Blender and I noticed that it weighed less than 5mb, what I wonder is why today Blender (but in general ...
1
vote
1answer
146 views

Event key for “TAB” and “TAB + shift” on add-on modal?

I am finalizing a Blender add-on and I have an issue on the modal part with 2 events triggered by TAB or TABSHIFT. Here is the actual code: ...
1
vote
0answers
10 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 ...
1
vote
0answers
24 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/...
1
vote
0answers
30 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. ...
1
vote
0answers
25 views

Equivalent of mesh.tessfaces.add, foreach_set in 2.8

I have the following code in an addon: ...
1
vote
0answers
11 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 ...
1
vote
0answers
52 views

Blender Python: Fixed size list of elements?

I need 4 instances of a property group sub-class in my primary class, and I want to access them (main.sub[*].x) based on an enum or index. Here's a fictitious (and ...
1
vote
1answer
55 views

Blender Python: Convert Enum Flags into String?

It seems difficult to find any information about enum-flag usage and workflow. I'm familiar with bitflags and related operations, but the blender/python specifics are fun to figure out. Is there any ...
1
vote
1answer
89 views

Blender Python: setter not working

Can anyone help me understand why my setter works sometimes, then it will stop working, then start again? For example, I can referesh my add-on, the setter will not do anything but throws no error, ...
1
vote
0answers
168 views

can I use tkinter with blender?

I want make game engine i can use bpy without run blender but I do not know how to create gui with bpy is there are way to create gui with bpy or use by with tkinter
1
vote
0answers
34 views

Where should I start to learn the internals of Blender?

I have tried the new blender 2.8 canidate version and am impressed so much. I would like to learn more about the internals of it. Could you guys point me some links ? I will appreciate it. Thanks! /...
1
vote
1answer
653 views

Running Blender under Virtualbox

I setup a VirtualBox machine under Windows for dev related stuff (python, visual studio etc), everything works except that I cant run Blender :( it crashes with ...
1
vote
0answers
49 views

Writing rendered image to file (C++)

I am trying to modify a little bit the source code of blender to fit it to my needs. Does anybody know which function is responsible for saving a rendered image to file? Thanks in advance. What I ...
1
vote
0answers
128 views

Create a Button with a Large Icon

How would I add a button with a large icon in the Blender interface in my menu for an addon? I figured out how to make a button with a small icon on the left side, but if I want an image to be the ...
1
vote
0answers
94 views

Store custom class a property

I am trying to store a custom class in a property group. I tried doing it this way: ...
1
vote
0answers
732 views

Texture atlasing in blender to substance painter?

I am working on many assets for a game proyect , I used blender to model the props and prefer substance to work on pbr shader for unity engine 5.5 , first of all , before ask my question , I need to ...
1
vote
0answers
37 views

Question to Blender developers on file handling in Windows [closed]

On one of our Windows 10 PCs we are not able to access render output files of Blender v.2.78 using windows explorer: The file is listed in the file selection dialog in Blender, but is not visible to ...
0
votes
1answer
2k views

Download a specific Blender source version from Git

I've installed and use official Blender 2.79 on my Os X. Now I'd like to better understand its structure, and try some development. So I'm trying to download hash 5bd8ac9 11-09-17 from git (the hash ...
0
votes
1answer
40 views

Blender Python: Property Description String Limit?

Is there a string length limit for the descriptions of properties? I assume there is. Does anyone know what that length is, and is there a safety mechanism to catch strings that are too long? ...
0
votes
1answer
83 views

Blender Python: Detect New Scene?

Very simple question from a very new add-on developer. How would one go about detecting when a scene is started fresh or loaded from file? For example, if you have some add-on preference variable ...
0
votes
1answer
79 views

Is there a reason why handler functions are added differently from custom driver functions?

If I add a handler, I use: bpy.app.handlers.handlertype.append(captainFuture) If I want to remove it, I usually use the cheap way out since I still haven't ...
0
votes
1answer
27 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 ...
0
votes
1answer
61 views

Properties Editor: How to change short to int for “Pass index” button in Relations?

I am numbering objects in my scene with the help of "Pass Index" button. . Apparently this button is short and it can not be set to more than 32767 objects in the scene. I would like to change ...
0
votes
1answer
72 views

Blender C, Object struct name

I try to get my name object from Object struct, but it seem that name doesn't exist in this struct. Where is name of Object. ? Thanks a lot.
0
votes
2answers
38 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: ...