Page MenuHome

Python APIProject
ActivePublic

Details

Description

This project includes the Python API, Add-ons, the console the text editor and more.

Status
The module is active. There are periodic development of new features and general improvements. You can see active tasks on the workboard. If you want to get involved, contact us (info below).

Members

Module owners: @Campbell Barton (campbellbarton)
Artists: <none>

Contacts

Links

Documentation

  • TODO.

Recent Activity

Today

Denis Dzyuba (d_dzyuba) added a comment to T90329: Registering a NodeSocket already registered by Blender crashes the software.

FYI: Replacing the 'official' Radeon ProRender 3.5.0 with the later 'unofficial' 3.5.2 version fixed this 'T103055: Blender 3.4 Crashes upon exit' issue for me -- although I had to start Blender in the factory default mode in order to uninstall the offending add-on (otherwise, attempting to disable it crashed Blender on the spot).

Fri, Dec 9, 11:02 AM · Python API, BF Blender
Omar Emara (OmarSquircleArt) merged T103055: Blender 3.4 Crashes upon exit into T90329: Registering a NodeSocket already registered by Blender crashes the software.
Fri, Dec 9, 10:44 AM · Python API, BF Blender
Pratik Borhade (PratikPB2123) changed the status of T103031: Regression: My blend file crashes when rendering in Blender 3.4 upwards, because of an unchecked NULL in the code. (stack trace provided) from Needs Triage to Needs Information from Developers.

@Aras Pranckevicius (aras_p) hi, can you take a look?
In rBe00f76c6a8ccaafbdd09b069923176ad23e3ce7e you'd removed the null check for *base in rna_Object_indirect_only_get

Fri, Dec 9, 6:22 AM · Python API, BF Blender

Yesterday

Iliya Katueshenock (Moder) renamed T103031: Regression: My blend file crashes when rendering in Blender 3.4 upwards, because of an unchecked NULL in the code. (stack trace provided) from My blend file crashes when rendering in Blender 3.4 upwards, because of an unchecked NULL in the code. (stack trace provided) to Regression: My blend file crashes when rendering in Blender 3.4 upwards, because of an unchecked NULL in the code. (stack trace provided).
Thu, Dec 8, 5:12 PM · Python API, BF Blender
Iliya Katueshenock (Moder) added a project to T103031: Regression: My blend file crashes when rendering in Blender 3.4 upwards, because of an unchecked NULL in the code. (stack trace provided): Python API.
Thu, Dec 8, 5:12 PM · Python API, BF Blender

Tue, Dec 6

Richard Antalik (ISS) merged T102939: INFO Box dissappears for running modal operator that uses pass though into T98892: Operator Modal Time Wrong Behavior .
Tue, Dec 6, 5:36 AM · Python API, BF Blender

Sun, Dec 4

michael campbell (3di) added a comment to T53768: Pixels and resolution not for multilayer EXR and Render Result.

Ton Roosendal suggested he agreed it would be a good for this to be a feature of the blender python api. He recommended to make some noise on right click select if we want this in Blender, so upvote it here:

Sun, Dec 4, 10:56 AM · Python API, Render & Cycles, Render Pipeline, BF Blender
michael campbell (3di) added a comment to T53768: Pixels and resolution not for multilayer EXR and Render Result.

I just spoke with gpt3 chatbot, and he's in agreement that the blender api should allow access to the multilayer EXR pixels as numpy array :D

Sun, Dec 4, 10:53 AM · Python API, Render & Cycles, Render Pipeline, BF Blender

Fri, Dec 2

Germano Cavalcante (mano-wii) changed the status of T102909: Method `Node.free` is not called for custom trees when custom tree is removed from Needs Triage to Confirmed.

If the node is not accessible anymore then in fact it should be freed.
But I'm not familiar enough with the Node API to say if this is a bug.
Can the same node be used in multiple trees?

Fri, Dec 2, 2:07 PM · Python API, Nodes & Physics, BF Blender

Thu, Dec 1

Germano Cavalcante (mano-wii) changed the status of T102885: IDproperty subtype can cause Blender UI to throw exception from Needs Triage to Confirmed.

I can confirm the problem.
In the last few changes to the custom properties UI, I'm not sure if the subtype was considered. (rBbf948b2cef3b, rB972677b25e1d)

Thu, Dec 1, 3:39 PM · User Interface, Python API, BF Blender
Colin Basnett (cmbasnett) added a comment to D16361: Python: Add decimate function to FCurve.

The clean-up aspects of this have been split out to a separate diff: D16658: Cleanup: Move F-Curve decimation functions to BKE namespace. When that is approved, I will update this one to just include the addition of the Python functionality.

Thu, Dec 1, 1:56 AM · Animation & Rigging, Python API

Wed, Nov 30

Bastien Montagne (mont29) closed T102550: Regression: hide_set and hide_viewport on the same loop crash blender as Archived.
Wed, Nov 30, 5:07 PM · Python API, Documentation, Core, BF Blender
Bastien Montagne (mont29) added a comment to T102550: Regression: hide_set and hide_viewport on the same loop crash blender.

Will update the doc. Note that using [:] syntax is enough, no need to explicitly store the list copy:

Wed, Nov 30, 4:43 PM · Python API, Documentation, Core, BF Blender
Germano Cavalcante (mano-wii) added a comment to T102845: GPU: Python crash in background mode.

We have this for example T84675: Batch Rendering Crashes if EEVEE set in scene.
Eevee Next will come with some changes to the DRW manager that will allow you to create a GPU context in background.
But maybe it is not created by default in background mode (for performance reasons).

Wed, Nov 30, 3:14 PM · Python API, BF Blender
Bastien Montagne (mont29) lowered the priority of T102550: Regression: hide_set and hide_viewport on the same loop crash blender from High to Normal.
Wed, Nov 30, 3:10 PM · Python API, Documentation, Core, BF Blender
Germano Cavalcante (mano-wii) closed T102297: Skin_resize not working properly after bmesh.verts as Archived.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Wed, Nov 30, 2:36 PM · Python API, BF Blender
Russ Housley (housleyruss1) added a watcher for Python API: Russ Housley (housleyruss1).
Wed, Nov 30, 12:28 PM
Raimund Klink (Raimund58) added a comment to T102845: GPU: Python crash in background mode.

Hi @Germano Cavalcante (mano-wii)
Is there already a task for gpu module improvement in background mode? Can point me to the task, please?

Wed, Nov 30, 9:49 AM · Python API, BF Blender

Tue, Nov 29

Germano Cavalcante (mano-wii) changed the status of T102856: Clickable area of Current File Assets in 'template_asset_view' is reduced when no 'drag_operator' is used from Needs Triage to Confirmed.

I can confirm the problem.
template_asset_view has been implemented in rB8925d3b7bf98: UI/Assets: Initial Asset View UI template
So @Julian Eisel (Severin) would be the best person to take a look at?

Tue, Nov 29, 8:05 PM · Python API, User Interface, BF Blender
Germano Cavalcante (mano-wii) closed T102845: GPU: Python crash in background mode as Resolved by committing rBd7f124f06f3f: Fix T102845: GPU python crash in background mode.
Tue, Nov 29, 5:56 PM · Python API, BF Blender
Germano Cavalcante (mano-wii) added a comment to T102845: GPU: Python crash in background mode.

The problem is that the gpu module (implemented in C++) is not initialized in background mode.
So the API in python should not work.
There are plans to change this and initialize a gpu context in background.

Tue, Nov 29, 5:50 PM · Python API, BF Blender
Germano Cavalcante (mano-wii) changed the status of T102845: GPU: Python crash in background mode from Needs Triage to Confirmed.
Tue, Nov 29, 3:57 PM · Python API, BF Blender
Raimund Klink (Raimund58) removed a project from T102845: GPU: Python crash in background mode: GPU / Viewport.
Tue, Nov 29, 11:33 AM · Python API, BF Blender
Raimund Klink (Raimund58) updated the task description for T102845: GPU: Python crash in background mode.
Tue, Nov 29, 11:33 AM · Python API, BF Blender
Raimund Klink (Raimund58) added a comment to T100913: Improve support for building Blender as a Python Module (WITH_PYTHON_MODULE).
Tue, Nov 29, 10:07 AM · Python API, BF Blender
Raimund Klink (Raimund58) added a comment to T100913: Improve support for building Blender as a Python Module (WITH_PYTHON_MODULE).

@artem (lobziq) You use the wrong python version. Each Blender release supports one Python version, and the package is only compatible with that version. You need Python 3.10

Tue, Nov 29, 10:04 AM · Python API, BF Blender
artem (lobziq) added a comment to T100913: Improve support for building Blender as a Python Module (WITH_PYTHON_MODULE).

[Blender as a Python Module] link from https://pypi.org/project/bpy/3.4.0b2/ redirects to 404 docs url
https://docs.blender.org/api/current/info_advanced_blender_as_bpy.html

Tue, Nov 29, 9:54 AM · Python API, BF Blender
artem (lobziq) added a comment to T100913: Improve support for building Blender as a Python Module (WITH_PYTHON_MODULE).

Apple silicon m1, python 3.8. Running command

Tue, Nov 29, 9:51 AM · Python API, BF Blender

Mon, Nov 28

Brecht Van Lommel (brecht) added a comment to T100913: Improve support for building Blender as a Python Module (WITH_PYTHON_MODULE).

I added a source code link in the description as well now, and removed @Tyler Alden Gubala (TylerGubala) from the pypi project maintainers and added a credit in the project description instead.

Mon, Nov 28, 9:00 PM · Python API, BF Blender
Brecht Van Lommel (brecht) added a comment to T100913: Improve support for building Blender as a Python Module (WITH_PYTHON_MODULE).
Mon, Nov 28, 7:55 PM · Python API, BF Blender
michael campbell (3di) updated subscribers of T53768: Pixels and resolution not for multilayer EXR and Render Result.

Out of interest, should the EXR issue and the Render result data be two seperate issues? It appears that the render data not being accessible is a feature request, but the EXR issue a bug (because image datablocks work for all other file types). @Evan Wilson (EAW) @Philipp Oeser (lichtwerk) ?

Mon, Nov 28, 6:35 PM · Python API, Render & Cycles, Render Pipeline, BF Blender
Evan Wilson (EAW) merged T102806: image pixels unavailable from python if multilayer EXR into T53768: Pixels and resolution not for multilayer EXR and Render Result.
Mon, Nov 28, 1:49 AM · Python API, Render & Cycles, Render Pipeline, BF Blender

Sun, Nov 27

michael campbell (3di) added a comment to T96829: Cycles: modifying properties through the Python console does not trigger updates..

Interesting. Can you think of a good solution?

Sun, Nov 27, 3:05 PM · Python API, Cycles, Render & Cycles, BF Blender
michael campbell (3di) added a comment to T53768: Pixels and resolution not for multilayer EXR and Render Result.

Plus there's no way to write the multilayer EXR data back out that I can see. I basically need to edit some of the layers on a multilayer EXR, then overwrite the original with the updated layers. The only way I can think of is to:

Sun, Nov 27, 2:37 PM · Python API, Render & Cycles, Render Pipeline, BF Blender
Derek Barker (lordodin) added a comment to T53768: Pixels and resolution not for multilayer EXR and Render Result.

Yeah, not being able to access pixels is adding multiple seconds to what should be a sub 100ms workflow, and its littering our workspace with files we do not need that we just have to call extra functions to delete in the end. writing to disk to access rendered pixels is a little absurd.

Sun, Nov 27, 2:20 PM · Python API, Render & Cycles, Render Pipeline, BF Blender
michael campbell (3di) added a comment to T53768: Pixels and resolution not for multilayer EXR and Render Result.

Can we get access to multilayer EXR from python while the new render result data access design is not even a glint in anyone's eye? Perhaps python bindings for the OpenEXR module already in use by Blender?

Sun, Nov 27, 2:13 PM · Python API, Render & Cycles, Render Pipeline, BF Blender

Thu, Nov 24

Germano Cavalcante (mano-wii) changed the status of T102738: crash when running python in background mode and calling region_3d.update() from Needs Triage to Confirmed.

The crash is because Space.region_3d.update() internally calls the GPU API without having GPU context.
(See view3d_winmatrix_set, GPU_matrix_ortho_set, or GPU_matrix_frustum_set).

Thu, Nov 24, 5:20 PM · EEVEE & Viewport, Python API, BF Blender
Monique Dewanchand (mdewanchand) added a comment to D16450: Optimize check on non editable name for evaluated ID's or embedded ID's..

Hi Bastien,

Thu, Nov 24, 2:25 PM · Python API

Mon, Nov 21

Bastien Montagne (mont29) added a comment to D16450: Optimize check on non editable name for evaluated ID's or embedded ID's..

Sorry, but I fail to see the risk.

ID Management is currently not being worked on. Is this this something that will be picked soon?

Mon, Nov 21, 12:36 PM · Python API

Sun, Nov 20

Monique Dewanchand (mdewanchand) added a comment to D16450: Optimize check on non editable name for evaluated ID's or embedded ID's..

Sorry, but I fail to see the risk.

Sun, Nov 20, 4:03 PM · Python API

Sat, Nov 19

Cezary Gregorek (czari) added a comment to T98109: ValueError: WorkSpaceTool.setup(): error with keyword argument "options" - : 'REGISTER' not found in ('KEYMAP_FALLBACK').

Hey, I've same issue and cant find any solution? Did you solve it?

Sat, Nov 19, 11:05 PM · Python API
Germano Cavalcante (mano-wii) changed the status of T102297: Skin_resize not working properly after bmesh.verts from Needs Triage to Needs Information from User.

The strange part: skin_resize only works correctly when commenting out the vert-loop in line 7.

In the example file, both scripts work correctly for me (the one with and the one without the commented line).
Note that the context in each editor is different. This can cause the result of mouse movement to vary for example.

Sat, Nov 19, 2:46 PM · Python API, BF Blender

Fri, Nov 18

Thomas Dinges (dingto) changed the status of T102297: Skin_resize not working properly after bmesh.verts from Needs Information from User to Needs Triage.

Copied over from devtalk, by user rbx775:

Fri, Nov 18, 3:34 PM · Python API, BF Blender
Bastien Montagne (mont29) added a comment to D16450: Optimize check on non editable name for evaluated ID's or embedded ID's..

Same issue as with D16536, think we first need to address T88555: ID Management: Sanitize and clarify our ID tags before we can make such optimizations.

Fri, Nov 18, 11:42 AM · Python API

Thu, Nov 17

Brecht Van Lommel (brecht) changed the status of T102588: Automate Python module release to PyPi on Buildbot from Needs Triage to Confirmed.
Thu, Nov 17, 5:52 PM · Python API, Platforms, Builds, Tests & Devices
Germano Cavalcante (mano-wii) changed the status of T102526: Crash Python API - GPUOffScreen.draw_view3d() crashes blender with draw_type = POST_VIEW but works with draw_type = POST_PIXEL from Needs Triage to Confirmed.

Thanks for the report, I can confirm the problem.

Thu, Nov 17, 3:28 PM · Python API, EEVEE & Viewport, BF Blender
Philipp Oeser (lichtwerk) added projects to T102550: Regression: hide_set and hide_viewport on the same loop crash blender: Documentation, Python API.

@Aaron Carlisle (Blendify) : could you add that? ^^

Thu, Nov 17, 1:18 PM · Python API, Documentation, Core, BF Blender

Wed, Nov 16

Germano Cavalcante (mano-wii) closed T102458: CustomNodes New Tree always named 'NodeTree' even for multiple and different Add-ons as Archived.

Thanks for the report, but the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors.

Wed, Nov 16, 9:23 PM · Python API, BF Blender
Jordi (JVM) added a comment to T101394: Importing file after making a new collection active hits an assert (View Layer Object Base out of sync).

Now this part it´s working on the las build from buildbot i´m using ( Broken: version: 3.4.0 Beta, branch: master, commit date: 2022-11-14 01:01, hash: rB0190b104c85c )
But unfortunately, i´ve found another one that can be related somehow with a lack of refresh on the view layer here ( https://developer.blender.org/T102550 )
Thanks!

Wed, Nov 16, 9:57 AM · Core, Python API, BF Blender

Tue, Nov 15

David Ballesteros (dballesg) renamed T102458: CustomNodes New Tree always named 'NodeTree' even for multiple and different Add-ons from CustomNodes New tree called 'NodeTree' even for multiple and different Add-ons to CustomNodes New Tree always named 'NodeTree' even for multiple and different Add-ons.
Tue, Nov 15, 10:38 AM · Python API, BF Blender