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

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

Sun, Nov 12

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.
Sun, Nov 12, 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

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

Sat, Nov 11

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.

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

Fri, Nov 10

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

Fri, Oct 27

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.
Fri, Oct 27, 4:14 AM · Python, BF Blender

Tue, Oct 24

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.

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

I'm guessing that 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
  • 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.
Tue, Oct 24, 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
Germano Cavalcante (mano-wii) updated the diff for D2734: Buffer Protocol for bgl.Buffer.

It really makes sense bgl.Buffer to have a Buffer Protocol.
I made some changes to the code.

Sep 20 2017, 4:32 AM · OpenGL / Gfx, Game Python, Python
Germano Cavalcante (mano-wii) commandeered D2734: Buffer Protocol for bgl.Buffer.
Sep 20 2017, 4:31 AM · OpenGL / Gfx, Game Python, Python

Sep 18 2017

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

Hi guys .. having issue when I enable 'Amaranth Toolset' .. any solution here??
Error code :

Sep 18 2017, 9:03 AM · Python, Addons

Sep 17 2017

John Roper (johnroper100) added a comment to T46592: Custom node bug: mute mode.

I added code that updated the node.mute value however, nothing happens. I'm guessing it is that the problem above still exists?

Sep 17 2017, 12:01 AM · Addons, Python

Sep 16 2017

John Roper (johnroper100) added a comment to T46592: Custom node bug: mute mode.

Is this the way to set that property? https://docs.blender.org/api/current/bpy.types.Node.html?highlight=mute#bpy.types.Node.mute

Sep 16 2017, 11:41 PM · Addons, Python
John Roper (johnroper100) added a project to T46592: Custom node bug: mute mode: Addons.
Sep 16 2017, 11:34 PM · Addons, Python
John Roper (johnroper100) reopened T46592: Custom node bug: mute mode as "Open".
Sep 16 2017, 11:33 PM · Addons, Python
John Roper (johnroper100) triaged T46592: Custom node bug: mute mode as Normal priority.
Sep 16 2017, 11:33 PM · Addons, Python
John Roper (johnroper100) added a comment to T46592: Custom node bug: mute mode.

Is there any plan to work on this because this would be extremely useful.

Sep 16 2017, 11:32 PM · Addons, Python

Sep 14 2017

Peter Noble (PeterN) added a comment to T52735: UI widget for pointer property with custom type causes segmentation fault.

Maybe I've got the wrong idea but the impression I got was that this change to PointerProperty was useful because it allowed search boxes to be more specific than just materials, objects, node trees etc... I can't think of any reason the user would ever need a search box that allows selecting of all node tree types but it would be useful to only allow a specific type of node group.

Sep 14 2017, 2:02 PM · Python, BF Blender
Bastien Montagne (mont29) updated subscribers of T52735: UI widget for pointer property with custom type causes segmentation fault.

Ok… still, don’t think that was a good idea, like, at all… ID types are not virtual stuff like operators or render engines, they are data, stored in Blender file, they are kind of root of everything in Blender, so faking their subclassing in py sounds like a nice can of worms to me… Would have been so much cleaner to have registrable NodeTreeType classes instead! Anyway…

Sep 14 2017, 10:58 AM · Python, BF Blender
Sergey Sharybin (sergey) added a comment to T52735: UI widget for pointer property with custom type causes segmentation fault.

@Bastien Montagne (mont29), isn't it how custom node trees are supposed to work? You kind of subclass there.
Would be nice to at least prevent crashes, perhaps.

Sep 14 2017, 10:19 AM · Python, BF Blender
Bastien Montagne (mont29) added a comment to T52735: UI widget for pointer property with custom type causes segmentation fault.

@Sergey Sharybin (sergey) yes, but… wait… since when is it valid to subclass an ID type? Subclassing ID types in Python… who ever allowed such an evil scheme? :((((((

Sep 14 2017, 10:15 AM · Python, BF Blender