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

Sergey Sharybin (sergey) closed T53540: mathutils.Color do not support alpha value in latest 2.79.1 as Archived.

Thanks for the report, but it's more a feature request.

Mon, Dec 11, 3:27 PM · Python
Campbell Barton (campbellbarton) changed the status of T28724: Crash when calling UNDO from a python script from Invalid to Resolved.
Mon, Dec 11, 12:31 PM · BF Blender, Python
Jose Conseco (joseconseco) created T53540: mathutils.Color do not support alpha value in latest 2.79.1.
Mon, Dec 11, 11:33 AM · Python

Fri, Dec 8

João Seixas (j_seixas) retitled D2952: Fix T53404 - Python API documentation: UI Layout Emboss description wording from T53404 to Fix T53404 - Python API documentation: UI Layout Emboss description wording.
Fri, Dec 8, 10:52 PM · Python, Documentation
João Seixas (j_seixas) created D2952: Fix T53404 - Python API documentation: UI Layout Emboss description wording.
Fri, Dec 8, 7:02 PM · Python, Documentation

Wed, Dec 6

Campbell Barton (campbellbarton) updated the task description for T47811: Blender 2.8x / Python, Proposed Changes.
Wed, Dec 6, 1:13 PM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) added a comment to T53294: API Image Operator bpy.ops.image.open - Segmentation Fault.

note: better to use bpy.data.images.load

Wed, Dec 6, 6:11 AM · Python, BF Blender
Campbell Barton (campbellbarton) merged T53446: bpy.ops.image.open() fails in external python script on Windows into T53294: API Image Operator bpy.ops.image.open - Segmentation Fault.
Wed, Dec 6, 6:10 AM · Python, BF Blender

Tue, Nov 28

Vuk Gardašević (lijenstina) renamed T53404: Python API documentation: UI Layout Emboss description wording from API doc error or not to Python API documentation: UI Layout Emboss description wording.
Tue, Nov 28, 7:08 AM · Python
Vuk Gardašević (lijenstina) triaged T53404: Python API documentation: UI Layout Emboss description wording as Normal priority.

The wording here can be improved for sure.

Tue, Nov 28, 7:05 AM · Python

Sun, Nov 26

Jared Webber (lvxejay) added a comment to T53396: Node Socket Name Change results in Cycles Material Rendering Black.

This issue is part of a deeper problem. Socket's are not uniquely named. Unlike everything in else in Blender, multiple nodes can have the same socket names (even the same node can have the same socket names). I don't think this is good or consistent behavior. There's three things that could solve this issue...

Sun, Nov 26, 4:48 PM · Python, Cycles, Nodes, BF Blender
Brecht Van Lommel (brecht) triaged T53396: Node Socket Name Change results in Cycles Material Rendering Black as Normal priority.

The socket name is also the identifier, so you should not change it.

Sun, Nov 26, 4:10 PM · Python, Cycles, Nodes, BF Blender
Jared Webber (lvxejay) created T53396: Node Socket Name Change results in Cycles Material Rendering Black.
Sun, Nov 26, 4:46 AM · Python, Cycles, Nodes, BF Blender

Wed, Nov 22

ronan ducluzeau (zeauro) added a project to T53363: Blender won't update mesh's usercount when deleting object datablocks in Editmode: Python.
Wed, Nov 22, 3:40 PM · Python, BF Blender

Nov 12 2017

Campbell Barton (campbellbarton) closed T53294: API Image Operator bpy.ops.image.open - Segmentation Fault as Resolved by committing rB5b3c15e3363a: Fix T53294: bpy.ops.image.open crash.
Nov 12 2017, 5:57 AM · Python, BF Blender
Campbell Barton (campbellbarton) closed T53296: Bmesh vertex color alpha can not be set from python. as Resolved.

fixed rBaae8e211006a1d9099397727b48201b865504750

Nov 12 2017, 5:42 AM · Python, BF Blender

Nov 11 2017

Riccardo Giovanetti (harvester) added a comment to T52564: Error registering add-on's with identical class names in 2.79 master (buildbot).

Here on Win10 64bit + Blender 2.79.1 (Hash: a466d7a) 64bit portable the Amaranth Toolset add-on is working fine. Thank you for the fix.

Nov 11 2017, 11:39 AM · Python, Addons

Nov 10 2017

Jose Conseco (joseconseco) created T53296: Bmesh vertex color alpha can not be set from python..
Nov 10 2017, 10:33 PM · Python, BF Blender
Mike (mikeperalta) updated the task description for T53294: API Image Operator bpy.ops.image.open - Segmentation Fault.
Nov 10 2017, 6:19 PM · Python, BF Blender
Mike (mikeperalta) updated the task description for T53294: API Image Operator bpy.ops.image.open - Segmentation Fault.
Nov 10 2017, 6:18 PM · Python, BF Blender
Mike (mikeperalta) updated the task description for T53294: API Image Operator bpy.ops.image.open - Segmentation Fault.
Nov 10 2017, 6:17 PM · Python, BF Blender
Mike (mikeperalta) updated the task description for T53294: API Image Operator bpy.ops.image.open - Segmentation Fault.
Nov 10 2017, 6:15 PM · Python, BF Blender

Oct 27 2017

Campbell Barton (campbellbarton) changed the status of T53131: Incorrect angle measure with calc_edge_angle (bmesh vertex) from Invalid to Resolved by committing rB282af08fe248: Fix T53131: Incorrect vert-edge angle calculation.
Oct 27 2017, 4:14 AM · Python, BF Blender

Oct 24 2017

sarazin jean francois (dddjef) added a comment to T53135: get selected bone in blender python is inconsistent.

thanks a lot Joshua. I wasn't aware that getting a selection was a pointer. I'll try to propose a change to the addon with the work around you proposed.

Oct 24 2017, 9:14 AM · Python, BF Blender
Joshua Leung (aligorith) closed T53135: get selected bone in blender python is inconsistent as Archived.

This is an unavoidable dangling pointers/references bug that we cannot ever fully fix:

  • When you enter/exit editmode, the EditBones (i.e. the temporary copies of the bones used in editmode for easier editing) get freed/recreated.
  • In your script, the selBone = C.selected_bones[0] line grabs a reference to an EditBone. This then gets invalidated on the first mode-change. Python has no way to know this of course, and we can't really do anything about this (at least not without significant slowdowns)
  • By chance, the second print might happen to refer to the intended bone, or another other one of the bones, after the second mode change. However, in some cases (e.g. if other ops run), these pointers may end up being completely invalid (hence the crashes in some cases)
Oct 24 2017, 5:54 AM · Python, BF Blender

Oct 23 2017

nBurn (nBurn) added a comment to T53131: Incorrect angle measure with calc_edge_angle (bmesh vertex).

So to clarify, these 2 results were intended?

  1. Having the supplementary angle (assuming degree measure: 180 - angle_measure) instead of returning the "interior" angle.
  2. Having calc_edge_angle not raise an error when called with a vertex that has only 1 edge and instead return pi (~3.14).
Oct 23 2017, 9:32 PM · Python, BF Blender
Campbell Barton (campbellbarton) closed T53131: Incorrect angle measure with calc_edge_angle (bmesh vertex) as Invalid.

Improved the exception message, otherwise this isn't a bug.

Oct 23 2017, 12:58 PM · Python, BF Blender
nBurn (nBurn) assigned T53131: Incorrect angle measure with calc_edge_angle (bmesh vertex) to Campbell Barton (campbellbarton).
Oct 23 2017, 3:54 AM · Python, BF Blender
nBurn (nBurn) created T53131: Incorrect angle measure with calc_edge_angle (bmesh vertex).
Oct 23 2017, 3:48 AM · Python, BF Blender

Oct 19 2017

Sergey Sharybin (sergey) closed T53102: Undefined symbol on "import bpy' as Archived.

Thanks for the report, but we do not accept reports related on compilation errors and only accepting reports happening with official blender builds. All the rest is to be handled via mailing list or the IRC room. See the bug report guidelines for details.

Oct 19 2017, 2:20 PM · Python, BF Blender
Campbell Barton (campbellbarton) added a comment to T53102: Undefined symbol on "import bpy'.

Tried to redo this error using make bpy. Although I got a different error with jemalloc.
https://github.com/jemalloc/jemalloc/issues/937 (can disable jemalloc easily enough)

Oct 19 2017, 2:19 PM · Python, BF Blender

Oct 18 2017

kmitov (kmitov) added a comment to T53102: Undefined symbol on "import bpy'.

Solved it by removing the 1 from all the options in CMakeCache.txt that were container AVX

Oct 18 2017, 4:19 PM · Python, BF Blender
Julien DUROURE (julien) added a project to T53102: Undefined symbol on "import bpy': Python.
Oct 18 2017, 2:44 PM · Python, BF Blender

Oct 4 2017

Campbell Barton (campbellbarton) closed T52923: Bmesh Operator "diameter" attribute is not diameter but radius as Resolved by committing rBd1dfed206b34: Fix T52923: Circle diameter is in fact radius.
Oct 4 2017, 8:48 AM · Python, BF Blender

Oct 2 2017

Sergey Sharybin (sergey) reassigned T52923: Bmesh Operator "diameter" attribute is not diameter but radius from Sergey Sharybin (sergey) to Campbell Barton (campbellbarton).

@Campbell Barton (campbellbarton), this sounds more like your area?

Oct 2 2017, 11:03 AM · Python, BF Blender

Sep 29 2017

Vuk Gardašević (lijenstina) added a comment to T52564: Error registering add-on's with identical class names in 2.79 master (buildbot).

@Souvik Karmakar (souvik) the registration issue in master should be solved. Added a versioning code so it should work with 2.79 release too. Please check the next daily build. Sorry for the wait.

Sep 29 2017, 4:40 PM · Python, Addons

Sep 28 2017

LazyDodo (LazyDodo) merged T52922: Create Lattice Object - Last Operator - Radius is not radius but size into T52923: Bmesh Operator "diameter" attribute is not diameter but radius.
Sep 28 2017, 5:41 PM · Python, BF Blender
LazyDodo (LazyDodo) assigned T52923: Bmesh Operator "diameter" attribute is not diameter but radius to Sergey Sharybin (sergey).

I can confirm the issue, however fixing it by either renaming the parameter or changing the way the geometry gets generated in bmo_primitive.c would cause quite some breaking for everyone (which i guess we could do for 2.8). not sure what the best way forward is here, paging @Sergey Sharybin (sergey) for guidance.

Sep 28 2017, 5:39 PM · Python, BF Blender

Sep 27 2017

Nikolai Janakiev (paramcookie) renamed T52923: Bmesh Operator "diameter" attribute is not diameter but radius from Bmesh Operator "diameter" attribute to Bmesh Operator "diameter" attribute is not diameter but radius.
Sep 27 2017, 5:41 PM · Python, BF Blender
Nikolai Janakiev (paramcookie) created T52923: Bmesh Operator "diameter" attribute is not diameter but radius.
Sep 27 2017, 4:16 PM · Python, BF Blender
Joshua Leung (aligorith) closed T52908: Drivers set on dimensions property no longer work inn 2.79 as Invalid.

Unforunately, it is no longer possible to animate/drive dimension settings, as those settings were conflicting with the scale properties and causing issues during playback.

Sep 27 2017, 12:17 AM · Animation, Python

Sep 26 2017

Relja Trajković (Relja) created T52908: Drivers set on dimensions property no longer work inn 2.79.
Sep 26 2017, 2:14 PM · Animation, Python

Sep 22 2017

Germano Cavalcante (mano-wii) updated the diff for D2734: Buffer Protocol for bgl.Buffer.
  • flags are not really being used;
Sep 22 2017, 12:15 AM · OpenGL / Gfx, Game Python, Python

Sep 21 2017

Germano Cavalcante (mano-wii) updated the diff for D2734: Buffer Protocol for bgl.Buffer.
  • Missed MEM_freeN(strides) if there is an error in PyBuffer_FillInfo;
Sep 21 2017, 8:23 PM · OpenGL / Gfx, Game Python, Python
Germano Cavalcante (mano-wii) updated the diff for D2734: Buffer Protocol for bgl.Buffer.

Strides are needed when working with multidimensional array.

Sep 21 2017, 8:05 PM · OpenGL / Gfx, Game Python, Python

Sep 20 2017

Sybren A. Stüvel (sybren) removed a reviewer for D2734: Buffer Protocol for bgl.Buffer: Python.
Sep 20 2017, 11:30 PM · OpenGL / Gfx, Game Python, Python
Germano Cavalcante (mano-wii) edited reviewers for D2734: Buffer Protocol for bgl.Buffer, added: Porteries Tristan (panzergame), Ulysse Martin (youle), Campbell Barton (campbellbarton); removed: Game Python, Game Engine.

@Campbell Barton (campbellbarton), could you take a look, too? It seems like you know the subject well (T52827)

Sep 20 2017, 8:33 PM · OpenGL / Gfx, Game Python, Python
Ulysse Martin (youle) added a comment to D2734: Buffer Protocol for bgl.Buffer.

Hello, I tested with most of my files using bgl and it worked fine for me. I had only 1 file to test with bge.texture and bgl however. But this sounds ok to me.

Sep 20 2017, 8:13 PM · OpenGL / Gfx, Game Python, Python
Germano Cavalcante (mano-wii) updated the diff for D2734: Buffer Protocol for bgl.Buffer.

I undo some of my changes. It may be best to leave the original Buffer structure untouched.

Sep 20 2017, 8:12 PM · OpenGL / Gfx, Game Python, Python
Thomas Szepe (hg1) updated subscribers of D2734: Buffer Protocol for bgl.Buffer.

I added Tristan Porteries (panzergame), Ulysse Martin (youle) from the UPBGE team. I think the have more experience in this kind of things.

Sep 20 2017, 6:28 PM · OpenGL / Gfx, Game Python, Python