Page MenuHome

PythonProject
ActivePublic

Members

  • This project does not have any members.

Watchers (9)

Details

Description

Python API for scripting and console editor.

Module Owner: @Campbell Barton (campbellbarton)

Recent Activity

Wed, Mar 20

Brecht Van Lommel (brecht) closed T56078: Saving images with python causes Blender to hang as Resolved.

Solved in rB22dc248f14be: Fix T56610: crash saving images with python API..

Wed, Mar 20, 10:37 PM · Python, BF Blender

Tue, Mar 19

Bastien Montagne (mont29) closed T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable as Resolved by committing rBe8777a729013: Fix T62732: Bpy/Python is letting create inputs at the node level for node….
Tue, Mar 19, 2:45 PM · Python, BF Blender
Jacques Lucke (JacquesLucke) added a comment to T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.

It's nice to hear you say that something is easy, related to node trees haha

Tue, Mar 19, 2:43 PM · Python, BF Blender
Bastien Montagne (mont29) added a comment to T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.

@Jacques Lucke (JacquesLucke) I think this is fairly easy to add (just call the function adding sockets to group's nodetree instead in RNA code), trying it currently…

Tue, Mar 19, 2:40 PM · Python, BF Blender
Jacques Lucke (JacquesLucke) updated subscribers of T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.

I'm pretty sure that this is not supposed to work.
I actually don't know the API to add sockets to groups, but I guess it has to be done "from the inside".

Tue, Mar 19, 2:23 PM · Python, BF Blender
Bastien Montagne (mont29) claimed T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.
Tue, Mar 19, 2:23 PM · Python, BF Blender
Bastien Montagne (mont29) added a comment to T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.

Confirmed, bpy.context.scene.node_tree.nodes['Group'].node_tree.inputs.new('NodeSocketColor','stuff') is working as expected (the direct access from Group node's inputs should be a shortcut to that one I think, or not allow this operation at all, checking code…)

Tue, Mar 19, 2:23 PM · Python, BF Blender
Campbell Barton (campbellbarton) closed T59250: Missing events in modal operator as Invalid.

Right, modal keymap handler isn't guaranteed to get all events - other modal operators and popups can swallow the events before they reach this modal operator.

Tue, Mar 19, 8:41 AM · Python, BF Blender
iszotic (iszotic) updated the task description for T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable.
Tue, Mar 19, 4:53 AM · Python, BF Blender
iszotic (iszotic) added a project to T62732: Bpy/Python is letting create inputs at the node level for node groups that make blend file unsaveable: Python.
Tue, Mar 19, 4:38 AM · Python, BF Blender

Mon, Mar 18

Michael Demetriou (qwazix) added a comment to T50049: Object remains in phantom mode between edit and object.

I will have to check, but this might take a while.

Mon, Mar 18, 6:04 PM · Python, BF Blender

Thu, Mar 14

Jacques Lucke (JacquesLucke) added a comment to T61264: obj.to_mesh() crashes on mesh with armature modifier, when run 2x.

Still should not crash I guess..

Thu, Mar 14, 3:48 PM · BF Blender, Python
Bastien Montagne (mont29) lowered the priority of T50049: Object remains in phantom mode between edit and object from Normal to Needs Information from User.

Is this still happening in blender 2.8?

Thu, Mar 14, 10:44 AM · Python, BF Blender

Wed, Mar 13

Sebastian Parborg (zeddb) assigned T61443: ExportHelper crashes with exit code 3221226356 when called to Campbell Barton (campbellbarton).

I can confirm that there is something weird going on. If I open blender and paste in that script and run it and then use the Props Dialog, blender soft hangs for me as soon as I press the OK button.

Wed, Mar 13, 12:12 PM · Python, BF Blender: 2.8
dima glib (dairin0d) abandoned D4397: Exposing BASE_HIDDEN flag to python.

Solved by Blender developers themselves in https://developer.blender.org/rBcae89a6889e0fc03130a56b6bf84e257eaff0fec

Wed, Mar 13, 10:01 AM · Python, BF Blender: 2.8

Thu, Mar 7

Jacques Lucke (JacquesLucke) closed T55020: Blender crash when creating node tree links with Python as Archived.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

Thu, Mar 7, 3:34 PM · Platform: Windows, Nodes, Python, BF Blender
Jacques Lucke (JacquesLucke) closed T54629: Incorrect qhull library called as Archived.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

Thu, Mar 7, 3:33 PM · Python, BF Blender
Jacques Lucke (JacquesLucke) raised the priority of T54468: Segmentation fault when selecting context.area.type before applying operator (scripting) from Needs Information from User to Needs Triage by Developer.
Thu, Mar 7, 3:32 PM · Python, BF Blender

Tue, Mar 5

Jose Conseco (joseconseco) added a comment to T61264: obj.to_mesh() crashes on mesh with armature modifier, when run 2x.

I just noticed when I add 'USE_EVAL_DATA' to operator bl_options
bl_options = {"REGISTER", "UNDO","USE_EVAL_DATA"}
Then crash won't happen. I'm not sure if this bug should be marked as fixed then.

Tue, Mar 5, 1:41 PM · BF Blender, Python
Brecht Van Lommel (brecht) edited projects for T61264: obj.to_mesh() crashes on mesh with armature modifier, when run 2x, added: BF Blender; removed BF Blender: 2.8.
Tue, Mar 5, 1:30 PM · BF Blender, Python

Mon, Mar 4

Tom Edwards (artfunkel) added a comment to T61156: Calling Object.to_mesh on a Metaball object yields an empty mesh.

This bug has been open a month without being addressed, so I'm going to use Phillip's suggested Python workaround. A fix before 2.80 ships would be appreciated!

Mon, Mar 4, 8:34 PM · Python, BF Blender

Fri, Mar 1

Brecht Van Lommel (brecht) closed T58641: Identifier resulted from prop_search is prefixed by three spaces. as Resolved.

The commit that caused this was reverted, another solution without this problem should be implemented.

Fri, Mar 1, 5:16 AM · Python, BF Blender

Thu, Feb 28

Jacques Lucke (JacquesLucke) updated subscribers of T61941: Redrawing an UIList on Property Dialog crashes Blender 2.8x.

CTX_wm_region(C) returns NULL in uiTemplateList(..) directly after the file selector is closed.
When I skip the function in this case, everything goes back to normal on the next redraw.

Thu, Feb 28, 5:38 PM · Python, BF Blender

Wed, Feb 27

Christian Brinkmann (poor) added a comment to T61941: Redrawing an UIList on Property Dialog crashes Blender 2.8x.

of course. Just wasn't sure what's easier to debug. I tried to strip it down as best as I could:

Wed, Feb 27, 8:09 PM · Python, BF Blender
Jacques Lucke (JacquesLucke) triaged T61941: Redrawing an UIList on Property Dialog crashes Blender 2.8x as Confirmed, Medium priority.

I can reproduce it. Can you try to remove everything from that script that is not necessary to reproduce the bug? That would make debugging a bit easier.

Wed, Feb 27, 3:22 PM · Python, BF Blender
dima glib (dairin0d) added a comment to D4397: Exposing BASE_HIDDEN flag to python.

By the way, some functions (rna_Object_select_get, rna_Object_visible_get, ...) are missing the view_layer parameter and always get the selected/visible/etc. state from the current context's view layer, while other functions (rna_Object_holdout_get, indirect_only_get) require to specify the view layer explicitly. Is this an oversight or an intentional design?

Wed, Feb 27, 8:15 AM · Python, BF Blender: 2.8

Tue, Feb 26

Richard Antalik (ISS) added a comment to T61923: Rewrote VSE Sound Crossfade script to support unlimited input strips and fix bugs.

Oh, my bad, I didn't mean to step on your toes.

Naah.

Tue, Feb 26, 6:46 PM · Video Sequencer, Python, BF Blender
Jon Seigel (jseigelis) added a comment to T61923: Rewrote VSE Sound Crossfade script to support unlimited input strips and fix bugs.

Oh, my bad, I didn't mean to step on your toes.

Tue, Feb 26, 7:02 AM · Video Sequencer, Python, BF Blender

Mon, Feb 25

Christian Brinkmann (poor) updated the task description for T61941: Redrawing an UIList on Property Dialog crashes Blender 2.8x.
Mon, Feb 25, 5:32 PM · Python, BF Blender
Christian Brinkmann (poor) updated the task description for T61941: Redrawing an UIList on Property Dialog crashes Blender 2.8x.
Mon, Feb 25, 5:12 PM · Python, BF Blender
Christian Brinkmann (poor) created T61941: Redrawing an UIList on Property Dialog crashes Blender 2.8x.
Mon, Feb 25, 5:05 PM · Python, BF Blender
Campbell Barton (campbellbarton) added a comment to T61915: bmesh.select_history return invalid value.

You have to loop over all elements, this won't be efficient.

Mon, Feb 25, 12:43 PM · Python, BF Blender: 2.8, BF Blender
Vlad (Darcvizer) added a comment to T61915: bmesh.select_history return invalid value.

Maybe you will have advice to get the current selection? I am very worried about performance. Since the addon will work all the time in the background.

Mon, Feb 25, 11:41 AM · Python, BF Blender: 2.8, BF Blender
Richard Antalik (ISS) claimed T61923: Rewrote VSE Sound Crossfade script to support unlimited input strips and fix bugs.

I also rewrote this operator in patch D4290: VSE new python operators

Mon, Feb 25, 10:00 AM · Video Sequencer, Python, BF Blender
Jon Seigel (jseigelis) created T61923: Rewrote VSE Sound Crossfade script to support unlimited input strips and fix bugs.
Mon, Feb 25, 7:22 AM · Video Sequencer, Python, BF Blender
Campbell Barton (campbellbarton) closed T61915: bmesh.select_history return invalid value as Invalid.

This isn't a bug, selection history only for for picking individual elements.

Mon, Feb 25, 6:55 AM · Python, BF Blender: 2.8, BF Blender

Sun, Feb 24

Vlad (Darcvizer) created T61915: bmesh.select_history return invalid value.
Sun, Feb 24, 10:23 PM · Python, BF Blender: 2.8, BF Blender

Sat, Feb 23

dima glib (dairin0d) created D4397: Exposing BASE_HIDDEN flag to python.
Sat, Feb 23, 12:08 PM · Python, BF Blender: 2.8

Fri, Feb 22

Richard Antalik (ISS) merged task T40663: Python can't figure out Sequencer Strip element dimensions into T54395: VSE Edit Strip - Original Dimensions shows Proxy Dimensions.
Fri, Feb 22, 8:29 PM · Video Sequencer, Python, BF Blender

Feb 16 2019

Vlad (Darcvizer) added a comment to T60891: Python bgl docs still includes deprecated OpenGL functions.

I would be happy to give an example of how to transfer the coordinates of a real object, rather than enter them manually.
https://docs.blender.org/api/blender2.8/gpu.html#wireframe-cube-using-index-buffer

Feb 16 2019, 11:33 AM · Python, BF Blender

Feb 14 2019

Bastian Neumann (bneu) added a comment to T60934: Undo crashes when calling bpy.ops.ed.undo_history(index=0) from Python in background mode.

Thank you for providing an fix for that issue.

Feb 14 2019, 8:28 AM · Python, BF Blender
G. Krause (G.Krause) added a comment to T61443: ExportHelper crashes with exit code 3221226356 when called.

I have updated my Blender to yesterday's version and am unfortunately still having the same crashes.
I also updated my sample code in the first post, seems I deleted too much code when I was simplifying it. I am very sorry for that.
It should work (or rather crash) as intended now. I even added a small panel for convenience's sake.

Feb 14 2019, 4:04 AM · Python, BF Blender: 2.8
G. Krause (G.Krause) raised the priority of T61443: ExportHelper crashes with exit code 3221226356 when called from Needs Information from User to Needs Triage by Developer.
Feb 14 2019, 3:53 AM · Python, BF Blender: 2.8

Feb 13 2019

Jacques Lucke (JacquesLucke) triaged T61443: ExportHelper crashes with exit code 3221226356 when called as Needs Information from User priority.

I cannot reproduce this in the current build. Please check if the issue still exists.
If yes, then please start Blender from the terminal and post the output here.

Feb 13 2019, 5:33 PM · Python, BF Blender: 2.8
Sebastian Parborg (zeddb) merged task T59113: Addon's keymaps are not registered at Blender opening if the addon's enable state is saved in user preferences into T60766: Modal keymap customization from an addon is not restored properly.
Feb 13 2019, 4:39 PM · Python, BF Blender

Feb 12 2019

Piotr Kowalczyk (dopiotrko) added a comment to T61297: Blender is losing reference to collection property item when used in a recursive function?.

Ok. Thanks for Your help, and sorry for posting it here.

Feb 12 2019, 3:20 PM · Addons, Python, BF Blender
Philipp Oeser (lichtwerk) added a comment to T61297: Blender is losing reference to collection property item when used in a recursive function?.

thanx @Bastien Montagne (mont29) for clearing that up! (sorry for my uneducated fiddeling here...)

Feb 12 2019, 3:05 PM · Addons, Python, BF Blender
Piotr Kowalczyk (dopiotrko) added a comment to T61297: Blender is losing reference to collection property item when used in a recursive function?.
Feb 12 2019, 2:57 PM · Addons, Python, BF Blender
dima glib (dairin0d) added a comment to T61433: Non-single-column layouts are not displayed correctly in menus.

Thanks again!

Feb 12 2019, 2:55 PM · User Interface, Python, BF Blender
Bastien Montagne (mont29) closed T61297: Blender is losing reference to collection property item when used in a recursive function? as Invalid.

First of all, this is not a bug report at all, and should not be handled here. We have a site for that kind of question: https://devtalk.blender.org/

Feb 12 2019, 2:44 PM · Addons, Python, BF Blender