Page MenuHome

Python APIProject
ActivePublic

Details

Description

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

Important links

Contacts

Sub-Modules:


Long-Term Roadmap

Python & Addons

Recent Activity

Yesterday

Philipp Oeser (lichtwerk) placed T86332: Cycles dicing camera is not settable in the UI up for grabs.

but so does e.g. the Sun Position Addon [and there it is working properly].

that does not do the following though

Sat, Mar 6, 1:13 PM · Python API, Render & Cycles, BF Blender
Philipp Oeser (lichtwerk) triaged T86332: Cycles dicing camera is not settable in the UI as High priority.
Sat, Mar 6, 12:41 PM · Python API, Render & Cycles, BF Blender
Philipp Oeser (lichtwerk) added a project to T86332: Cycles dicing camera is not settable in the UI: Python API.

It is caused by rB08dbc4f996e4: PyAPI: use postponed annotations to support Python 3.10

Sat, Mar 6, 12:41 PM · Python API, Render & Cycles, BF Blender
Campbell Barton (campbellbarton) updated the diff for D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
  • Add assert if any *unsafe* tags are set as extra tags.
Sat, Mar 6, 11:09 AM · Restricted Project, Python API, Core
Campbell Barton (campbellbarton) updated the diff for D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
  • Don't set session UUID for temporary ID's
Sat, Mar 6, 11:03 AM · Restricted Project, Python API, Core

Thu, Mar 4

Sybren A. Stüvel (sybren) added a project to D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading: Restricted Project.
Thu, Mar 4, 3:26 PM · Restricted Project, Python API, Core
Bastien Montagne (mont29) requested changes to D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
Thu, Mar 4, 2:28 PM · Restricted Project, Python API, Core
Campbell Barton (campbellbarton) updated the summary of D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
Thu, Mar 4, 1:23 PM · Restricted Project, Python API, Core
Campbell Barton (campbellbarton) updated the diff for D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.

Use methods to avoid passing the BlendData as an argument to 'load'.

Thu, Mar 4, 1:22 PM · Restricted Project, Python API, Core
Sybren A. Stüvel (sybren) accepted D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
Thu, Mar 4, 11:52 AM · Restricted Project, Python API, Core
Campbell Barton (campbellbarton) updated the diff for D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
  • Correct comment
Thu, Mar 4, 11:49 AM · Restricted Project, Python API, Core
Sybren A. Stüvel (sybren) requested changes to D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.

LGTM except for one little thing.

Thu, Mar 4, 11:44 AM · Restricted Project, Python API, Core
Campbell Barton (campbellbarton) updated the summary of D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
Thu, Mar 4, 11:20 AM · Restricted Project, Python API, Core
Campbell Barton (campbellbarton) updated the summary of D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
Thu, Mar 4, 11:19 AM · Restricted Project, Python API, Core
Philipp Oeser (lichtwerk) changed the status of T85482: Bug on depsgraph from Needs Triage to Needs Information from User.

Cannot reproduce here (tested in both 2.91 and current 2.93)

Thu, Mar 4, 11:02 AM · Python API, BF Blender
Campbell Barton (campbellbarton) planned changes to D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
Thu, Mar 4, 10:06 AM · Restricted Project, Python API, Core
Campbell Barton (campbellbarton) updated the summary of D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading.
Thu, Mar 4, 9:56 AM · Restricted Project, Python API, Core
Campbell Barton (campbellbarton) added projects to D10612: PyAPI: add bpy.types.BlendFile.temp_data for temporary library loading: Core, Python API.
Thu, Mar 4, 8:41 AM · Restricted Project, Python API, Core

Wed, Mar 3

Dylan Reeve (cadtofu) added a comment to T85841: color style of banner in Python Console arouse ambiguity.

@Dylan Reeve (cadtofu) please do not set release goals yourself, only active developers should be in charge of that.

Wed, Mar 3, 8:13 AM · Python API, User Interface, BF Blender
Patrick Busch (Xylvier) requested review of D10595: Reset View (CurveProfile) function access for python.
Wed, Mar 3, 1:40 AM · User Interface, Python API

Tue, Mar 2

Hans Goudey (HooglyBoogly) closed D10561: Reset View (CurveMapping) function access for python.
Tue, Mar 2, 8:15 PM · User Interface, Python API
Hans Goudey (HooglyBoogly) accepted D10561: Reset View (CurveMapping) function access for python.

Looks good. Two changes I will make when committing:

  • Comment formatting: Comments should start with a capital letter and end with a period.
  • Remove the "for python access" comment from the header file (since it's not quite true anymore) and move the prototype up a bit to be with similar functions.
Tue, Mar 2, 8:14 PM · User Interface, Python API
Patrick Busch (Xylvier) updated the diff for D10561: Reset View (CurveMapping) function access for python.

Didn't first think of changing the python resetview, but for consistency it got changed as well to reset_view.

Tue, Mar 2, 7:35 PM · User Interface, Python API
Patrick Busch (Xylvier) updated the diff for D10561: Reset View (CurveMapping) function access for python.

Adjusted the naming as per suggestion by @Hans Goudey (HooglyBoogly).

Tue, Mar 2, 7:30 PM · User Interface, Python API
Hans Goudey (HooglyBoogly) removed a reviewer for D10561: Reset View (CurveMapping) function access for python: Campbell Barton (campbellbarton).
Tue, Mar 2, 6:16 PM · User Interface, Python API
Hans Goudey (HooglyBoogly) requested changes to D10561: Reset View (CurveMapping) function access for python.

Makes sense to me, just a couple of small comments.

Tue, Mar 2, 6:16 PM · User Interface, Python API
Dalai Felinto (dfelinto) moved T74052: Crash when baking Dynamic Paint Image Sequence multiple times in loop from Backlog to Bugs on the Nodes & Physics board.
Tue, Mar 2, 11:33 AM · Python API, Nodes & Physics, BF Blender
Dalai Felinto (dfelinto) moved T70574: Blender 2.8 and 2.81 (ab519b91b2c4) has high chance of crashing when using Python to create a new node-tree link. from Backlog to Known Issues on the Nodes & Physics board.
Tue, Mar 2, 11:29 AM · Python API, Nodes & Physics, BF Blender
Dalai Felinto (dfelinto) moved T76951: Particle system texture added via API not working ['blend_type' when created using the interface is MULTIPLY, whereas when created through API, its value is MIX] from Backlog to Known Issues on the Nodes & Physics board.
Tue, Mar 2, 11:29 AM · Python API, Nodes & Physics, BF Blender
Dalai Felinto (dfelinto) moved T72317: Cloning materials with too smart ShaderNodeCustomGroup breaks user counters of both source and target nodes from Backlog to Known Issues on the Nodes & Physics board.
Tue, Mar 2, 11:28 AM · Nodes & Physics, Core, Python API, Nodes, BF Blender
Dalai Felinto (dfelinto) moved T72579: Copypasting material is broken for `NodeCustomGroup` nodes from Backlog to Known Issues on the Nodes & Physics board.
Tue, Mar 2, 11:28 AM · Nodes & Physics, Core, Python API, Nodes, BF Blender
Dalai Felinto (dfelinto) moved T81495: API returns wrong particle position from Backlog to Known Issues on the Nodes & Physics board.
Tue, Mar 2, 11:28 AM · Python API, Nodes & Physics, BF Blender

Mon, Mar 1

Bastien Montagne (mont29) moved T85675: Blender 3.0 (Python API deprecation, updates) from Backlog to bcon2: Features on the BF Blender (3.0) board.
Mon, Mar 1, 4:10 PM · BF Blender (3.0), Python API
Bastien Montagne (mont29) edited projects for T85841: color style of banner in Python Console arouse ambiguity, added: BF Blender, User Interface, Python API; removed BF Blender (2.92).

@Dylan Reeve (cadtofu) please do not set release goals yourself, only active developers should be in charge of that.

Mon, Mar 1, 4:05 PM · Python API, User Interface, BF Blender
Bastien Montagne (mont29) moved T80471: Image of the viewport can no longer be obtained via glReadPixels in Python. Gives strange results since 2.83 from Backlog to bcon2: Features on the BF Blender (2.93) board.
Mon, Mar 1, 4:03 PM · BF Blender (2.93), EEVEE & Viewport, Python API
Bastien Montagne (mont29) edited projects for T80471: Image of the viewport can no longer be obtained via glReadPixels in Python. Gives strange results since 2.83, added: BF Blender (2.93); removed BF Blender (2.92).
Mon, Mar 1, 3:59 PM · BF Blender (2.93), EEVEE & Viewport, Python API
Philipp Oeser (lichtwerk) added a project to D10561: Reset View (CurveMapping) function access for python: User Interface.

Maybe @Hans Goudey (HooglyBoogly) can give green light?

Mon, Mar 1, 3:09 PM · User Interface, Python API
Robert Guetzkow (rjg) updated subscribers of T86106: bpy.types.SpaceView3D.draw_handler_remove(...) causes Blender to crash.

@Germano Cavalcante (mano-wii) Thank you for looking into this. Indeed the callback itself removes handler, causing the issue you've identified.

Mon, Mar 1, 2:15 PM · Python API, BF Blender
Germano Cavalcante (mano-wii) added a revision to T86106: bpy.types.SpaceView3D.draw_handler_remove(...) causes Blender to crash: D10565: Fix T86106: bpy.types.SpaceView3D.draw_handler_remove(...) causes Blender to crash.
Mon, Mar 1, 1:45 PM · Python API, BF Blender
Sebastian (SBCV) added a comment to T86106: bpy.types.SpaceView3D.draw_handler_remove(...) causes Blender to crash.

Thank you for having a look at this.
I also thought about this. This is why I tried to keep a reference with

bpy.types.Object.current_draw_manager = draw_callback_handler

that allows to access the draw_callback_handler after the script terminated.
Even with the line above, the example script kept crashing. (However, I'm unsure if bpy.types.Object.current_draw_manager = draw_callback_handler achieves the intended effect.)

Mon, Mar 1, 10:11 AM · Python API, BF Blender
Patrick Busch (Xylvier) requested review of D10561: Reset View (CurveMapping) function access for python.
Mon, Mar 1, 4:28 AM · User Interface, Python API

Sun, Feb 28

Robert Guetzkow (rjg) added a comment to T86106: bpy.types.SpaceView3D.draw_handler_remove(...) causes Blender to crash.

I'm marking this as confirmed, but given the reference passing to an object that is no longer valid at a later point in time this might be an unsupported use case / a limitation by the Python API (see the Gotchas of the Python API). However, I believe this is a bug since removing the handler should not be causing the problem.

Sun, Feb 28, 11:32 PM · Python API, BF Blender
Robert Guetzkow (rjg) added a project to T86106: bpy.types.SpaceView3D.draw_handler_remove(...) causes Blender to crash: Python API.
Sun, Feb 28, 11:25 PM · Python API, BF Blender

Sat, Feb 27

Philipp Oeser (lichtwerk) closed T85509: get vertex group values from evaluated mesh object as Invalid.

are going vertex groups, vertex colors etc. eventually replaced with attributes in future? would be nice to have unified access to all data

You'll probably be able to access them as attributes as well (geometry nodes already handles them like "regular" attributes), but the legacy access will stay as well (I dont think this will removed at all)

Sat, Feb 27, 6:51 PM · Python API, BF Blender
Campbell Barton (campbellbarton) updated the task description for T85675: Blender 3.0 (Python API deprecation, updates).
Sat, Feb 27, 6:31 AM · BF Blender (3.0), Python API
Campbell Barton (campbellbarton) updated the task description for T85675: Blender 3.0 (Python API deprecation, updates).
Sat, Feb 27, 6:31 AM · BF Blender (3.0), Python API
Campbell Barton (campbellbarton) updated the task description for T85675: Blender 3.0 (Python API deprecation, updates).
Sat, Feb 27, 6:22 AM · BF Blender (3.0), Python API

Thu, Feb 25

Campbell Barton (campbellbarton) closed T85938: Improper Module Structure for Imbuf Methods as Resolved.

rBc47990f41c7364058a72f5f162e5cdc06bce0adc

Thu, Feb 25, 3:54 AM · Documentation, Python API, BF Blender

Wed, Feb 24

Campbell Barton (campbellbarton) closed T85915: Cannot Save New Theme Preset as Resolved by committing rB0c0553ace7b3: Fix T85915: Cannot save new theme preset.
Wed, Feb 24, 1:40 PM · Python API, BF Blender
Aaron Carlisle (Blendify) changed the status of T85938: Improper Module Structure for Imbuf Methods from Needs Triage to Confirmed.
Wed, Feb 24, 6:53 AM · Documentation, Python API, BF Blender