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
1answer
23 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 ...
1
vote
0answers
9 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 ...
0
votes
0answers
13 views

Add-On Dev: PropertyGroup Constructor

Is there any way to define a constructor-like mechanism for a class derived from bpy.types.PropertyGroup? I have two instances of the same property group class, ...
0
votes
0answers
35 views

Blender Add-On Dev: importlib.reload()

Has anyone found a good way to use the importlib.reload() function? I just realized that every time this is called to reload a specific module, it completely ...
1
vote
0answers
45 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 ...
0
votes
0answers
40 views

How can I detect when the active or selected object changes using Python?

Is it possible to detect changes in object and collection selections or activations (bpy.context.object/collection)? I'm most interested in detecting changes in the ...
2
votes
0answers
25 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, ...
1
vote
1answer
39 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 ...
0
votes
1answer
29 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? ...
2
votes
0answers
30 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 ...
0
votes
0answers
30 views

Blender Python: Print debugging text from functions

I'm looking for a simple text-print setup where I can see multiple text outputs (multiple lines of text), similar to writing to a text file while ending every statement with an end-of-line. A simple ...
0
votes
1answer
25 views

Blender Python: Generate custom property (due to error bpy_struct[key]: key “PropertyName” not found)?

Is there a way to force Blender to generate a custom property ahead of time? It looks like custom properties added to objects are only generated when the user changes them from the default in the UI, ...
1
vote
1answer
26 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 ...
0
votes
1answer
33 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, ...
0
votes
0answers
35 views

Blender Python: Detect Collection Exclusion Checkbox? [duplicate]

Is there any way to logically check the state of each collection's primary checkbox (the one to the left of its name in the outliner)? When the box is toggled, the info panel shows "bpy.context.scene....
1
vote
3answers
96 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(...
3
votes
0answers
34 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 ...
0
votes
1answer
63 views

Blender Python: Custom Enum Flags

I've been trying to set up some custom enum flags. In my situation, there are two variables that I want to share the same enum type setup. So I would like the flags to be interchangeable between them. ...
0
votes
0answers
23 views

Blender Python: Return multiple values? And variables vs references

I come from C++ where I really abused the use of references in function parameters. Example: ...
0
votes
0answers
37 views

Blender Python: Selections and Context

I'm trying to understand how selections and active objects work within a context. I thought I understood that a selection is part of a context. I read somewhere that you can create a copy of a ...
0
votes
1answer
50 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
0answers
13 views

Building blender in custom folder?

How do you build Blender in a custom folder. I did this and it works once. make full x64 builddir name_of_new_build_folder but when I run the same again I get ...
0
votes
1answer
23 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
0answers
77 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
33 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! /...
0
votes
0answers
25 views

Python Addon Can't Locate Submodule Folder

I'm trying to build an addon that has multiple sub-modules located in the same folder as the __init__.py that pulls everything together. It's exactly the same set-...
0
votes
1answer
31 views

Using the node editor in a private project

Developer question: Is it possible to grab the Node editor (i.e. the one used for compositing) and define my own elements for a totally different project? I'm just looking for the nifty graphics and ...
1
vote
1answer
34 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 ...
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.
1
vote
1answer
269 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
383 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 ...
4
votes
1answer
2k 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/...
1
vote
1answer
110 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: ...
2
votes
0answers
69 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 ...
0
votes
0answers
223 views

Source Code Blender

Can someone tell me in which part of the source code is this section of tabs? I have searched a lot but in fact I need help because it is too long both in lines of code, as in number of files, and it ...
5
votes
1answer
470 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->...
2
votes
0answers
88 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 ...
0
votes
1answer
52 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 ...
1
vote
0answers
48 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
119 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 ...
0
votes
0answers
47 views

When I try to call a mode_set operator from one of these handlers, the traceback blender crashes

I tryied to come with a elegant solution fot easily removing handlers from blender. I was thinking in something like that. The cool part is that in this case you can have independent namespaces for ...
0
votes
1answer
55 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 ...
1
vote
1answer
365 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 ...
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 ...
1
vote
0answers
462 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, ...
0
votes
1answer
216 views

How to avoid fence post issues when changing modal operators?

Is there a recommended option for avoiding fence-post issues (as in waiting for input) when exiting or changing a modal operator in Blender? It's been something I've been trying to find a nice ...
2
votes
2answers
739 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 ...
0
votes
1answer
65 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
0answers
332 views

How do I find the Blender api source code I would like to change in building folder?

I try to build Blender and have a customize matcap list. I have already successfully change the default matcap to my own one. And now I wanna to add more on the list like the reference image below. ...
35
votes
1answer
23k views

What's the purpose of the EEVEE rendering engine?

Is it an alternative to Cycles, or just for the 3D viewport?