PythonProject
ActivePublic

Members

  • This project does not have any members.

Properties

Description

Python API for scripting and console editor.

Module Owner: @Campbell Barton (campbellbarton)

Recent Activity

Thu, May 25

Campbell Barton (campbellbarton) closed T51615: Image attribute has_data gives incorrect values as "Resolved" by committing rB1ddf67382bec: Docs: Image.has_data clarification.
Thu, May 25, 11:52 AM · Python, BF Blender
Brecht Van Lommel (brecht) added a comment to T51615: Image attribute has_data gives incorrect values.

img.has_data tests if the image data is currently loaded in memory, it doesn't test if the image is valid if no attempt has been made to load it.

Thu, May 25, 4:05 AM · Python, BF Blender

Wed, May 24

Miki (MeshLogic) created T51615: Image attribute has_data gives incorrect values.
Wed, May 24, 8:51 PM · Python, BF Blender

Tue, May 23

Martin Felke (scorpion81) added a comment to T51052: CacheFile Open Operator Crashes Blender.

Seems to be an invalid pointer when this operator is directly executed from python instead of being invoked before.

Tue, May 23, 8:04 PM · Python, Import/Export, BF Blender
Iso Sevens (iso_7s) added a comment to T51415: Python 3.5.2 has an issue, please replace with 3.5.3.

Thank you very much for fixing :)

Tue, May 23, 11:05 AM · Python, BF Blender

Mon, May 22

Sergey Sharybin (sergey) closed T51585: from_pydata function can not process numpy lists of faces as "Archived".

Surely it will be nice to support, but it is more a feature request than a bug, which we don't accept in the bug tracker.

Mon, May 22, 2:59 PM · Python, Addons
toony hollawolla (yeus) created T51585: from_pydata function can not process numpy lists of faces.
Mon, May 22, 11:46 AM · Python, Addons

Fri, May 19

Bastien Montagne (mont29) closed T51415: Python 3.5.2 has an issue, please replace with 3.5.3 as "Resolved".

Finally we decided to update our python to 3.5.3, linux builds from the buildbot should already be updated now, other platforms will be in coming days. Considering the issue as fixed, thanks for the report.

Fri, May 19, 7:48 AM · Python, BF Blender

Tue, May 16

Aaron Carlisle (Blendify) closed T51114: PyAPI: Problem to compile API (sphinx_doc_gen.**) as "Resolved".

Ok closing.

Tue, May 16, 8:47 PM · Documentation, Python, BF Blender
Rainer Trummer (aliasguru) added a comment to T48630: Adding Node Sockets to Node Group from Python crashes Blender.

@Brendon Murphy (meta-androcto) Indeed this has been silently fixed somewhen, that's good news! Not sure when it has been adressed, but no crashes any longer

Tue, May 16, 5:37 PM · Python, Addons
Brendon Murphy (meta-androcto) closed T48630: Adding Node Sockets to Node Group from Python crashes Blender as "Archived".

archiving this task, no activity nearly 1 year, tested file in 2.78c buildbot & cannot reproduce the error.
feel free to reopen if I'm wrong here.

Tue, May 16, 2:24 AM · Python, Addons

Mon, May 15

Sergey Sharybin (sergey) closed T51306: EXCEPTION_ACCESS_VIOLATION After append parented objects with python (Blender 2.78) as "Resolved".

Thanks for the report, but this issue was already fixed in latest master.

Mon, May 15, 2:02 PM · Python, BF Blender

Sat, May 13

Brendon Murphy (meta-androcto) added a comment to T51483: Remove doubles Operator crash called from a script in a specific case.

confirmed.
Will also note that neither addon is designed to work on solid mesh.
I think we need to fix this asap.

Sat, May 13, 11:58 AM · Addons
Vuk Gardašević (lijenstina) created T51483: Remove doubles Operator crash called from a script in a specific case.
Sat, May 13, 3:17 AM · Addons

Thu, May 11

Aaron Carlisle (Blendify) triaged T51473: API: images, use external image with sphinx 1.6 as "Normal" priority.
Thu, May 11, 6:46 PM · Python, Documentation

Sun, May 7

solarlune added a comment to T23135: context.scene not updating correctly.

Hmm, I don't think that'll work for my purposes - I'm doing something in a function that needs to execute immediately, so I dunno if I can wait over the course of a script execution...

Sun, May 7, 6:21 PM · BF Blender, Python
Tom Edwards (artfunkel) added a comment to T23135: context.scene not updating correctly.

Wow, a bug report from seven years ago! Since then I've discovered how to wait for the next event loop:

Sun, May 7, 10:35 AM · BF Blender, Python
solarlune added a comment to T23135: context.scene not updating correctly.

Hello. No idea if this'll be heard, but I've been looking around for an answer and not getting anywhere.

Sun, May 7, 9:54 AM · BF Blender, Python

Fri, May 5

Bastien Montagne (mont29) updated subscribers of T51415: Python 3.5.2 has an issue, please replace with 3.5.3.

Even though this is rather exotic and corner case issue, am not totally opposed to the idea of updating our Python version, but that means we need platform maintainers available now - Windows and Linux should not be an issue, OSX is a bit more complicated these days. @jens verwiebe (jensverwiebe) or @Martijn Berger (juicyfruit) , is one of you available to rebuild OSX python to 3.5.3 and upate the libs repo in coming week or so?

Fri, May 5, 4:31 PM · Python, BF Blender
Aaron Carlisle (Blendify) assigned T51387: Macro (bpy.types.Macro) needs proper documentation to Campbell Barton (campbellbarton).
Fri, May 5, 12:10 AM · Python, Documentation

Thu, May 4

Iso Sevens (iso_7s) edited the description of T51415: Python 3.5.2 has an issue, please replace with 3.5.3.
Thu, May 4, 8:41 PM · Python, BF Blender
Aaron Carlisle (Blendify) triaged T51415: Python 3.5.2 has an issue, please replace with 3.5.3 as "Confirmed" priority.

Sounds reasonable, for 2.8 we will use 3.6 but I guess we should update to 3.5.3 for 2.79.

Thu, May 4, 4:57 PM · Python, BF Blender
Iso Sevens (iso_7s) created T51415: Python 3.5.2 has an issue, please replace with 3.5.3.
Thu, May 4, 4:46 PM · Python, BF Blender

Apr 24 2017

Morgan Fraslin (kevar) created T51306: EXCEPTION_ACCESS_VIOLATION After append parented objects with python (Blender 2.78).
Apr 24 2017, 10:38 AM · Python, BF Blender

Apr 13 2017

Aaron Carlisle (Blendify) closed T37754: Patch: DatablockProperty and DatablockVectorProperty as "Resolved".

Committed in rBa7b3047cefcb

Apr 13 2017, 9:38 PM · Python, BF Blender
Aaron Carlisle (Blendify) added inline comments to D2621: API Docs: Add html logo.
Apr 13 2017, 6:41 PM · Python, BF Blender, Documentation
Aaron Carlisle (Blendify) created D2621: API Docs: Add html logo.
Apr 13 2017, 6:39 PM · Python, BF Blender, Documentation

Apr 9 2017

Ulysse Martin (youle) added a comment to T51114: PyAPI: Problem to compile API (sphinx_doc_gen.**).

There's a new version of sphinx (1.5.5) which seems to fix the issue. I don't know if all the documentation is compiled but the issue seems fixed. I let you test, confirm and close if this is ok for you. Bye!

Apr 9 2017, 3:34 PM · Documentation, Python, BF Blender
Konstantin (Ko) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

Scipy can realy help to terrain heightfield generation and image processing addons. Like "Sverchok" one, or "ANT landscape". scipy module and Sverchok

Apr 9 2017, 12:43 PM · BF Blender: 2.8, Python

Apr 7 2017

Ulysse Martin (youle) edited the description of T51114: PyAPI: Problem to compile API (sphinx_doc_gen.**).
Apr 7 2017, 8:39 PM · Documentation, Python, BF Blender
Andrew Martin (Mutz) closed T51136: user_clear causing crash to desktop as "Invalid".

Not a bug

Apr 7 2017, 1:01 AM · Python

Apr 6 2017

Andrew Martin (Mutz) created T51136: user_clear causing crash to desktop.
Apr 6 2017, 2:50 PM · Python

Apr 5 2017

Campbell Barton (campbellbarton) updated subscribers of T47811: Blender 2.8x / Python, Proposed Changes.
Apr 5 2017, 5:54 AM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

Update: Move to Python3.6 is planned after 2.79 release (discussed with @Sergey Sharybin (sergey) @Bastien Montagne (mont29) on IRC).

Apr 5 2017, 5:53 AM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) edited the description of T47811: Blender 2.8x / Python, Proposed Changes.
Apr 5 2017, 5:52 AM · BF Blender: 2.8, Python

Apr 4 2017

Aaron Carlisle (Blendify) assigned T51114: PyAPI: Problem to compile API (sphinx_doc_gen.**) to Campbell Barton (campbellbarton).
Apr 4 2017, 9:00 PM · Documentation, Python, BF Blender
Sybren A. Stüvel (sybren) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

This is a bit not related, but several addons still use imp.reload instead of importlib.

Apr 4 2017, 9:37 AM · BF Blender: 2.8, Python

Apr 3 2017

Vuk Gardašević (lijenstina) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

This is a bit not related, but several addons still use imp.reload instead of importlib.
Also some example could be added to the python documentation about the proper way of reloading the modules in complex add-ons using __init__.
(like the the case of reloading modules after other imports - i.e. import bpy etc. it will prevent the add-on of registering at least it does in recent builds :)).
The example in the API in Gotchas is not covering that case that is quite often in Blender.

Apr 3 2017, 8:57 PM · BF Blender: 2.8, Python

Mar 31 2017

Sybren A. Stüvel (sybren) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

Just a note about handlers:
I did not check how it works but ... to avoid misusing them, it would be interesting to add information in console about adding and removing handlers. This would help add-on developers to take more care about using them.

Mar 31 2017, 5:46 PM · BF Blender: 2.8, Python

Mar 28 2017

Jeducious (jameshcrowther) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

I think there is sufficient information in the blender api, though I think the issue here is that the scene_handler_pre handler does something that is not expected by triggering constantly.

Mar 28 2017, 5:34 AM · BF Blender: 2.8, Python
Germano Cavalcante (mano-wii) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

Just a note about handlers:
I did not check how it works but ... to avoid misusing them, it would be interesting to add information in console about adding and removing handlers. This would help add-on developers to take more care about using them.

Mar 28 2017, 5:14 AM · BF Blender: 2.8, Python
Jeducious (jameshcrowther) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

@Campbell Barton (campbellbarton) I like the approach of not adding this into 2.8 so we can find a way around this, more time would really be appreciated so we can perhaps work together to find a more acceptable way forward :D.

Mar 28 2017, 5:00 AM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

@Jeducious (jameshcrowther), in reply to your post - running Python scripts continuously is just not very scalable. A single addon might use it... but once more then a few start to use this its likely to slow Blender down.

Mar 28 2017, 3:45 AM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

@Sybren A. Stüvel (sybren), thanks for the info, seems this is worth supporting, from xxx import * is discouraged by pep8 and our own style guide. Just did a quick check and used of this are mostly in addons (and some tests but in general its not used), places it is used can be fairly easily updated no to.

Mar 28 2017, 3:37 AM · BF Blender: 2.8, Python
Aaron Carlisle (Blendify) removed projects from T51052: CacheFile Open Operator Crashes Blender: Platform: Windows, Platform: Linux.
Mar 28 2017, 1:15 AM · Python, Import/Export, BF Blender

Mar 27 2017

Sybren A. Stüvel (sybren) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

If we can't actually make use of them in any meaningful way, beyond them acting as type-comments.

For example, if tools to validate types don't work properly when run within Blender.

Code readability is a nice aspect you mention but if we cant validate them its quite weak and likely some are wrong nobody notices.

Mar 27 2017, 12:08 PM · BF Blender: 2.8, Python

Mar 26 2017

Jared Webber (lvxejay) added a comment to T51052: CacheFile Open Operator Crashes Blender.

Operator requires an execution override to work properly:

Mar 26 2017, 11:03 AM · Python, Import/Export, BF Blender
Jared Webber (lvxejay) added a comment to T51052: CacheFile Open Operator Crashes Blender.

When called from the Dynamic Context Menu (spacebar), it works just fine

Mar 26 2017, 10:51 AM · Python, Import/Export, BF Blender
Jeducious (jameshcrowther) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

Hi, my comment regards the propsed changes to the scene_update_pre handler. To some extent I'm echoing Brendon's concerns - (repeated below).

Mar 26 2017, 10:35 AM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) triaged T51052: CacheFile Open Operator Crashes Blender as "Confirmed" priority.
Mar 26 2017, 9:10 AM · Python, Import/Export, BF Blender