Questions tagged [source-code]

For questions relating to the blender c/c++ source code.

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

Does blender not handle RAM well? [closed]

I have a hunch blender might not be handling RAM properly. If I stay long enough and do enough stuff, my installation of 3.0 really starts slowing down and lagging. If I save and relaunch the exact ...
0
votes
1answer
51 views

How do I do animation using csv file? [closed]

I am trying to make an animation creation script using cvs. I referenced several csv scripts here, but I couldn't understand it at all because I not long ago learned Python. How can I input the csv ...
0
votes
0answers
64 views

How to make Extended Asset Browser feature turned on by default in 3.0?

Blender's 3.0 release is awesome especially the asset browser. However, I notice that I couldn't mark a Collection as an asset. In previous beta releases you could turn on Extended Asset Browser ...
1
vote
3answers
146 views

How does Blender compute local rotation axes for pose bones?

Consider the following armature: Two important notes: first, I'm using local space for posing, and two, the arm has zero bone roll. When I attempt to rotate the arm and restrict to the X, Y, and Z ...
0
votes
1answer
16 views

Remesh modifier script won't let me modify scale

So I made a script with two independent properties for the octree depth and scale features in the remesh modifier. The octree depth one works fine, but the scale one has no effect. what am I doing ...
4
votes
3answers
2k views

Can I use Blender to set up game logic?

I want to create a game using Blender 2.93. I don't know if I can use Blender to create the game logistics. I want to create a 3D game that's set up like Minecraft. An almost infinite world that's ...
0
votes
0answers
41 views

How do I recover my corrupted blender file through reverse engineering?

The only thing that crashed is blender, and my C drive keeps running out of space. The crash was caused by adding a remesh modifier after a subdivision modifier. I saved the backup file that saved my ...
0
votes
0answers
15 views

OSL 2.93 issues

Trying to edit procedural OSL script bricks and I can't seem to get the thing to render. I've just copied a few scripts and the shaders ins and outs appear but theres nothing coming out in cycles when ...
1
vote
1answer
44 views

How do I build an older version of Blender from source code?

I'm a beginner and I'm building Blender from source code for the first time. By using this URL "https://wiki.blender.org/wiki/Building_Blender/Windows", I was able to build the latest alpha ...
0
votes
0answers
17 views

How to get a key or data of a vertex of a curve using a ray cast?

I have curves where 2 or more curves share the same position and i I want to know those keys or identified of every point with a raycast, but ray cast just works with meshes, do u know how to use ...
0
votes
0answers
27 views

How to change Default Object Color in Source Code?

All new primitives have their default object.color set to white. Anyone know where to edit the source code so I can change the default object color to gray for example ...
0
votes
0answers
29 views

How to compute the output value(s) of a node in the shader editor at a specified location on the surface of an object using C/C++?

I've been working on an addon that requires to calculate the output value(s) of a specified node in the shader editor at specified locations (generated using my own algorithm) on an object. How can I ...
0
votes
0answers
65 views

NURBS surface to mesh logic in blender source

I'm trying to dig into the logic of "Convert to mesh from Curve/Surf" functionality in Blender but unable to pinpoint the exact source file where this logic is taking place. In my walk ...
1
vote
1answer
198 views

How to enable or disable panels with the click of a button

When I click on the "new" button, some panels that were disabled appear. I read their code, but I didn't understand. How do I get certain panels to appear when I click a button?
0
votes
0answers
56 views

How to find the UI code for a node/modifier

I want to be able to see the UI code for modifiers and nodes, which "edit source" doesn't work on. It instead gives the error "Active button is not from a script, cannot edit source&...
0
votes
0answers
19 views

Please help me understand how tiles work in Cycles

I would appreceiate some help in understanding how tiles work in Cycles. What I know so far: I figured out that they are managed by the class “TileManager” in /render/tile.h and that the session in /...
2
votes
1answer
22 views

How to know what's happening with a patch I submitted for Blender

About three months ago, I submitted a proposed patch for changing how the ParticleInstance modifier works in Blender (https://developer.blender.org/D9100). Since then, there has been no feedback. I ...
0
votes
0answers
60 views

No module named 'branch'

i was making a addon and i have this problem , i was looking for two days ago and i have not found nothing , im so tired with this. i saw a lot of question about this but they are not help me when i ...
0
votes
1answer
75 views

Node Editor - Python - Expose listed Node Groups dynamically in Node shelf panel

Issue Currently, node groups are only accessible in the Add menu then group sub-menu. You can't just click and drag them into use. You have to search, or go into sub-menus to use them. Question It ...
1
vote
0answers
83 views

Z_buffer, where to find it and how to use it?

I'm trying to implement some function in blender for an university essay but I'm stuck. I need the z_buffer of the rendering camera in cycles to find the distance between every pixel of the render and ...
1
vote
0answers
35 views

Position cameras on all vertices with respect to center view [duplicate]

I would like to generate training-data for an image classifier, based on a CAD model. Therefore I would like to position my object in the center of the scene and render it from different positions. ...
1
vote
0answers
30 views

Write new bone constraint

I have an idea for an IK-like bone constraint solver which I'd like to try. As far as I understand, there is no way to add such a constraint via the python API, is this true? What is the simplest way ...
2
votes
0answers
62 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)...
0
votes
1answer
29 views

Python panel source code [duplicate]

I saw a tutorial where the guy right clicked on any object in the GUI (he chose Transform->Translate) and he got the Python source code for that panel with an indicator for the line where the ...
0
votes
1answer
57 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 ...
0
votes
1answer
46 views

Has anyone edited the blender source code to enable unlimited undo's? [closed]

I was looking for a method that removes the undo cap, some said to make the count 0 which was so wrong, 0 just removes undo's that should have been made more clear, i lost an enitre file cuz of that, ...
0
votes
1answer
70 views

Looking for code files

I'm working on a project that will be evaluated in my university class "image processing and computer vision": I'm trying to recreate some experiment we studied in class with Cycles and, in ...
1
vote
1answer
462 views

Hot Key for Manifold Extrude

I know that in the beta release of Blender 2.9 there is the new manifold extrude function. It allows you to erase the edges or walls from an extrude and helps provide a quicker hard surface modelling ...
0
votes
0answers
114 views

Can addons be written in C to modify parts of Blender inaccessible through Python?

My experience with and understanding of coding is currently limited to three college courses on programming for business with Java, but I'm trying to learn how to code stuff for Blender. I want to ...
1
vote
1answer
44 views

How to check for an operator property

Trying to modify this to show up in the keymap instead of in toolsettings https://developer.blender.org/D6322 Creator says it was done as a tool setting so it can know when to draw facedots in xray. ...
2
votes
0answers
166 views

How to find python code of a built-in python operator?

To my knowledge, some built-in operators are written in python. This could be handy if I wanted to create a modified version of an operator for my add-on, since I could probably just copy the code and ...
0
votes
0answers
40 views

Why is Blender not procedural?

best example, changing the vertices after you add a circle, same with cylinder, sphere segments and so on. I think it is in the most 3D software like Maya, C4D and Houdini of course. Has it something ...
0
votes
3answers
522 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/
1
vote
0answers
31 views

Is it possible to create editable 3D templates in blender?

I hope someone can help me: Is it possible to turn animations created in blender into editable 3D templates that can be used in websites or apps where users can edit the scale and add textures etc I’...
0
votes
0answers
103 views

How to check the code of a Blender Operator?

So we can access UI element of blender's python code, but what If I want to inspect, check or study the code of existing operator in blender? Is it accessible anywhere?
1
vote
1answer
54 views

How to have multiple same editor panels (eg. two user preference window) with different states?

I want to have two user preference windows so that I can quickly search for short cuts In one of them, and change themes or other settings in another one. The problem is, all user preference panels ...
2
votes
1answer
31 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
1answer
237 views

Visual Studio can't read submodule definitions in Bpy

OS: Windows Python version: 3.7.4 (is in path, system wide install) Blender version: 2.83 (from current source) Issue: I can't get Visual Studio to show code suggestions past the main bpy level. ...
1
vote
0answers
17 views

open source code development [closed]

I want to develop the application engine in the blender but I will improve the open source how to improve it as you will recommend the book , site , lesson , video anything. Please can you help
1
vote
0answers
72 views

running the blender on a single node of a cluster

Does any one know how to keep blender alive without doing any job on a single node of a cluster? because the addon (CrowdRender) I used to build render farm requires the access to a blender-running ...
2
votes
1answer
154 views

Code behind the Simple Deform Modifier

I would like to improve the documentation of the Simple Deform Modifier. Therefore, I have inspected the source code (click here to view online. The math is 'do-able'. For example: the transformation ...
1
vote
0answers
37 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
1answer
220 views

Find implementation of specific class in source code

I am trying to find the following classes in the source code: SCREEN_OT_screenshot EXPORT_MESH_OT_stl However, I have no idea ...
0
votes
0answers
32 views

Vertically align toolshelf

I want to vertically align the toolshelf, so the main UI looks that way: If you noticed, I've already moved the navigation gizmo and associated buttons, but I've been digging into the source code and ...
0
votes
0answers
23 views

Tool bar icons in the source [duplicate]

I am looking for tool bar icon files either .svg or in any other picture format. But I couldn't find them. Other icons are in the blender_icons.svg file in "release\datafiles" Where are the tool bar ...
3
votes
1answer
672 views

Do Cycles nodes run on CPU or GPU?

I've been looking through the blender source code and noticed that nearly all cycles shaders are programmed in OSL. However, the Wiki mentions the following: It is also possible to create your ...
0
votes
0answers
61 views

Can I change a Thumbnail image without having to click on it (change it by code)?

I'm creating an Addon for Blender 2.8 where use a thumbnail panel: Here is my code: ...
1
vote
0answers
242 views

Can I build Blender source code using CLion?

I'm pretty new in Blender coding. I'm only did some small things using python scripting so far. I'm facing a problem where I wish to see more about the UI components of Blender (panels, icon viewers, ...
0
votes
1answer
158 views

Blender Physics constraint implementation sources

I wanted to know where exactly in sources, Blender implements the Bullet Physics for its rigid body constraint solving. That is, where does it pass the arguments such as Rigid Bodies, their ...
0
votes
0answers
29 views

Retrieve Ray Tracer data

I need to be able to, given a scene in Cycles, extract the values of direct lighting intensity and angle of incidence for every light ray that hits a mesh. The final goal is to use these values to ...