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

Yesterday

Bastien Montagne (mont29) moved T88811: Render crash when using Python API to modify object Attribute data in frame_change_pre handler from Backlog to Bugs on the Core board.
Fri, May 20, 9:30 AM · Python API, Core, Render & Cycles, Dependency Graph, Modeling, BF Blender

Thu, May 19

Brecht Van Lommel (brecht) added a comment to T98267: Python API issue: attributes.active_color vs vertex_colors.active.

I've updated the release notes now. In order to conveniently convert to/from sRGB we need some API functions, for which I added a patch.

Thu, May 19, 9:32 PM · Python API, Nodes & Physics, Geometry Nodes, BF Blender
Brecht Van Lommel (brecht) added a revision to T98267: Python API issue: attributes.active_color vs vertex_colors.active: D14989: Python API: add mathutils.Color functions to convert color spaces.
Thu, May 19, 9:25 PM · Python API, Nodes & Physics, Geometry Nodes, BF Blender
Dalai Felinto (dfelinto) added a comment to T98267: Python API issue: attributes.active_color vs vertex_colors.active.

I talked to @Brecht Van Lommel (brecht) and it seems that this is intentional. I think we should mention this in the release notes of whenever we introduced this (with an example of how to convert the values from one to the other?). I couldn't find it in any of the 3.x release notes so far.

Thu, May 19, 7:52 PM · Python API, Nodes & Physics, Geometry Nodes, BF Blender
Brecht Van Lommel (brecht) added a comment to T98267: Python API issue: attributes.active_color vs vertex_colors.active.

This was an intentional design choice. For attributes I wanted to have all color values in the same linear color space in the API and UI, regardless if they are stored as byte or float. That way the values match in color pickers, spreadsheet, shader nodes, geometry nodes.

Thu, May 19, 7:52 PM · Python API, Nodes & Physics, Geometry Nodes, BF Blender
Dalai Felinto (dfelinto) changed the status of T98267: Python API issue: attributes.active_color vs vertex_colors.active from Needs Triage to Confirmed.

Setting status to confirmed, but not setting as a bug yet. Waiting for Hans to confirm it.

Thu, May 19, 7:32 PM · Python API, Nodes & Physics, Geometry Nodes, BF Blender
Philipp Oeser (lichtwerk) edited projects for T97909: Drawing Constraint.mute in the UI with custom icon shows wrong icon, added: BF Blender; removed BF Blender (2.90).
Thu, May 19, 8:00 AM · BF Blender, Python API, User Interface
Campbell Barton (campbellbarton) closed T93779: Disappearing grid and wrongly labeled "Front Orthographic" instead of "Top Orthographic" view as Resolved by committing rB3ecc03c3d6b7: Fix T93779: Python is unable to set axis aligned views.
Thu, May 19, 6:32 AM · EEVEE & Viewport, Python API, BF Blender
Philipp Oeser (lichtwerk) added a comment to T97909: Drawing Constraint.mute in the UI with custom icon shows wrong icon.

Why BF Blender 2.90?

Thu, May 19, 6:15 AM · BF Blender, Python API, User Interface
Campbell Barton (campbellbarton) closed T94514: The return value of bpy.context.region_data.view_rotation doesnt update until after the script has finished running if altered mid-script. as Archived.
Thu, May 19, 4:54 AM · BF Blender, Python API
Campbell Barton (campbellbarton) added a comment to T94514: The return value of bpy.context.region_data.view_rotation doesnt update until after the script has finished running if altered mid-script..

The report should contain exact steps to redo the bug (script, blend file etc).

Thu, May 19, 4:53 AM · BF Blender, Python API
Campbell Barton (campbellbarton) requested changes to D14592: Fix Python console history getting rearranged.

See feedback about switching last_line_inserted to an integer.

Thu, May 19, 3:40 AM · Python API, Restricted Project, Good First Issue
Campbell Barton (campbellbarton) moved T97909: Drawing Constraint.mute in the UI with custom icon shows wrong icon from Backlog to Responsibility of Other Project/Module on the Python API board.
Thu, May 19, 1:11 AM · BF Blender, Python API, User Interface
Campbell Barton (campbellbarton) moved T97286: Inconsistent use of terms "Border" and "Region" from Backlog to Responsibility of Other Project/Module on the Python API board.
Thu, May 19, 1:11 AM · BF Blender (2.90), User Interface, Python API

Wed, May 18

Matheus Cavazotti (mmc) updated the diff for D14592: Fix Python console history getting rearranged.

Changes based on review feedback:

Wed, May 18, 5:33 PM · Python API, Restricted Project, Good First Issue
Campbell Barton (campbellbarton) closed T88792: WindowManager.clipboard missing in Python API documentation as Resolved by committing rB136a06285f0e: Fix T88792: WindowManager.clipboard missing in Python API docs.
Wed, May 18, 1:48 PM · BF Blender, Python API, Documentation
Philipp Oeser (lichtwerk) resigned from D11360: Fix T88047: Python API - Scale parameter isn't taken into account when adding primitive meshes.

Not sure if there is still progress?
In any case, I will step back from reviewing, thx anyways.

Wed, May 18, 12:01 PM · Python API, Modeling
Campbell Barton (campbellbarton) changed the subtype of T97949: bpy.types.IDPropertyUIManager has no API documentation from "Bug" to "To Do".
Wed, May 18, 11:35 AM · Documentation, Python API
Campbell Barton (campbellbarton) moved T97949: bpy.types.IDPropertyUIManager has no API documentation from Backlog to Documentation on the Python API board.
Wed, May 18, 11:34 AM · Documentation, Python API

Mon, May 16

Dalai Felinto (dfelinto) changed the subtype of T94990: CustomNodeTree throws constant warnings when socket is added from "Report" to "Bug".

Indeed the warnings are rather annoying. But I think the real bug is that since 3.0 all the Node Editors show the "Group" tab. I don't think this option should be there. So there is no way to create the new sockets anyways. (what is the point of creating them even?)

Mon, May 16, 5:00 PM · Nodes & Physics, Python API, BF Blender
Dalai Felinto (dfelinto) closed T97879: Custom node trees do not have any type as Archived.

According to @Lukas Toenne (lukastoenne) in T90233:
"The warning current value '-1' matches no enum is because when loading the file the script for defining the custom tree hasn't run yet, but the node editor still has the tree loaded. Nothing to worry about."

Mon, May 16, 12:54 PM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) edited projects for T53396: Node Socket Name Change results in Cycles Material Rendering Black (name is also identifier, should be read-only?), added: Nodes & Physics; removed Nodes.
Mon, May 16, 11:16 AM · Nodes & Physics, Python API, Render & Cycles, Cycles, BF Blender
Hans Goudey (HooglyBoogly) edited projects for T54314: Contents of "Viewer Node" image block do not get updated , added: Nodes & Physics; removed Nodes.
Mon, May 16, 11:16 AM · Nodes & Physics, Python API, Render & Cycles, Cycles, BF Blender
Hans Goudey (HooglyBoogly) edited projects for T68473: Custom RenderEngine: Shader Editor issues, added: Nodes & Physics; removed Nodes.
Mon, May 16, 11:15 AM · Nodes & Physics, Python API, Render & Cycles, BF Blender
Hans Goudey (HooglyBoogly) edited projects for T71858: Inharitance for `ShaderNodeCustomGroup` is broken, added: Nodes & Physics; removed Nodes.
Mon, May 16, 11:14 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T72317: Cloning materials with too smart ShaderNodeCustomGroup breaks user counters of both source and target nodes: Nodes.
Mon, May 16, 11:14 AM · Nodes & Physics, Core, Python API, BF Blender
Hans Goudey (HooglyBoogly) edited projects for T72518: Nodes API and editor operators need to be autotested, added: Nodes & Physics; removed Nodes.
Mon, May 16, 11:14 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T72579: Copypasting material is broken for `NodeCustomGroup` nodes: Nodes.
Mon, May 16, 11:14 AM · Nodes & Physics, Core, Python API, BF Blender
Hans Goudey (HooglyBoogly) edited projects for T72833: Blender becomes unstable/crashes after using "Reload Scripts" if using any "ShaderNodeCustomGroup" nodes., added: Nodes & Physics; removed Nodes.
Mon, May 16, 11:14 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) added a project to T82318: Group output node `is_linked` attribute is False during linking process: Nodes & Physics.
Mon, May 16, 11:12 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) added a project to T85803: Custom node socket from NodeSocketColor is only grayscale: Nodes & Physics.
Mon, May 16, 11:12 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T78383: Drivers do not update Properties in custom pyNode trees: Nodes.
Mon, May 16, 11:11 AM · Python API, Animation & Rigging, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T79022: CompositorNodeMapRange is missing attributes in the Python API: Nodes.
Mon, May 16, 11:10 AM · Python API, Compositing
Hans Goudey (HooglyBoogly) removed a project from T79283: Add individual image settings for each FileOutputNode, Python API. : Nodes.
Mon, May 16, 11:10 AM · Python API, Compositing
Hans Goudey (HooglyBoogly) removed a project from T82318: Group output node `is_linked` attribute is False during linking process: Nodes.
Mon, May 16, 11:08 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T82390: Linked sockets by Python has `is_linked` attribute as False: Nodes.
Mon, May 16, 11:08 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T85803: Custom node socket from NodeSocketColor is only grayscale: Nodes.
Mon, May 16, 11:07 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T88795: Error during connection custom sockets to group input / output nodes: Nodes.
Mon, May 16, 11:06 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T89260: Eevee instant crash with a custom node from template example: Nodes.
Mon, May 16, 11:05 AM · Python API, EEVEE & Viewport, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T89436: Programmatically creating a link involving a blank group input/output socket causes a UAF: Nodes.
Mon, May 16, 11:05 AM · Nodes & Physics, Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T91658: Name of custom socket types is not set when making a node group via script.: Nodes.
Mon, May 16, 11:04 AM · Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T91659: Error when custom socket type is drawn in node tree inputs list.: Nodes.
Mon, May 16, 11:04 AM · Python API, BF Blender
Hans Goudey (HooglyBoogly) removed a project from T90564: Crash when linking 2 node inputs: Nodes.
Mon, May 16, 11:01 AM · Nodes & Physics, Python API, BF Blender

Sun, May 15

Robert Guetzkow (rjg) closed T98109: ValueError: WorkSpaceTool.setup(): error with keyword argument "options" - : 'REGISTER' not found in ('KEYMAP_FALLBACK') as Archived.

Thank you for your report. Unfortunately, it does not contain the requested information that we need to investigate the issue. Please read this guide, it may help you write a bug report that allows us to identify the cause of the problem.

Sun, May 15, 3:56 PM · Python API

Sat, May 14

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

import bpy

Sat, May 14, 4:39 AM · Python API
liyiyi (cvtutu) created T98109: ValueError: WorkSpaceTool.setup(): error with keyword argument "options" - : 'REGISTER' not found in ('KEYMAP_FALLBACK').
Sat, May 14, 4:38 AM · Python API

Wed, May 11

Campbell Barton (campbellbarton) closed T89634: Python API: uv.select_edge_ring and uv.select_loop malfunction as Resolved.

Yes this has been fixed, closing.

Wed, May 11, 3:31 AM · Python API, Restricted Project, BF Blender

Tue, May 10

Chris Blackbourn (chrisbblend) added a comment to T89634: Python API: uv.select_edge_ring and uv.select_loop malfunction.

Bug confirmed in Blender 3.01 hash dc2d18018171

Tue, May 10, 5:43 AM · Python API, Restricted Project, BF Blender

Mon, May 9

Julien Kaspar (JulienKaspar) moved T97850: Crash using image resize operator with edit_image context override from Backlog to Bugs on the Sculpt, Paint & Texture board.
Mon, May 9, 10:25 PM · Sculpt, Paint & Texture, Python API, BF Blender
Dalai Felinto (dfelinto) changed the subtype of T90051: Baking Fluid simulations via API broken [2] from "Report" to "Known Issue".

Thanks for the report. Marking this as known issue since it depends on the old particle settings which is end of life.

Mon, May 9, 3:25 PM · Python API, Nodes & Physics, BF Blender