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

Today

hudson barkley (snuq) added projects to T64964: VSE, Python: using the bpy.ops.sequencer.movie_strip_add() operator does not take into account that sound strips are now below video: Python, Video Sequencer.
Wed, May 22, 1:16 AM · Video Sequencer, Python, BF Blender

Fri, May 17

Sergey Sharybin (sergey) closed T61156: Calling Object.to_mesh on a Metaball object yields an empty mesh as Resolved.

This is now addressed by the re-designed python API of the related calls. See the depsgraph python examples in the documentation.

Fri, May 17, 2:05 PM · Python, BF Blender

Thu, May 16

Sergey Sharybin (sergey) closed T63483: Reproducable crash in 2.80: bmesh.from_object / mesh_get_eval_final as Resolved.

The issue here is the access to the non-evaluated dependency graph. This is now not possible after rBe693918d407. So now you need to do context.evaluated_depsgraph_get() when you need to communicate to it.

Thu, May 16, 11:56 AM · Python, BF Blender

Wed, May 1

nBurn (nBurn) updated the task description for T63207: Blender freezes when calling an operator after a dialog window..
Wed, May 1, 10:20 PM · BF Blender, Python

Sun, Apr 28

nBurn (nBurn) updated the task description for T63207: Blender freezes when calling an operator after a dialog window..
Sun, Apr 28, 5:59 AM · BF Blender, Python

Fri, Apr 26

nBurn (nBurn) updated the task description for T63207: Blender freezes when calling an operator after a dialog window..
Fri, Apr 26, 9:13 PM · BF Blender, Python

Wed, Apr 24

EitanSomething added a watcher for Python: EitanSomething.
Wed, Apr 24, 8:32 PM

Tue, Apr 23

Brecht Van Lommel (brecht) added a comment to D4720: Providing bash shell shortcuts to the Blender terminal.

To me this seems non-standard enough to not even have it as a preference, unless it's common in other REPL apps.

Tue, Apr 23, 5:27 PM · Python
Campbell Barton (campbellbarton) requested changes to D4720: Providing bash shell shortcuts to the Blender terminal.

Hi, I'm aware of the possibility of adding emacs/bash/readline key shortcuts but would prefer to avoid this for the default keymap.

Tue, Apr 23, 2:08 AM · Python

Mon, Apr 22

Vaishnav S (padthai) added a project to D4720: Providing bash shell shortcuts to the Blender terminal: Python.
Mon, Apr 22, 5:46 PM · Python

Apr 21 2019

Brecht Van Lommel (brecht) added projects to T63733: Python & Add-ons Module: Python, Addons.
Apr 21 2019, 3:41 AM · Addons, Python, BF Blender

Apr 16 2019

Philipp Oeser (lichtwerk) claimed T63651: `ImagePreviewCollection.load` and `ImagePreviewCollection.new` don't behave as described in the Python API docs.

Sounds reasonable, will check with others though [and commit if agreed upon]

Apr 16 2019, 10:18 AM · Python, BF Blender
Brecht Van Lommel (brecht) reassigned T63483: Reproducable crash in 2.80: bmesh.from_object / mesh_get_eval_final from Philipp Oeser (lichtwerk) to Sergey Sharybin (sergey).
Apr 16 2019, 12:28 AM · Python, BF Blender
Brecht Van Lommel (brecht) raised the priority of T63483: Reproducable crash in 2.80: bmesh.from_object / mesh_get_eval_final from Confirmed, Medium to Confirmed, High.

We discussed solutions to this type of problem, @Sergey Sharybin (sergey) will probably be the one to implement it.

Apr 16 2019, 12:28 AM · Python, BF Blender

Apr 12 2019

Marco (nacioss) added a comment to T63504: Python Template demo script error.

Wow :D my first python fix! Thank you a lot, you are awesome!

Apr 12 2019, 2:15 PM · Python, BF Blender
Philipp Oeser (lichtwerk) closed T63504: Python Template demo script error as Resolved by committing rBf3fc8271b81f: Fix T63504: Python Template 'ui_previews_dynamic_enum' error.
Apr 12 2019, 2:12 PM · Python, BF Blender
Philipp Oeser (lichtwerk) edited projects for T63504: Python Template demo script error, added: Python; removed BF Blender: 2.8.
Apr 12 2019, 2:08 PM · Python, BF Blender

Apr 11 2019

Philipp Oeser (lichtwerk) added a comment to T63483: Reproducable crash in 2.80: bmesh.from_object / mesh_get_eval_final.

also note there was very similar T61264

Apr 11 2019, 2:54 PM · Python, BF Blender
Philipp Oeser (lichtwerk) edited projects for T63483: Reproducable crash in 2.80: bmesh.from_object / mesh_get_eval_final, added: BF Blender, Python; removed Addons.
Apr 11 2019, 2:52 PM · Python, BF Blender

Apr 5 2019

Sebastian Parborg (zeddb) assigned T63207: Blender freezes when calling an operator after a dialog window. to Campbell Barton (campbellbarton).
Apr 5 2019, 12:08 PM · BF Blender, Python

Apr 4 2019

nBurn (nBurn) edited projects for T63207: Blender freezes when calling an operator after a dialog window., added: BF Blender; removed Addons.
Apr 4 2019, 8:53 PM · BF Blender, Python
Jose Conseco (joseconseco) closed T61264: obj.to_mesh() crashes on mesh with armature modifier, when run 2x as Resolved.

I just tested today build 4th of april, and this file no longer crashes. It seems bug was fixed.

Apr 4 2019, 7:45 PM · BF Blender, Python
Jacques Lucke (JacquesLucke) closed T60891: Python bgl docs still includes deprecated OpenGL functions as Resolved by committing rB3c7a538c9b73: Fix T60891: bgl docs still include deprecated opengl functions.
Apr 4 2019, 4:15 PM · Python, BF Blender

Apr 3 2019

Sebastian Parborg (zeddb) added a comment to T63221: New ui tool does nothing when executed from addon..

I think that the root cause it probably the same as in T60766

Apr 3 2019, 11:21 AM · BF Blender, Python
Sebastian Parborg (zeddb) merged task T63221: New ui tool does nothing when executed from addon. into T60766: Modal keymap customization from an addon is not restored properly.
Apr 3 2019, 11:21 AM · BF Blender, Python
Jose Conseco (joseconseco) updated the task description for T63221: New ui tool does nothing when executed from addon..
Apr 3 2019, 11:19 AM · BF Blender, Python

Apr 2 2019

Brecht Van Lommel (brecht) added a comment to T63221: New ui tool does nothing when executed from addon..

@Jose Conseco (joseconseco), in the future, please use the bug reporting form:
https://developer.blender.org/maniphest/task/edit/form/1/

Apr 2 2019, 4:37 PM · BF Blender, Python
Brecht Van Lommel (brecht) added a project to T63221: New ui tool does nothing when executed from addon.: BF Blender.
Apr 2 2019, 4:37 PM · BF Blender, Python
Jose Conseco (joseconseco) created T63221: New ui tool does nothing when executed from addon..
Apr 2 2019, 4:10 PM · BF Blender, Python
nBurn (nBurn) updated the task description for T63207: Blender freezes when calling an operator after a dialog window..
Apr 2 2019, 2:59 PM · BF Blender, Python
nBurn (nBurn) updated the task description for T63207: Blender freezes when calling an operator after a dialog window..
Apr 2 2019, 2:39 PM · BF Blender, Python
nBurn (nBurn) added a project to T63207: Blender freezes when calling an operator after a dialog window.: Python.
Apr 2 2019, 6:18 AM · BF Blender, Python

Apr 1 2019

Brecht Van Lommel (brecht) raised the priority of T61264: obj.to_mesh() crashes on mesh with armature modifier, when run 2x from Confirmed, Medium to Confirmed, High.
Apr 1 2019, 1:45 PM · BF Blender, Python

Mar 31 2019

Sebastian Parborg (zeddb) assigned T54468: Segmentation fault when selecting context.area.type before applying operator (scripting) to Campbell Barton (campbellbarton).

Backtrace:

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
0x00007fffeba89c17 in ?? () from /lib64/libc.so.6
(gdb) bt
#0  0x00007fffeba89c17 in ?? () from /lib64/libc.so.6
#1  0x00005555592b8755 in copy_m4_m4 (m1=0x7fffbc6a5a2c, m2=0x40) at /home/zed/prog/blender/source/blender/blenlib/intern/math_matrix.c:88
#2  0x0000555558015a95 in setTransformViewMatrices (t=0x7fffbc6a5708) at /home/zed/prog/blender/source/blender/editors/transform/transform.c:235
#3  0x00005555580762e9 in initTransInfo (C=0x7fffdc058188, t=0x7fffbc6a5708, op=0x7fffbc5dfec8, event=0x0)
    at /home/zed/prog/blender/source/blender/editors/transform/transform_generics.c:1681
#4  0x000055555801b1ac in initTransform (C=0x7fffdc058188, t=0x7fffbc6a5708, op=0x7fffbc5dfec8, event=0x0, mode=1)
    at /home/zed/prog/blender/source/blender/editors/transform/transform.c:2340
#5  0x0000555558086e01 in transformops_data (C=0x7fffdc058188, op=0x7fffbc5dfec8, event=0x0)
    at /home/zed/prog/blender/source/blender/editors/transform/transform_ops.c:370
#6  0x0000555558087092 in transform_exec (C=0x7fffdc058188, op=0x7fffbc5dfec8) at /home/zed/prog/blender/source/blender/editors/transform/transform_ops.c:463
#7  0x0000555557e63e48 in wm_operator_invoke (C=0x7fffdc058188, ot=0x7fffd6dfab88, event=0x0, properties=0x7fffffffcd90, reports=0x7fffb97fabb8,
    poll_only=false, use_last_properties=true) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1353
#8  0x0000555557e6464b in wm_operator_call_internal (C=0x7fffdc058188, ot=0x7fffd6dfab88, properties=0x7fffffffcd90, reports=0x7fffb97fabb8, context=6,
    poll_only=false, event=0x0) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1586
#9  0x0000555557e64899 in WM_operator_call_py (C=0x7fffdc058188, ot=0x7fffd6dfab88, context=6, properties=0x7fffffffcd90, reports=0x7fffb97fabb8,
    is_undo=false) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1664
#10 0x00005555585af25d in pyop_call (UNUSED_self=<module at remote 0x7fffd7068688>, args=Python Exception <class 'gdb.error'> No type named PyUnicodeObject.:
)
Mar 31 2019, 9:50 PM · Python, BF Blender

Mar 27 2019

Philipp Oeser (lichtwerk) closed T50049: Object remains in phantom mode between edit and object as Archived.

Since last asking for information it has been 7 or more days, due to the policy of our bug tracker we will have to archive the report until the requested information is given.
(@Michael Demetriou (qwazix) : just reopen if you've checked and issues persist)

Mar 27 2019, 1:02 PM · Python, BF Blender

Mar 26 2019

Alexander Kovelenov (AlexKowel) added a comment to T62957: camera.view_frame() returns zero vectors (crashes Verge3D addon).

This was really fast. Thank you very much, Campbell!

Mar 26 2019, 4:00 PM · BF Blender: 2.8, Python, BF Blender
Campbell Barton (campbellbarton) closed T62957: camera.view_frame() returns zero vectors (crashes Verge3D addon) as Resolved by committing rBc2c6083c147c: Fix T62957: Camera frame returns zeros.
Mar 26 2019, 1:02 PM · BF Blender: 2.8, Python, BF Blender
Campbell Barton (campbellbarton) claimed T62957: camera.view_frame() returns zero vectors (crashes Verge3D addon).
Mar 26 2019, 11:03 AM · BF Blender: 2.8, Python, BF Blender
Alexander Kovelenov (AlexKowel) added projects to T62957: camera.view_frame() returns zero vectors (crashes Verge3D addon): Python, BF Blender: 2.8.
Mar 26 2019, 9:45 AM · BF Blender: 2.8, Python, BF Blender

Mar 20 2019

Brecht Van Lommel (brecht) closed T56078: Saving images with python causes Blender to hang as Resolved.

Solved in rB22dc248f14be: Fix T56610: crash saving images with python API..

Mar 20 2019, 10:37 PM · Python, BF Blender

Mar 19 2019

Bastien Montagne (mont29) closed T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable as Resolved by committing rBe8777a729013: Fix T62732: Bpy/Python is letting create inputs at the node level for node….
Mar 19 2019, 2:45 PM · Python, BF Blender
Jacques Lucke (JacquesLucke) added a comment to T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.

It's nice to hear you say that something is easy, related to node trees haha

Mar 19 2019, 2:43 PM · Python, BF Blender
Bastien Montagne (mont29) added a comment to T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.

@Jacques Lucke (JacquesLucke) I think this is fairly easy to add (just call the function adding sockets to group's nodetree instead in RNA code), trying it currently…

Mar 19 2019, 2:40 PM · Python, BF Blender
Jacques Lucke (JacquesLucke) updated subscribers of T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.

I'm pretty sure that this is not supposed to work.
I actually don't know the API to add sockets to groups, but I guess it has to be done "from the inside".

Mar 19 2019, 2:23 PM · Python, BF Blender
Bastien Montagne (mont29) claimed T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.
Mar 19 2019, 2:23 PM · Python, BF Blender
Bastien Montagne (mont29) added a comment to T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.

Confirmed, bpy.context.scene.node_tree.nodes['Group'].node_tree.inputs.new('NodeSocketColor','stuff') is working as expected (the direct access from Group node's inputs should be a shortcut to that one I think, or not allow this operation at all, checking code…)

Mar 19 2019, 2:23 PM · Python, BF Blender
Campbell Barton (campbellbarton) closed T59250: Missing events in modal operator as Invalid.

Right, modal keymap handler isn't guaranteed to get all events - other modal operators and popups can swallow the events before they reach this modal operator.

Mar 19 2019, 8:41 AM · Python, BF Blender
iszotic (iszotic) updated the task description for T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.
Mar 19 2019, 4:53 AM · Python, BF Blender
iszotic (iszotic) added a project to T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable: Python.
Mar 19 2019, 4:38 AM · Python, BF Blender

Mar 18 2019

Michael Demetriou (qwazix) added a comment to T50049: Object remains in phantom mode between edit and object.

I will have to check, but this might take a while.

Mar 18 2019, 6:04 PM · Python, BF Blender