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, 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

Sun, Apr 21

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

Tue, Apr 16

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]

Tue, Apr 16, 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).
Tue, Apr 16, 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.

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

Fri, Apr 12

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!

Fri, Apr 12, 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.
Fri, Apr 12, 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.
Fri, Apr 12, 2:08 PM · Python, BF Blender

Thu, Apr 11

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

Thu, Apr 11, 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.
Thu, Apr 11, 2:52 PM · Python, BF Blender

Fri, Apr 5

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

Thu, Apr 4

nBurn (nBurn) edited projects for T63207: Blender freezes when calling an operator after a dialog window., added: BF Blender; removed Addons.
Thu, Apr 4, 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.

Thu, Apr 4, 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.
Thu, Apr 4, 4:15 PM · Python, BF Blender

Wed, Apr 3

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

Wed, Apr 3, 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.
Wed, Apr 3, 11:21 AM · BF Blender, Python
Jose Conseco (joseconseco) updated the task description for T63221: New ui tool does nothing when executed from addon..
Wed, Apr 3, 11:19 AM · BF Blender, Python

Tue, Apr 2

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/

Tue, Apr 2, 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.
Tue, Apr 2, 4:37 PM · BF Blender, Python
Jose Conseco (joseconseco) created T63221: New ui tool does nothing when executed from addon..
Tue, Apr 2, 4:10 PM · BF Blender, Python
nBurn (nBurn) updated the task description for T63207: Blender freezes when calling an operator after a dialog window..
Tue, Apr 2, 2:59 PM · BF Blender, Python
nBurn (nBurn) updated the task description for T63207: Blender freezes when calling an operator after a dialog window..
Tue, Apr 2, 2:39 PM · BF Blender, Python
nBurn (nBurn) added a project to T63207: Blender freezes when calling an operator after a dialog window.: Python.
Tue, Apr 2, 6:18 AM · BF Blender, Python

Mon, Apr 1

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.
Mon, Apr 1, 1:45 PM · BF Blender, Python

Sun, Mar 31

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.:
)
Sun, Mar 31, 9:50 PM · Python, BF Blender

Wed, Mar 27

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)

Wed, Mar 27, 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

Mar 14 2019

Jacques Lucke (JacquesLucke) added a comment to T61264: obj.to_mesh() crashes on mesh with armature modifier, when run 2x.

Still should not crash I guess..

Mar 14 2019, 3:48 PM · BF Blender, Python
Bastien Montagne (mont29) lowered the priority of T50049: Object remains in phantom mode between edit and object from Normal to Needs Information from User.

Is this still happening in blender 2.8?

Mar 14 2019, 10:44 AM · Python, BF Blender

Mar 13 2019

Sebastian Parborg (zeddb) assigned T61443: ExportHelper crashes with exit code 3221226356 when called to Campbell Barton (campbellbarton).

I can confirm that there is something weird going on. If I open blender and paste in that script and run it and then use the Props Dialog, blender soft hangs for me as soon as I press the OK button.

Mar 13 2019, 12:12 PM · Python, BF Blender: 2.8
dima glib (dairin0d) abandoned D4397: Exposing BASE_HIDDEN flag to python.

Solved by Blender developers themselves in https://developer.blender.org/rBcae89a6889e0fc03130a56b6bf84e257eaff0fec

Mar 13 2019, 10:01 AM · Python, BF Blender: 2.8

Mar 7 2019

Jacques Lucke (JacquesLucke) closed T55020: Blender crash when creating node tree links with Python as Archived.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

Mar 7 2019, 3:34 PM · Platform: Windows, Nodes, Python, BF Blender
Jacques Lucke (JacquesLucke) closed T54629: Incorrect qhull library called as Archived.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

Mar 7 2019, 3:33 PM · Python, BF Blender