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.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
35 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
65 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
0answers
30 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
31 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
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 ...
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 ...
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 ...
1
vote
0answers
46 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
0answers
95 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! /...
1
vote
1answer
433 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
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 ...
1
vote
0answers
468 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, ...
1
vote
0answers
90 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
679 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 ...
0
votes
0answers
8 views

Help with GPU Shader Drawing?

So I am trying to make a custom brush size similar to Sculpt mode: This is for visualizing the Brush Proximity for an object with Dynamic Paint modifier. I have this example which draws a rectangle ...
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
38 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 ...
0
votes
0answers
51 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 ...
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
28 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, ...
0
votes
1answer
37 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
1answer
82 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
24 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
38 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
0answers
14 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
0answers
29 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
0answers
229 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 ...
0
votes
0answers
48 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
0answers
339 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. ...
0
votes
1answer
71 views

How do I sort out this tracking actuator?

So without explaining everything, the tracking sensor tries to track to an object in a different layer that hasn't been added into the scene. To fully explain, the problem lies within which object ...
0
votes
0answers
115 views

How to insert Telugu text in input text box

I have made an addon with a input text box. I need to add text on Telugu language. But it appears as boxes in input field. Whne I see system tab under User preferences, in the interational font ...
0
votes
0answers
226 views

Freestyle on Render Layers

This may be a question for the developers. I am using several Render Layers to separate different freestyle line styles. There is a freestyle option to cache the View Map, which works great if you ...