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

Yesterday

nBurn (nBurn) updated the task description for T65824: The span keyword in mesh.fill_grid is not working in 2.80.
Thu, Jun 20, 8:51 PM · Python, BF Blender
Sebastian Parborg (zeddb) triaged T65824: The span keyword in mesh.fill_grid is not working in 2.80 as Confirmed, Medium priority.
Thu, Jun 20, 2:42 PM · Python, BF Blender
Peter Fog (tintwotin) added a project to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor : BF Blender.
Thu, Jun 20, 7:43 AM · BF Blender, Python, Text Editor
Peter Fog (tintwotin) created D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .
Thu, Jun 20, 6:55 AM · BF Blender, Python, Text Editor

Tue, Jun 18

Peter Fog (tintwotin) added a project to T65909: API: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo.: Python.
Tue, Jun 18, 4:03 PM · Python, BF Blender

Mon, Jun 17

Kai Jægersen (kaio) added a comment to T65843: Text.current_character wrong value for certain characters.

Can confirm.
current_character and select_end_character are directly pointing to text DNA curc, selc (and these can indeed inherit the "error" of unicode characters having a differrent length that one...)
Guess this could be resolved by making a rna property func that takes these into account using txt_utf8_offset_to_index or BLI_str_utf8_size...
Can check [might take a bit though...]

Mon, Jun 17, 5:27 PM · Python, BF Blender
Philipp Oeser (lichtwerk) closed T65878: "Bpy.ops.object.camera_add" doesn't take the rotation argument into account as Resolved by committing rB3b8a14a3c072: Fix T65878: "Bpy.ops.object.camera_add" doesn't take the rotation argument into….
Mon, Jun 17, 4:09 PM · Python, BF Blender
Philipp Oeser (lichtwerk) added a revision to T65878: "Bpy.ops.object.camera_add" doesn't take the rotation argument into account: D5085: Fix T65878: "Bpy.ops.object.camera_add" doesn't take the rotation argument into account.
Mon, Jun 17, 3:26 PM · Python, BF Blender
Philipp Oeser (lichtwerk) added a project to T65843: Text.current_character wrong value for certain characters: Python.
Mon, Jun 17, 1:59 PM · Python, BF Blender
Philipp Oeser (lichtwerk) added a project to T65863: Scripting: 'IndentationError' has no attribute 'msg': Python.
Mon, Jun 17, 1:58 PM · Python, BF Blender
Philipp Oeser (lichtwerk) claimed T65878: "Bpy.ops.object.camera_add" doesn't take the rotation argument into account.

Confirmed, checking...

Mon, Jun 17, 1:58 PM · Python, BF Blender
Philipp Oeser (lichtwerk) assigned T65681: Crash undoing a removal of a lattice via python to Campbell Barton (campbellbarton).
Mon, Jun 17, 9:29 AM · Python, BF Blender
kursad k (kursadk) added a comment to T65681: Crash undoing a removal of a lattice via python.

As far as I can tell the solution recommended by @Joseph Eagar (joeedh) works in this case. I will test it further but I was able to overcome the hard crashes I have been facing when ediitng the lattice in an operator.

Mon, Jun 17, 4:49 AM · Python, BF Blender

Sun, Jun 16

Joseph Eagar (joeedh) updated subscribers of T65681: Crash undoing a removal of a lattice via python.
Sun, Jun 16, 8:39 PM · Python, BF Blender
Joseph Eagar (joeedh) added a comment to T65681: Crash undoing a removal of a lattice via python.

Okay, looks like the problem is with the undo system; if you manually exit editmode then push the understack, e.g.:

Sun, Jun 16, 8:39 PM · Python, BF Blender
nBurn (nBurn) updated the task description for T65824: The span keyword in mesh.fill_grid is not working in 2.80.
Sun, Jun 16, 9:21 AM · Python, BF Blender
nBurn (nBurn) assigned T65824: The span keyword in mesh.fill_grid is not working in 2.80 to Campbell Barton (campbellbarton).
Sun, Jun 16, 9:17 AM · Python, BF Blender

Sat, Jun 15

nBurn (nBurn) updated the task description for T65824: The span keyword in mesh.fill_grid is not working in 2.80.
Sat, Jun 15, 4:42 AM · Python, BF Blender
nBurn (nBurn) updated the task description for T65824: The span keyword in mesh.fill_grid is not working in 2.80.
Sat, Jun 15, 2:54 AM · Python, BF Blender
nBurn (nBurn) added a project to T65824: The span keyword in mesh.fill_grid is not working in 2.80: Python.
Sat, Jun 15, 2:51 AM · Python, BF Blender

Fri, Jun 14

kursad k (kursadk) added a comment to T65681: Crash undoing a removal of a lattice via python.

It seems like this bug not just affecting undo delete but also it crashes Blender after undoing lattice naming and other Lattice objct related operations

Fri, Jun 14, 8:10 PM · Python, BF Blender

Tue, Jun 11

kursad k (kursadk) added a comment to T65681: Crash undoing a removal of a lattice via python.

Thanks for conforming the bug. Do you know a work around with the API so I can avoid the crash until this is fixed?

Tue, Jun 11, 4:20 PM · Python, BF Blender
Philipp Oeser (lichtwerk) renamed T65681: Crash undoing a removal of a lattice via python from Blender crashes with EXCEPTION_ACCESS_VIOLATION when undoing to Crash undoing a removal of a lattice via python.
Tue, Jun 11, 10:18 AM · Python, BF Blender
Philipp Oeser (lichtwerk) triaged T65681: Crash undoing a removal of a lattice via python as Confirmed, Medium priority.

Backtrace is a bit misleading [since this is reproducable without animation_nodes enabled], but can confirm, checking...
Deleting from the UI has a valid Lattice->editlatt in lattice_undosys_poll / editlatt_object_from_context whereas doing this from python doesnt...

Tue, Jun 11, 10:17 AM · Python, BF Blender

Mon, Jun 10

Brendon Murphy (meta-androcto) closed T55495: BMesh vert indexes are incorrect after using view selected as Archived.

closing as archived. @nBurn (nBurn) feel free to double check.

Mon, Jun 10, 12:58 PM · Addons, Python
Richard Antalik (ISS) merged task T64964: VSE, Python: using the bpy.ops.sequencer.movie_strip_add() operator does not take into account that sound strips are now below video into T65046: VSE: importing multiple movie clips with a lower framerate than the project causes the audio to be placed alternating above and below movie strips..
Mon, Jun 10, 8:27 AM · Video Sequencer, Python, BF Blender

Mon, Jun 3

Germano Cavalcante (mano-wii) closed T65208: Issues with bgl.Buffer() VAO,VBO and python wrapper as Archived.

Since it is not a bug (but a known limitation). Better close and continue on Devtalk.

Mon, Jun 3, 2:32 PM · BF Blender, Python, OpenGL / GPU
Nikola Nevenov (okuma_10) added a comment to T65208: Issues with bgl.Buffer() VAO,VBO and python wrapper.

Ah! I see...this explains why if I add all my code to the draw() function I see everything as it should be.Because the draw() function is what is getting the view3D OpenGL window context.
The problem is that I have no idea how to implement your suggested solution.

Mon, Jun 3, 5:16 AM · BF Blender, Python, OpenGL / GPU
Germano Cavalcante (mano-wii) added a comment to T65208: Issues with bgl.Buffer() VAO,VBO and python wrapper.

The problem with the code is that it disregards the fact that Blender works with more than one OpenGL context.
There is the OpenGL context offscreen and a context for each window.
The callback added to draw_handler_add runs in the offscreen context, but the rest of the code runs in the context of the window.
VBOs, Programs, Textures are shared between different contexts. But the VAO does not.
So a solution would be to create the VAO inside the callback with a lazy initialization.

Mon, Jun 3, 12:20 AM · BF Blender, Python, OpenGL / GPU

Sun, Jun 2

Brecht Van Lommel (brecht) changed Type from OpenGL Error to Bug on T65208: Issues with bgl.Buffer() VAO,VBO and python wrapper.
Sun, Jun 2, 12:44 PM · BF Blender, Python, OpenGL / GPU

Thu, May 30

Nikola Nevenov (okuma_10) changed Type from Bug to OpenGL Error on T65208: Issues with bgl.Buffer() VAO,VBO and python wrapper.
Thu, May 30, 8:38 AM · BF Blender, Python, OpenGL / GPU

Wed, May 29

Brecht Van Lommel (brecht) renamed T59089: Setting -E render engine via command line not working for 3D viewport from Custom render engine not being called for interactive rendering, get EVEE instead. to Setting -E render engine via command line not working for 3D viewport.
Wed, May 29, 8:12 PM · Python, BF Blender
hudson barkley (snuq) added a comment 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.

alright, figured id make this easier to test, here's a .blend with the script already loaded and ready to run, just make sure you change the filepath variable or make sure you have a 'video.mpg' file on the root of your D drive

Wed, May 29, 1:47 PM · Video Sequencer, Python, BF Blender

Mon, May 27

Brecht Van Lommel (brecht) changed the edit policy for T63733: Python & Add-ons Module.
Mon, May 27, 9:40 AM · Addons, Python, BF Blender

Wed, May 22

Brecht Van Lommel (brecht) triaged T64964: VSE, Python: using the bpy.ops.sequencer.movie_strip_add() operator does not take into account that sound strips are now below video as Waiting for Developer to Reproduce priority.
Wed, May 22, 10:21 AM · Video Sequencer, Python, BF Blender
Brecht Van Lommel (brecht) assigned T64964: VSE, Python: using the bpy.ops.sequencer.movie_strip_add() operator does not take into account that sound strips are now below video to Richard Antalik (ISS).
Wed, May 22, 10:21 AM · Video Sequencer, Python, BF Blender

May 22 2019

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.
May 22 2019, 1:16 AM · Video Sequencer, Python, BF Blender

May 17 2019

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.

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

May 16 2019

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.

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

May 1 2019

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

Apr 28 2019

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

Apr 26 2019

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

Apr 24 2019

Eitan (EitanSomething) added a watcher for Python: Eitan (EitanSomething).
Apr 24 2019, 8:32 PM

Apr 23 2019

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.

Apr 23 2019, 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.

Apr 23 2019, 2:08 AM · Python

Apr 22 2019

Vaishnav S (padthai) added a project to D4720: Providing bash shell shortcuts to the Blender terminal: Python.
Apr 22 2019, 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