PythonProject
ActivePublic

Members

  • This project does not have any members.

Details

Description

Python API for scripting and console editor.

Module Owner: @Campbell Barton (campbellbarton)

Recent Activity

Mon, May 21

nBurn (nBurn) created D3420: Cleanup of select_prev in find_adjacent.py.
Mon, May 21, 7:28 PM · Mesh Modeling, Python

Sun, May 20

Nathan V. Morrical (nathanvollmer) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

So, I just downloaded '2.80 (sub 3)', commit date - b'2017-12-22'. I started work on supporting it in our addon. But there is a key handler that we use that has been removed. bpy.app.handlers.scene_update_post is gone??!?!?!

I have checked the discussion above and I think that most posting here were in favour of keeping it, but also not in its current form, and re-purposing it to actually do what its meant to do, i.e. only trigger when there is a meaningful change to the scene that affects the final output of a render, either to viewport or final.

I understand that the problem with the scene_update_pre/post handlers constantly triggering is a big issue. In fact this was a big problem for us at first in using it, but we managed to use it regardless. Not having it though, breaks our ability to efficiently tell if something in the scene has changed and what that something is. With no alternative we'll have to poll and that pretty much means using a modal operator with a timer and we're back to constantly running code again, something I believe we're all trying to avoid in 2.8.

Worse, since we'll be forced to do a search on all data to see what has changed since the last run of our operator, the time taken to process will scale linearly with the number of ID blocks in the scene, so more advanced or complicated blend files will get worse performance with the addon enabled.

Sun, May 20, 12:24 AM · BF Blender: 2.8, Python

Sun, May 13

Cody (bldebg) added a comment to T55020: Blender crash when creating node tree links with Python.

Video of the error: https://www.dropbox.com/s/zvw4c1v78n55wef/Blender_Tree_Link_Bug.mp4?dl=0

Sun, May 13, 4:47 PM · Platform: Windows, Nodes, Python, BF Blender

Fri, May 11

Erick Tukuniata (erickblender) added a comment to T55020: Blender crash when creating node tree links with Python.

I tried this on win 7 gtx 550ti master hash d5c1c0b, every things seems okay, I run the script till my Mem was 50.90M i don't remember how many times but more than needed :)

Fri, May 11, 4:18 PM · Platform: Windows, Nodes, Python, BF Blender
Cody (bldebg) updated the task description for T55020: Blender crash when creating node tree links with Python.
Fri, May 11, 3:30 PM · Platform: Windows, Nodes, Python, BF Blender
Philipp Oeser (lichtwerk) added a project to T55020: Blender crash when creating node tree links with Python: Platform: Windows.

OK, seems like a Windows issue then (I'm on linux as well).
Someone here on Windows can reproduce?

Fri, May 11, 3:12 PM · Platform: Windows, Nodes, Python, BF Blender
Cody (bldebg) added a comment to T55020: Blender crash when creating node tree links with Python.

“Does this happen on other computers as well?”

Fri, May 11, 3:04 PM · Platform: Windows, Nodes, Python, BF Blender
Cody (bldebg) updated the task description for T55020: Blender crash when creating node tree links with Python.
Fri, May 11, 3:03 PM · Platform: Windows, Nodes, Python, BF Blender
Philipp Oeser (lichtwerk) added a comment to T55020: Blender crash when creating node tree links with Python.

Seems I cant reproduce.
Made several runs in both master and 2.79 (each running the script 100 times)

Fri, May 11, 1:57 PM · Platform: Windows, Nodes, Python, BF Blender

Thu, May 10

Cody (bldebg) added projects to T55020: Blender crash when creating node tree links with Python: Python, Nodes.
Thu, May 10, 12:53 AM · Platform: Windows, Nodes, Python, BF Blender

Mon, May 7

Bastien Montagne (mont29) closed T54966: mathutils.noise.voronoi Memory leak as Resolved by committing rBa3b4c3823ca7: Fix T54966: mathutils.noise.voronoi Memory leak.
Mon, May 7, 11:12 AM · Python, BF Blender
Bastien Montagne (mont29) claimed T54966: mathutils.noise.voronoi Memory leak.
Mon, May 7, 11:06 AM · Python, BF Blender
Bastien Montagne (mont29) triaged T54966: mathutils.noise.voronoi Memory leak as Confirmed priority.

Confirmed, fix incoming.

Mon, May 7, 11:06 AM · Python, BF Blender

Thu, May 3

Campbell Barton (campbellbarton) closed T54927: Unexpected results when slicing the selection history from bmesh as Resolved by committing rB0f217de4033f: Fix T54927: BMesh Py error w/ select history slice.
Thu, May 3, 8:24 PM · Python, BF Blender
nBurn (nBurn) updated the summary of D3197: Potential fix for T54927, bmesh selection history.
Thu, May 3, 7:15 AM
nBurn (nBurn) added a comment to D3197: Potential fix for T54927, bmesh selection history.
Thu, May 3, 7:09 AM
nBurn (nBurn) updated the task description for T54927: Unexpected results when slicing the selection history from bmesh.
Thu, May 3, 7:03 AM · Python, BF Blender
nBurn (nBurn) created D3197: Potential fix for T54927, bmesh selection history.
Thu, May 3, 7:00 AM

Wed, May 2

nBurn (nBurn) updated the task description for T54927: Unexpected results when slicing the selection history from bmesh.
Wed, May 2, 9:35 PM · Python, BF Blender
nBurn (nBurn) updated the task description for T54927: Unexpected results when slicing the selection history from bmesh.
Wed, May 2, 9:21 PM · Python, BF Blender
nBurn (nBurn) assigned T54927: Unexpected results when slicing the selection history from bmesh to Campbell Barton (campbellbarton).
Wed, May 2, 9:12 PM · Python, BF Blender
nBurn (nBurn) created T54927: Unexpected results when slicing the selection history from bmesh.
Wed, May 2, 9:11 PM · Python, BF Blender
Philipp Oeser (lichtwerk) added a project to T54468: Segmentation fault when selecting context.area.type before applying operator (scripting): Python.
Wed, May 2, 1:59 PM · Python, BF Blender

Apr 20 2018

Philipp Oeser (lichtwerk) changed Type from Bug to To Do on T54349: Python exception typing units into a spinner that accepts units.
Apr 20 2018, 10:32 AM · Python, BF Blender
Philipp Oeser (lichtwerk) claimed T54349: Python exception typing units into a spinner that accepts units.

I'll put that on my desk for the time being.

Apr 20 2018, 10:32 AM · Python, BF Blender

Apr 19 2018

Amir (Warrior) added a comment to T54314: Contents of "Viewer Node" image block do not get updated .

@Philipp Oeser (lichtwerk) @Jeroen Bakker (jbakker) Thanks for investigating this more. I also remember at some point I was accessing the pixels directly through "Viewer Node" image block and stored them on disk. What I realized however was the pixels were sort of rotated. I remember the depth map rendering that I got was shown 90 degrees rotated. If possible, please take a look at this too.

Apr 19 2018, 5:41 PM · Python, Nodes, Cycles, BF Blender
Philipp Oeser (lichtwerk) changed Type from Bug to To Do on T54314: Contents of "Viewer Node" image block do not get updated .
Apr 19 2018, 1:30 PM · Python, Nodes, Cycles, BF Blender
Philipp Oeser (lichtwerk) claimed T54314: Contents of "Viewer Node" image block do not get updated .

Interesting problem.

Apr 19 2018, 1:30 PM · Python, Nodes, Cycles, BF Blender
Philipp Oeser (lichtwerk) changed Type from Bug to To Do on T53768: Pixels and resolution not for multilayer EXR and Render Result.
Apr 19 2018, 1:08 PM · Rendering, Python, BF Blender
Philipp Oeser (lichtwerk) reopened T53768: Pixels and resolution not for multilayer EXR and Render Result as "Open".

also added to TODO here: https://wiki.blender.org/index.php/Dev:Source/Development/Todo/Scripting
Will have look again if time permits

Apr 19 2018, 1:08 PM · Rendering, Python, BF Blender

Apr 16 2018

Aaron Carlisle (Blendify) abandoned D2711: PYAPI: Add more information to bge video texture docs.

Committed rBee2aa319821fdf8be869fc2800711d01b6350f41

Apr 16 2018, 7:36 PM · Game Engine, Python, Documentation, BF Blender
Aaron Carlisle (Blendify) updated the summary of D3149: Manual: Remove main bge python api docs.
Apr 16 2018, 2:24 PM · Python, Game Engine, BF Blender, Documentation
Aaron Carlisle (Blendify) added a comment to D3149: Manual: Remove main bge python api docs.

@Max Voss (max12345) the content was basically duplicated between the manual and the api docs so in rBee2aa319821fdf8be869fc2800711d01b6350f41 and rB73dfd3d38241735c7182862cd43a6fb5df6e054b I merged the two documents into the API docs. Now we will have one place to keep this information.

Apr 16 2018, 2:10 PM · Python, Game Engine, BF Blender, Documentation
Nikolai Janakiev (paramcookie) created T54629: Incorrect qhull library called.
Apr 16 2018, 11:34 AM · Python, BF Blender
Philipp Oeser (lichtwerk) closed T54602: Calling Text.write() in Python Script causes Blender to SegFault. as Resolved.

thx for the report, afaict, this is already fixed by rBfb3528d08870, thx @Campbell Barton (campbellbarton)!

Apr 16 2018, 11:09 AM · Python, BF Blender
Philipp Oeser (lichtwerk) closed T54553: Blender crash on write to text data-block as Resolved.

afaict, this is also fixed by rBfb3528d08870, thx @Campbell Barton (campbellbarton)!

Apr 16 2018, 10:57 AM · Python, BF Blender: Regressions, BF Blender
Philipp Oeser (lichtwerk) closed T54578: regression python crash modifying text block as Resolved.

afaict, this is also fixed by rBfb3528d08870, thx @Campbell Barton (campbellbarton) !

Apr 16 2018, 10:55 AM · Python, BF Blender: Regressions, BF Blender
Max Voss (max12345) added a comment to D3149: Manual: Remove main bge python api docs.

Maybe I missed something, but why is this being done?

Apr 16 2018, 9:29 AM · Python, Game Engine, BF Blender, Documentation

Apr 15 2018

Aaron Carlisle (Blendify) added a comment to D3149: Manual: Remove main bge python api docs.

@Campbell Barton (campbellbarton) @Bastien Montagne (mont29) would either of you be up for 2? I can cherrypick the commits if you want but I dont have access to upload.

Apr 15 2018, 6:07 PM · Python, Game Engine, BF Blender, Documentation
Aaron Carlisle (Blendify) created D3149: Manual: Remove main bge python api docs.
Apr 15 2018, 6:05 PM · Python, Game Engine, BF Blender, Documentation
Campbell Barton (campbellbarton) closed T54593: Rigify crashes Blender when Generate the rig as Resolved by committing rBfb3528d08870: Fix T54593: Py text edits crash (undo regression).
Apr 15 2018, 10:40 AM · BF Blender, BF Blender: Regressions, Python

Apr 14 2018

Plüss Roland (dragon) updated the task description for T54602: Calling Text.write() in Python Script causes Blender to SegFault..
Apr 14 2018, 5:49 PM · Python, BF Blender
Plüss Roland (dragon) updated the task description for T54602: Calling Text.write() in Python Script causes Blender to SegFault..
Apr 14 2018, 5:48 PM · Python, BF Blender
Plüss Roland (dragon) created T54602: Calling Text.write() in Python Script causes Blender to SegFault..
Apr 14 2018, 5:46 PM · Python, BF Blender

Apr 13 2018

Philipp Oeser (lichtwerk) assigned T54593: Rigify crashes Blender when Generate the rig to Campbell Barton (campbellbarton).

Can confirm this, issue in undo. This can probably be merged into T54578, T54553?

Apr 13 2018, 3:22 PM · BF Blender, BF Blender: Regressions, Python

Apr 12 2018

Philipp Oeser (lichtwerk) added projects to T54553: Blender crash on write to text data-block: BF Blender: Regressions, Python.
Apr 12 2018, 10:40 AM · Python, BF Blender: Regressions, BF Blender
Philipp Oeser (lichtwerk) added a project to T54578: regression python crash modifying text block: Python.
Apr 12 2018, 10:40 AM · Python, BF Blender: Regressions, BF Blender

Apr 11 2018

Amir (Warrior) added a comment to T54461: Unable to export/import EXR files after doing `import bpy` and when using the multiprocessing in Python (Blender freezes).

@Brecht Van Lommel (brecht) Just an update: I can get somehow around the forking issue using subprocess and doing one rendering at the time. However, the problem with using subprocess is I have to literally import everything I need from scratch. This makes the rendering much more time-consuming than doing the rendering normally.

Apr 11 2018, 5:24 PM · Python, Nodes, Cycles, BF Blender
Amir (Warrior) added a comment to T54561: Import order matters: segmentation fault if PyTorch is imported before bpy.

This issue on PyTorch GitHub page might be helpful for the developers: https://github.com/pytorch/pytorch/issues/6194

Apr 11 2018, 4:49 PM · Python, BF Blender
Amir (Warrior) added a comment to T54561: Import order matters: segmentation fault if PyTorch is imported before bpy.
Apr 11 2018, 4:48 PM · Python, BF Blender