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

Yesterday

Brecht Van Lommel (brecht) merged task T54561: Import order matters: segmentation fault if PyTorch is imported before bpy into T57813: import bpy initializes CUDA drivers and crashes forked processes for transferring data to GPU.
Tue, Nov 13, 2:22 PM · Python, BF Blender
Aaron Carlisle (Blendify) abandoned D3149: Manual: Remove main bge python api docs.
Tue, Nov 13, 4:09 AM · Python, Game Engine, BF Blender, Documentation

Wed, Nov 7

Brecht Van Lommel (brecht) closed T57657: Bundled Python multiprocessing module mistakenly starts additional Blender instances as Archived.

I don't think we want to start patching our bundled Python to solve bugs or limitations in the Python implementation.

Wed, Nov 7, 1:52 PM · Python

Tue, Nov 6

Andrii Zymohliad (azymohliad) updated the task description for T57657: Bundled Python multiprocessing module mistakenly starts additional Blender instances .
Tue, Nov 6, 7:50 PM · Python
Andrii Zymohliad (azymohliad) updated the task description for T57657: Bundled Python multiprocessing module mistakenly starts additional Blender instances .
Tue, Nov 6, 7:49 PM · Python
Andrii Zymohliad (azymohliad) created T57657: Bundled Python multiprocessing module mistakenly starts additional Blender instances .
Tue, Nov 6, 7:39 PM · Python

Sat, Nov 3

Seiya Ishibashi (i-saint) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

+1 for scene_update alternative.
I'm maintaining live link plugin for Unity + Blender. scene_update is critical for it. also, many DCC tools provide similar callbacks. there should be no merit to be against mainstream.

Sat, Nov 3, 1:14 AM · BF Blender: 2.8, Python

Fri, Nov 2

Philipp Oeser (lichtwerk) closed T57572: bpy.ops.objects ignores override context as Resolved.

operator origin_set relies on selected_editable_objects afaict, so adding override["selected_editable_objects"] = [bpy.data.objects["Cube"]] should do the trick:

Fri, Nov 2, 12:09 PM · Python
Takahiro Komatsu (Allosteric) updated the task description for T57572: bpy.ops.objects ignores override context.
Fri, Nov 2, 12:09 AM · Python
Takahiro Komatsu (Allosteric) created T57572: bpy.ops.objects ignores override context.
Fri, Nov 2, 12:06 AM · Python

Mon, Oct 29

Brecht Van Lommel (brecht) merged task T48285: Update callback of API defined property not called on keyframed property into T37473: Custom Prop Does Not Fire Update When Driven By F-Curve.
Mon, Oct 29, 1:54 PM · Animation, Python, BF Blender

Wed, Oct 24

Dalai Felinto (dfelinto) added a comment to T57366: Python mesh.from_pydata() without faces won't show mesh until in/out edit mode.

Thank you, rigify working fine now, assign from some:
//source/blender/blenkernel/intern/cdderivedmesh.c:157:2: runtime error: null pointer passed as argument 1, which is declared to never be null

Wed, Oct 24, 3:26 AM · Python, BF Blender: 2.8
Campbell Barton (campbellbarton) closed T57366: Python mesh.from_pydata() without faces won't show mesh until in/out edit mode as Resolved by committing rB901ccfab52ad: Fix T57366: Mesh.from_pydata invalid loose-edge state.
Wed, Oct 24, 2:41 AM · Python, BF Blender: 2.8
Dalai Felinto (dfelinto) added a comment to T57366: Python mesh.from_pydata() without faces won't show mesh until in/out edit mode.

And if you want a "production" example of this:

  • Enable the Rigify addon.
  • Add > Armature > Human (Meta-Rig).
  • In the Armature tab > Generate Rig (and wait, it takes some time).
Wed, Oct 24, 1:08 AM · Python, BF Blender: 2.8
Dalai Felinto (dfelinto) assigned T57366: Python mesh.from_pydata() without faces won't show mesh until in/out edit mode to Campbell Barton (campbellbarton).

Assigning to @Campbell Barton (campbellbarton) but I suspect the issue may be the drawing caches, so poking @Clément Foucault (fclem) as well.

Wed, Oct 24, 12:51 AM · Python, BF Blender: 2.8
Dalai Felinto (dfelinto) created T57366: Python mesh.from_pydata() without faces won't show mesh until in/out edit mode.
Wed, Oct 24, 12:49 AM · Python, BF Blender: 2.8

Mon, Oct 22

nBurn (nBurn) updated the task description for T55495: BMesh vert indexes are incorrect after using view selected.
Mon, Oct 22, 12:18 PM · Addons, Python

Oct 4 2018

Philipp Oeser (lichtwerk) updated subscribers of T56953: Many (or all) links in Blender to addon documentation are broken.
Oct 4 2018, 10:43 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Philipp Oeser (lichtwerk) updated subscribers of T56953: Many (or all) links in Blender to addon documentation are broken.

There was also T48096 and T54097, but to be honest: I am unaware of any 'final' decision on this...
Will also talk to @Campbell Barton (campbellbarton) again...

Oct 4 2018, 10:42 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Guy Capra (alomphega) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

Please also leave me out of this and future conversation. Thanks.

Oct 4 2018, 9:33 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Dan McGrath (dmcgrath) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

Sounds like your mess. Please leave me out of this and future conversation. Thanks

Oct 4 2018, 7:48 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Aaron Carlisle (Blendify) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

I imported all the release notes I think we agreed that we would not migrate addon docs as for 2.8 we wont have them on the wiki anyway.

Oct 4 2018, 3:56 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Dan McGrath (dmcgrath) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

Sounds like the old pages need to be migrated, and possibly some redirects added, exactly like you just said above. IIRC, we've discussed this several times already? I assume you've finished migrating the old wiki? I could have sworn that's why I gave you the import/export access a month or two ago.

Oct 4 2018, 1:48 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons

Oct 3 2018

Aaron Carlisle (Blendify) updated subscribers of T56953: Many (or all) links in Blender to addon documentation are broken.

@Dan McGrath (dmcgrath) Can you insight some wisdom here?

Oct 3 2018, 6:13 PM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Guy Capra (alomphega) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

Thank for the subscription here and my apologize to not have been able to find this bug was already reported there before posting my version.

Oct 3 2018, 4:33 PM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Aaron Carlisle (Blendify) merged T57039: Add-ons documentation systematically sends to empty page - lack of documentation for add-ons into T56953: Many (or all) links in Blender to addon documentation are broken.
Oct 3 2018, 3:09 PM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons

Sep 30 2018

Bastien Montagne (mont29) closed T56981: python .scene_raycast returned object is not selectable as Resolved by committing rB3cd98d9ef7e6: Fix T56981: python .scene_raycast returned object is not selectable..
Sep 30 2018, 11:56 PM · Python, BF Blender: 2.8
Bastien Montagne (mont29) reopened T56981: python .scene_raycast returned object is not selectable as "Open".

Eeek, yes indeed, actually it returns evaluated version of the object (COW, you know…), not the 'real' data from bpy.data… will fix.

Sep 30 2018, 11:52 PM · Python, BF Blender: 2.8
stephen leger (stephen_leger) added a comment to T56981: python .scene_raycast returned object is not selectable.

Checked again with factory startup file.

Sep 30 2018, 11:07 PM · Python, BF Blender: 2.8
Bastien Montagne (mont29) closed T56981: python .scene_raycast returned object is not selectable as Invalid.

No bug here, error message is self-explanatory really. Just how new 2.8 system works.

Sep 30 2018, 9:48 PM · Python, BF Blender: 2.8
Bastien Montagne (mont29) closed T56952: Code to apply loc, rot scale to object with instances, and to set origin to objects with instances. Someone want to convert it to C+ ? as Archived.

Please create a differential, it’s correct way to submit patches now. :)

Sep 30 2018, 6:50 PM · Python, Addons
stephen leger (stephen_leger) created T56981: python .scene_raycast returned object is not selectable.
Sep 30 2018, 1:59 PM · Python, BF Blender: 2.8

Sep 29 2018

Aaron Carlisle (Blendify) closed T56953: Many (or all) links in Blender to addon documentation are broken as Archived.

This is a known issue ever since we moved to the new wiki, and not really anything we can do except just saying that "It will be fixed in 2.8".
The documentation is still hosted temporally on https://en.blender.org/index.php/Extensions:2.6/Py/Scripts but this will be removed once we migrate the needed pages over to the new wiki.

Sep 29 2018, 12:58 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons

Sep 28 2018

Moon Caine (mooncaine) created T56953: Many (or all) links in Blender to addon documentation are broken.
Sep 28 2018, 10:46 PM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Jose Conseco (joseconseco) created T56952: Code to apply loc, rot scale to object with instances, and to set origin to objects with instances. Someone want to convert it to C+ ? .
Sep 28 2018, 7:58 PM · Python, Addons

Sep 22 2018

Bastien Montagne (mont29) added a comment to T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.

There are gazillions of ways to make Blender crash with bad py code… ideally yes, that should be checked in the poll callback of the operators, but that’s not a bug.

Sep 22 2018, 9:37 AM · BF Blender, Video Sequencer, Python
hudson barkley (snuq) added a comment to T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.

I was working with him on this script, we did end up getting it to work, and yes, the context was the problem... but regardless, shouldn't blender give an error rather than just crashing? Seems like it is still a bug.

Sep 22 2018, 6:26 AM · BF Blender, Video Sequencer, Python

Sep 21 2018

Bastien Montagne (mont29) closed T56859: Python 'View' functions for Sequencer/Preview makes Blender crash as Invalid.

OK finally managed to reproduce (that operator only works when VSE editor is in only-preview mode).

Sep 21 2018, 3:30 PM · BF Blender, Video Sequencer, Python
Peter Fog (tintwotin) added a comment to T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.

Strange. It crashes here on 2.8 too.

Sep 21 2018, 12:20 PM · BF Blender, Video Sequencer, Python
Bastien Montagne (mont29) triaged T56859: Python 'View' functions for Sequencer/Preview makes Blender crash as Incomplete priority.

Cannot reproduce any crash here with this code (once tabulation is fixed…). Please at the very least give us error message!

Sep 21 2018, 9:57 AM · BF Blender, Video Sequencer, Python
Peter Fog (tintwotin) updated the task description for T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.
Sep 21 2018, 4:39 AM · BF Blender, Video Sequencer, Python
Peter Fog (tintwotin) updated the task description for T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.
Sep 21 2018, 4:38 AM · BF Blender, Video Sequencer, Python
Peter Fog (tintwotin) created T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.
Sep 21 2018, 4:37 AM · BF Blender, Video Sequencer, Python

Sep 19 2018

Bastien Montagne (mont29) closed T56838: Quick smoke failing with Python error as Resolved by committing rB2be5621be818: Fix T56838: Quick smoke failing with Python error..
Sep 19 2018, 10:33 AM · Python, BF Blender: 2.8
Bastien Montagne (mont29) claimed T56838: Quick smoke failing with Python error.

again…

Sep 19 2018, 10:20 AM · Python, BF Blender: 2.8

Sep 18 2018

Bastien Montagne (mont29) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Amir (Warrior) nothing prevents you from using system python instead of 'own' blender one, just ensuer you build with system python, disable the WITH_PYTHON_INSTALL build options, and blender will use system python, and you can use any module installed there. That would be by far the simplest solution (especially on linux, where valid system python should nearly always be available).

Sep 18 2018, 5:30 PM · Python, Addons, BF Blender
Amir (Warrior) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Brecht Van Lommel (brecht) I think I fixed it actually but this is not a permanent solution and I'm not sure if Armory is going to work properly this way.

Sep 18 2018, 5:27 PM · Python, Addons, BF Blender
Amir (Warrior) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Brecht Van Lommel (brecht) No it shows me the following error although I ran the code above to install it.

Sep 18 2018, 4:59 PM · Python, Addons, BF Blender
Brecht Van Lommel (brecht) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

I'm not sure I understand, doesn't bpy.ops.wm.addon_enable(module='armory') work, you just have to call it every time?

Sep 18 2018, 4:46 PM · Python, Addons, BF Blender
Amir (Warrior) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Brecht Van Lommel (brecht) I think it's totally understandable to assume that people who compile Blender as Python module would ONLY need to use the "factory setting" functionalities, but it's not a good idea not to provide an option for others to be able to install addons :(

Sep 18 2018, 4:45 PM · Python, Addons, BF Blender