Page MenuHome

PythonProject
ActivePublic

Members

  • This project does not have any members.

Watchers (10)

Details

Description

Python API for scripting and console editor.

Module Owner: @Campbell Barton (campbellbarton)

Recent Activity

Wed, Oct 16

Dalai Felinto (dfelinto) updated the task description for T63733: Python & Add-ons Module.
Wed, Oct 16, 4:36 PM · Python & Add-ons, Add-ons, Python, BF Blender
Campbell Barton (campbellbarton) closed D6038: Blender 2.80 compatibility with Python 3.8 fix.
Wed, Oct 16, 2:26 PM · Platforms, Builds & Tests, Python
Campbell Barton (campbellbarton) accepted D6038: Blender 2.80 compatibility with Python 3.8 fix.
Wed, Oct 16, 2:21 PM · Platforms, Builds & Tests, Python
Campbell Barton (campbellbarton) added a comment to D6038: Blender 2.80 compatibility with Python 3.8 fix.

Thanks, committed rBe413b39a936181cc954dfbf054b0a19794d8902c

Wed, Oct 16, 2:20 PM · Platforms, Builds & Tests, Python
Campbell Barton (campbellbarton) added a comment to D6038: Blender 2.80 compatibility with Python 3.8 fix.

Existing logic works now, rBa7cf7b114f82625aa5d81e91e26e67cbe7a842bc, however this is preferred, will commit w/ PyEval_GetBuiltins call instead of access from modules.

Wed, Oct 16, 2:07 PM · Platforms, Builds & Tests, Python
Campbell Barton (campbellbarton) triaged T70861: Use 'PyPreConfig' for initialization (Python 3.8) as Confirmed, Low priority.
Wed, Oct 16, 11:51 AM · Python
Campbell Barton (campbellbarton) closed T70850: bpy.context.scene.frame_set() doesn't update marker cameras in viewports as Resolved by committing rB80f0bc99a983: Fix T70850: Scene.frame_set doesn't update camera from markers.
Wed, Oct 16, 10:14 AM · Python, BF Blender
Campbell Barton (campbellbarton) claimed T70850: bpy.context.scene.frame_set() doesn't update marker cameras in viewports.
Wed, Oct 16, 10:04 AM · Python, BF Blender
Philipp Oeser (lichtwerk) lowered the priority of T70850: bpy.context.scene.frame_set() doesn't update marker cameras in viewports from Needs Triage by Developer to Confirmed, Medium.

Confirmed, checking...

Wed, Oct 16, 9:57 AM · Python, BF Blender
Campbell Barton (campbellbarton) updated the task description for T63733: Python & Add-ons Module.
Wed, Oct 16, 2:09 AM · Python & Add-ons, Add-ons, Python, BF Blender
Campbell Barton (campbellbarton) changed Type from Bug to To Do on T70861: Use 'PyPreConfig' for initialization (Python 3.8).
Wed, Oct 16, 2:08 AM · Python
Campbell Barton (campbellbarton) created T70861: Use 'PyPreConfig' for initialization (Python 3.8).
Wed, Oct 16, 2:08 AM · Python
Campbell Barton (campbellbarton) updated the task description for T63733: Python & Add-ons Module.
Wed, Oct 16, 1:54 AM · Python & Add-ons, Add-ons, Python, BF Blender
Campbell Barton (campbellbarton) triaged T70860: Use 'Vectorcall' for faster function calling (Python 3.8) as Confirmed, Low priority.
Wed, Oct 16, 1:53 AM · Python

Tue, Oct 15

Lukas W (geloescht) added a comment to T70768: Python GizmoGroups not working in VSE.

I know this is not the right place to ask questions, but now that I have the attention of knowledgeable people on the rather obscure and new matter of custom gizmos: How do I make a 2D gizmo pan and scale with the area? It seems like in the node editor as well as the sequencer preview the gizmo is always drawn relative to the area frame and not to the content of the area.
I made a stackexchange question as well, but I have a feeling it will go unanswered: https://blender.stackexchange.com/questions/155528/python-how-to-pan-and-scale-gizmogroup-with-background

Tue, Oct 15, 8:01 PM · Python, Video Sequencer, BF Blender
Colin Basnett (cmbasnett) added a revision to T54272: Python API for Blender's internal image functions: D6065: Added basic buffer protocol implementation for ImBuf objects.
Tue, Oct 15, 10:40 AM · BF Blender, Python

Mon, Oct 14

Philipp Oeser (lichtwerk) lowered the priority of T70768: Python GizmoGroups not working in VSE from Needs Triage by Developer to Confirmed, Medium.

Well, I guess this should work for the other region_types as well...

Mon, Oct 14, 2:46 PM · Python, Video Sequencer, BF Blender
Lukas W (geloescht) added a comment to T70768: Python GizmoGroups not working in VSE.

Thank you so much! Using gizmos in the preview region is probably a more common use, but I didn't know about it. So I think you can also treat this as a matter of incomplete documentation.

Mon, Oct 14, 2:03 PM · Python, Video Sequencer, BF Blender
Philipp Oeser (lichtwerk) added a project to T70768: Python GizmoGroups not working in VSE: Python.

This actually works for the preview area if you set

  • bl_space_type = 'SEQUENCE_EDITOR'
  • bl_region_type = 'PREVIEW'
Mon, Oct 14, 1:49 PM · Python, Video Sequencer, BF Blender

Fri, Oct 11

Sergey Sharybin (sergey) closed T70660: Python : "get/set" method on a keyed property crashes Blender as Resolved.

The crashes are now fixed. The rest is to be addressed in the .blend file itself.

Fri, Oct 11, 12:18 PM · Python, BF Blender

Thu, Oct 10

Marcel Plch (Dormouse) updated the diff for D6038: Blender 2.80 compatibility with Python 3.8 fix.

Add missing semicolons.

Thu, Oct 10, 1:51 PM · Platforms, Builds & Tests, Python
Brecht Van Lommel (brecht) added reviewers for D6038: Blender 2.80 compatibility with Python 3.8 fix: Campbell Barton (campbellbarton), Bastien Montagne (mont29).
Thu, Oct 10, 1:47 PM · Platforms, Builds & Tests, Python
Marcel Plch (Dormouse) created D6038: Blender 2.80 compatibility with Python 3.8 fix.
Thu, Oct 10, 1:46 PM · Platforms, Builds & Tests, Python
Sergey Sharybin (sergey) added a comment to T70660: Python : "get/set" method on a keyed property crashes Blender .

Short story: neither of update or tagging should happen from set() functions.

Thu, Oct 10, 12:40 PM · Python, BF Blender
Stanislas Paillereau (stanp) added a comment to T70660: Python : "get/set" method on a keyed property crashes Blender .

ID.update_tag(...) doesn't refresh on the viewport while scrolling in the timeline. Going to edit mode refreshes the mesh in the viewport.

Thu, Oct 10, 3:01 AM · Python, BF Blender

Wed, Oct 9

Campbell Barton (campbellbarton) lowered the priority of T70660: Python : "get/set" method on a keyed property crashes Blender from Needs Triage by Developer to Confirmed, Low.
Wed, Oct 9, 3:47 AM · Python, BF Blender
Campbell Barton (campbellbarton) assigned T70660: Python : "get/set" method on a keyed property crashes Blender to Sergey Sharybin (sergey).

Fairly sure calling view_layer.update() within a set function isn't supported.

Wed, Oct 9, 3:46 AM · Python, BF Blender
Stanislas Paillereau (stanp) added a project to T70660: Python : "get/set" method on a keyed property crashes Blender : Python.
Wed, Oct 9, 2:58 AM · Python, BF Blender

Thu, Oct 3

Campbell Barton (campbellbarton) abandoned D1613: Add set selection function to text api.

A different diff ended up being committed.

Thu, Oct 3, 10:40 PM · Python, BF Blender
Campbell Barton (campbellbarton) closed T65843: Text.current_character wrong value for certain characters as Resolved.

Fixed rB8096190d11d6caf5facfc266791a08985179688a

Thu, Oct 3, 10:36 PM · Python, BF Blender
Campbell Barton (campbellbarton) updated the task description for T63733: Python & Add-ons Module.
Thu, Oct 3, 7:18 PM · Python & Add-ons, Add-ons, Python, BF Blender
Campbell Barton (campbellbarton) updated the task description for T63733: Python & Add-ons Module.
Thu, Oct 3, 7:18 PM · Python & Add-ons, Add-ons, Python, BF Blender
Campbell Barton (campbellbarton) updated the task description for T54272: Python API for Blender's internal image functions.
Thu, Oct 3, 7:11 PM · BF Blender, Python

Wed, Oct 2

Dalai Felinto (dfelinto) updated the task description for T63733: Python & Add-ons Module.
Wed, Oct 2, 8:46 PM · Python & Add-ons, Add-ons, Python, BF Blender
Hitokage added a comment to T68303: Particle system baking not working in Python API.

I see, thanks but why doesn't this happen when baking for example smoke in the same way?

Wed, Oct 2, 9:40 AM · BF Blender, Python
Kai Jægersen (kaio) abandoned D5881: Text Editor (python): Add Text.selection_set().

https://developer.blender.org/D5952

Wed, Oct 2, 12:40 AM · Python, Text Editor

Tue, Oct 1

Sybren A. Stüvel (sybren) closed T68303: Particle system baking not working in Python API as Invalid.

The cache is empty when I open the file afterwards

Tue, Oct 1, 3:05 PM · BF Blender, Python
Campbell Barton (campbellbarton) updated the task description for T63733: Python & Add-ons Module.
Tue, Oct 1, 9:04 AM · Python & Add-ons, Add-ons, Python, BF Blender

Mon, Sep 30

Campbell Barton (campbellbarton) added a comment to D5881: Text Editor (python): Add Text.selection_set().

Right, all properties should use the character index not the byte offset.

Mon, Sep 30, 9:57 PM · Python, Text Editor
Kai Jægersen (kaio) added a comment to D5881: Text Editor (python): Add Text.selection_set().

This patch has the issue that indices can be between unicode characters.
See comments for D1613: Add set selection function to text api

Mon, Sep 30, 8:41 PM · Python, Text Editor
D5881: Text Editor (python): Add Text.selection_set() now requires changes to proceed.
Mon, Sep 30, 7:04 PM · Python, Text Editor
Campbell Barton (campbellbarton) added a comment to D5881: Text Editor (python): Add Text.selection_set().

This patch has the issue that indices can be between unicode characters.

Mon, Sep 30, 7:04 PM · Python, Text Editor

Wed, Sep 25

Philipp Oeser (lichtwerk) updated the task description for T70255: Filebrowser (python): Setting bookmarks_active crash.
Wed, Sep 25, 10:18 PM · User Interface, Python, BF Blender
Philipp Oeser (lichtwerk) added a revision to T70255: Filebrowser (python): Setting bookmarks_active crash: D5898: Fix T70255: Filebrowser (python): Setting bookmarks_active crash.
Wed, Sep 25, 10:15 PM · User Interface, Python, BF Blender
Philipp Oeser (lichtwerk) added projects to T70255: Filebrowser (python): Setting bookmarks_active crash: Python, User Interface.

Can confirm.
This was always crashing, not really designed for usage outside of the FileBrowser itself...

Wed, Sep 25, 9:51 PM · User Interface, Python, BF Blender

Tue, Sep 24

Peter Fog (tintwotin) added a comment to D1613: Add set selection function to text api.

This patch deals with set selection: D5881

Tue, Sep 24, 10:57 PM · Python, BF Blender
-- (zgorg) added a comment to D5881: Text Editor (python): Add Text.selection_set().

so now it would be possible to get back selection to what it was before the last undo using this

Tue, Sep 24, 4:19 PM · Python, Text Editor
Kai Jægersen (kaio) created D5881: Text Editor (python): Add Text.selection_set().
Tue, Sep 24, 11:09 AM · Python, Text Editor
Colin Basnett (cmbasnett) added a revision to T54272: Python API for Blender's internal image functions: D5879: Fixed a bug where the exception message for imbuf.load would represent the filename as garbage bytes.
Tue, Sep 24, 1:53 AM · BF Blender, Python

Mon, Sep 23

Campbell Barton (campbellbarton) closed T61443: ExportHelper crashes with exit code 3221226356 when called as Resolved.
Mon, Sep 23, 10:41 AM · Python, BF Blender: 2.8