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
22 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 ...
1
vote
0answers
10 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 ...
1
vote
0answers
16 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 ...
3
votes
0answers
42 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.
1
vote
0answers
25 views

Adaptive Sub Sampling for reducing noise in renders [closed]

I got the idea of using the Intel Denoiser to make a simple algorithm and give different pixels, different number of samples after one low-samples render. I further explain this idea in this video: ...
0
votes
0answers
90 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 ...
0
votes
3answers
133 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/
0
votes
1answer
85 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 ...
0
votes
0answers
22 views
1
vote
1answer
51 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: ...
2
votes
1answer
49 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 ...
1
vote
0answers
16 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 ...
0
votes
2answers
75 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: ...
0
votes
0answers
13 views

How to Test OptiX with GTX 16 Series?

so, i see this https://developer.blender.org/rB58ea0d93f193adf84162d736c3c69500584e1aef#change-e67uUgRJWMjZ . and then how to implement it to our blender?
1
vote
0answers
37 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/...
0
votes
0answers
20 views

How to select the layer above and below the current layer on Grease Pencil?

Does this feature in Photoshop exist in Blender's Grease Pencil? Also, could you develop an add-on for this feature?
1
vote
0answers
33 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
57 views

Equivalent of mesh.tessfaces.add, foreach_set in 2.8

I have the following code in an addon: ...
0
votes
0answers
34 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 ...
0
votes
0answers
58 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
1answer
35 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
13 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
74 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
296 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
109 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
1answer
565 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
66 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
76 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
41 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
78 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
95 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 ...
2
votes
1answer
211 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
162 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
1k 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(...
4
votes
0answers
49 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
294 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
152 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
120 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 ...
1
vote
1answer
37 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.
2
votes
0answers
291 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
37 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
1answer
87 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
50 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
13 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
284 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
1k 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 ...
5
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/...
1
vote
1answer
200 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
113 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
292 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 ...