Page MenuHome

Python APIProject
ActivePublic

Details

Description

This project includes the Python API, Add-ons, the console the text editor and more.

Important links

Contacts

Sub-Modules:


Long-Term Roadmap

Python & Addons

Recent Activity

Today

michael campbell (3di) added a comment to T54314: Contents of "Viewer Node" image block do not get updated .

oh man, what a show stopping problem. Can anyone recommend a good python package for controlling the mouse that works on windows, mac and linux without the user having to grant any permissions at OS level?

Sun, May 16, 2:02 AM · Python API, Render & Cycles, Nodes, Cycles, BF Blender

Yesterday

Hans Goudey (HooglyBoogly) updated the diff for D9697: Refactor IDProperty UI data storage.
  • Merge branch 'master' into refactor-idprop-ui-data
  • Correct return type in doc string
  • Cleanup: Use BLI_assert_unreachable()
  • Fix missing comma in doc string
  • Simplify arg parsing of rna_subtype and description
  • Remove rna_ prefix from function names
Sat, May 15, 12:46 AM · Python API, Core
Hans Goudey (HooglyBoogly) added inline comments to D9697: Refactor IDProperty UI data storage.
Sat, May 15, 12:42 AM · Python API, Core

Fri, May 14

Alexander Gavrilov (angavrilov) added a project to D11264: Mathutils: add a Matrix.LocRotScale constructor for combining channels.: Python API.
Fri, May 14, 8:06 PM · Python API
Ankit Meel (ankitm) updated the task description for T85641: Freeze when using Object.ray_cast in a driver script.
Fri, May 14, 4:35 PM · Python API, BF Blender
Ankit Meel (ankitm) changed the status of T85641: Freeze when using Object.ray_cast in a driver script from Needs Triage to Confirmed.
#0   in __psynch_cvwait ()
#1   in _pthread_cond_wait ()
#2   in PyCOND_TIMEDWAIT [inlined] at /python/src/external_python/Python/condvar.h:73
#3   in take_gil at /python/src/external_python/Python/ceval_gil.h:247
#4   in PyEval_RestoreThread at /python/src/external_python/Python/ceval.c:467
#5   in PyGILState_Ensure at /python/src/external_python/Python/pystate.c:1378
#6   in BPY_DECREF at source/blender/python/intern/bpy_interface.c:617
#7   in fcurve_free_driver at source/blender/blenkernel/intern/fcurve_driver.c:930
#8   in BKE_fcurve_free at source/blender/blenkernel/intern/fcurve.c:95
#9   in BKE_fcurves_free at source/blender/blenkernel/intern/fcurve.c:118
#10  in BKE_animdata_free at source/blender/blenkernel/intern/anim_data.c:256
#11  in BKE_libblock_free_data at source/blender/blenkernel/intern/lib_id_delete.c:72
#12  in blender::deg::deg_free_copy_on_write_datablock(ID*) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1080
#13  in blender::deg::deg_update_copy_on_write_datablock(blender::deg::Depsgraph const*, blender::deg::IDNode const*) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:958
#14  in blender::deg::deg_evaluate_copy_on_write(Depsgraph*, blender::deg::IDNode const*) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1094
#15  in blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0::operator()(Depsgraph*) const at source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:181
#16  in decltype(std::__1::forward<blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0&>(fp)(std::__1::forward<Depsgraph*>(fp0))) std::__1::__invoke<blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0&, Depsgraph*>(blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0&, Depsgraph*&&) at /usr/include/c++/v1/type_traits:3904
#17  in void std::__1::__invoke_void_return_wrapper<void, true>::__call<blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0&, Depsgraph*>(blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0&, Depsgraph*&&) at /usr/include/c++/v1/__functional_base:348
#18  in std::__1::__function::__alloc_func<blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0, std::__1::allocator<blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0>, void (Depsgraph*)>::operator()(Depsgraph*&&) at /usr/include/c++/v1/functional:1561
#19  in std::__1::__function::__func<blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0, std::__1::allocator<blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::$_0>, void (Depsgraph*)>::operator()(Depsgraph*&&) at /usr/include/c++/v1/functional:1735
#20  in std::__1::__function::__value_func<void (Depsgraph*)>::operator()(Depsgraph*&&) const at /usr/include/c++/v1/functional:1888
#21  in std::__1::function<void (Depsgraph*)>::operator()(Depsgraph*) const at /usr/include/c++/v1/functional:2563
#22  in blender::deg::(anonymous namespace)::evaluate_node(blender::deg::(anonymous namespace)::DepsgraphEvalState const*, blender::deg::OperationNode*) at source/blender/depsgraph/intern/eval/deg_eval.cc:113
#23  in blender::deg::(anonymous namespace)::deg_task_run_func(TaskPool*, void*) at source/blender/depsgraph/intern/eval/deg_eval.cc:124
#24  in Task::operator()() const::'lambda'()::operator()() const at source/blender/blenlib/intern/task_pool.cc:118
#25  in tbb::interface7::internal::delegated_function<Task::operator()() const::'lambda'() const, void>::operator()() const at darwin/tbb/include/tbb/task_arena.h:96
#26  in tbb::interface7::internal::isolate_within_arena(tbb::interface7::internal::delegate_base&, long) ()
#27  in void tbb::interface7::internal::isolate_impl<void, Task::operator()() const::'lambda'() const>(Task::operator()() const::'lambda'() const&) at darwin/tbb/include/tbb/task_arena.h:216
#28  in tbb::interface7::internal::return_type_or_void<Task::operator()() const::'lambda'()>::type tbb::interface7::this_task_arena::isolate<Task::operator()() const::'lambda'()>(Task::operator()() const::'lambda'() const&) at darwin/tbb/include/tbb/task_arena.h:472
#29  in Task::operator()() const at source/blender/blenlib/intern/task_pool.cc:118
#30  in tbb::internal::function_task<Task>::execute() at darwin/tbb/include/tbb/task.h:1059
#31  in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) ()
#32  in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) ()
#33  in tbb::internal::task_group_base::wait() ()
#34  in tbb_task_pool_work_and_wait(TaskPool*) at source/blender/blenlib/intern/task_pool.cc:253
#35  in ::BLI_task_pool_work_and_wait(TaskPool *) at source/blender/blenlib/intern/task_pool.cc:502
#36  in blender::deg::deg_evaluate_on_refresh(blender::deg::Depsgraph*) at source/blender/depsgraph/intern/eval/deg_eval.cc:397
#37  in deg_flush_updates_and_refresh(blender::deg::Depsgraph*) at source/blender/depsgraph/intern/depsgraph_eval.cc:58
#38  in ::DEG_evaluate_on_framechange(Depsgraph *, float) at source/blender/depsgraph/intern/depsgraph_eval.cc:82
#39  in BKE_scene_graph_update_for_newframe_ex at source/blender/blenkernel/intern/scene.c:2738
#40  in BKE_scene_graph_update_for_newframe at source/blender/blenkernel/intern/scene.c:2786
#41  in ED_update_for_newframe at source/blender/editors/screen/screen_edit.c:1764
#42  in wm_event_do_notifiers at source/blender/windowmanager/intern/wm_event_system.c:535
#43  in WM_main at source/blender/windowmanager/intern/wm.c:650
#44  in main at source/creator/creator.c:519
#45  in start ()
#46  in start ()

It's stuck at

Fri, May 14, 4:29 PM · Python API, BF Blender

Wed, May 12

Campbell Barton (campbellbarton) updated the task description for T85675: Blender 3.0 (Python API deprecation, updates).
Wed, May 12, 2:15 PM · BF Blender (3.0), Python API
Campbell Barton (campbellbarton) added a comment to D9697: Refactor IDProperty UI data storage.

Looking over int/float number parsing, it still needs some work to parse any kind of number and even more work to give a useful error message if one of the arguments can't be parsed or overflows.

Wed, May 12, 5:09 AM · Python API, Core

Tue, May 11

Hans Goudey (HooglyBoogly) added inline comments to D9697: Refactor IDProperty UI data storage.
Tue, May 11, 10:56 PM · Python API, Core
Hans Goudey (HooglyBoogly) updated the diff for D9697: Refactor IDProperty UI data storage.
  • Cleanup: Formatting of long python argument lists
  • Cleanup: Rename functions (IDP_coerce_to_*_or_zero)
  • Cleanup: Rename functions (IDP_ui_data prefix)
  • Use keyword-only arguments
  • Add error message for RNA subtype not found
  • Use return NULL; when parsing arguments fails
  • Cleanup: Rename functions (rna_ui_data prefix, id_properties_create)
  • Add error checking when converting to int and double for UI data
  • Prevent UI data min from becoming greater than max and vice versa
Tue, May 11, 10:56 PM · Python API, Core
Falk David (filedescriptor) changed the status of T87768: `.path_resolve` ValueError failure when requested property is None. from Needs Triage to Confirmed.

I can confirm this on the latest 3.0.0 Alpha.

Tue, May 11, 3:51 PM · Python API, BF Blender
Sergey Sharybin (sergey) added a comment to T85675: Blender 3.0 (Python API deprecation, updates).

Sounds good to me.

Tue, May 11, 9:24 AM · BF Blender (3.0), Python API
Campbell Barton (campbellbarton) closed T88190: IDProperty iterator fails when the data it's looping over goes out of scope as Resolved by committing rB9801735b67ea: Fix T88190: Freed memory use when iterating over id-properties.
Tue, May 11, 4:20 AM · Python API
Campbell Barton (campbellbarton) changed the status of T88190: IDProperty iterator fails when the data it's looping over goes out of scope from Needs Triage to Confirmed.
Tue, May 11, 3:53 AM · Python API
Campbell Barton (campbellbarton) updated subscribers of T85675: Blender 3.0 (Python API deprecation, updates).

@Sergey Sharybin (sergey) what do you think of @Eitan (EitanSomething) 's suggestion?

Tue, May 11, 3:33 AM · BF Blender (3.0), Python API

Mon, May 10

Campbell Barton (campbellbarton) added inline comments to D9697: Refactor IDProperty UI data storage.
Mon, May 10, 3:57 PM · Python API, Core
Campbell Barton (campbellbarton) requested changes to D9697: Refactor IDProperty UI data storage.
Mon, May 10, 3:54 PM · Python API, Core

Sat, May 8

Hans Goudey (HooglyBoogly) updated the diff for D9697: Refactor IDProperty UI data storage.
  • Merge master (resolve conflicts in MOD_nodes.cc)
  • Small whitespace cleanup
  • Also version nodes modifier settings
Sat, May 8, 8:31 PM · Python API, Core

Fri, May 7

Germano Cavalcante (mano-wii) updated the task description for T88033: Memory leak after importing a model/ toggling shading workspace.
Fri, May 7, 9:01 PM · Python API, BF Blender
Germano Cavalcante (mano-wii) changed the status of T88033: Memory leak after importing a model/ toggling shading workspace from Needs Triage to Confirmed.

I'm not sure if the two bugs are related, but as they only occur if the WITH_PYTHON_SAFETY option is enabled then it seems valid to be reported together.

Fri, May 7, 8:54 PM · Python API, BF Blender
Robert Guetzkow (rjg) merged T87687: Python problem with "Denoising Data" checkbox in "Layer properties"->Passes into T69803: Cycles Python tooltip path is not complete.
Fri, May 7, 9:15 AM · Tracker Curfew, Python API, Cycles, BF Blender

Thu, May 6

Philipp Oeser (lichtwerk) updated the task description for T88022: Blender crashes when merging mesh.vertices with a python script.
Thu, May 6, 4:51 PM · Python API, Modeling, BF Blender
Philipp Oeser (lichtwerk) changed the status of T88022: Blender crashes when merging mesh.vertices with a python script from Needs Triage to Confirmed.

Can confirm a crash here.

Thu, May 6, 4:49 PM · Python API, Modeling, BF Blender

Wed, May 5

Philipp Oeser (lichtwerk) changed the status of T88051: Context override of bpy.ops.object.mode_set does not work from Needs Triage to Needs Information from Developers.

Context is correctly overwritten in object_mode_set_exec (the object is taken from context here using CTX_data_active_object)

Wed, May 5, 2:01 PM · Python API, BF Blender
Dominik Winkelbauer (cornerfarmer) added a project to T88051: Context override of bpy.ops.object.mode_set does not work: Python API.
Wed, May 5, 1:01 PM · Python API, BF Blender
Philipp Oeser (lichtwerk) changed the status of T88047: Python API - Scale parameter isn't taken into account when adding primitive meshes from Needs Triage to Confirmed.

Can confirm, will check on this.

Wed, May 5, 10:00 AM · Python API, Modeling, BF Blender
Campbell Barton (campbellbarton) closed T87944: Python API Function `bpy.data.meshes.mesh_from_object()` No Longer Works as Resolved.

Resolved rBd18be66a54f9

Wed, May 5, 12:10 AM · Python API, BF Blender

Tue, May 4

Campbell Barton (campbellbarton) claimed T87944: Python API Function `bpy.data.meshes.mesh_from_object()` No Longer Works.
Tue, May 4, 1:06 PM · Python API, BF Blender

Mon, May 3

Philipp Oeser (lichtwerk) changed the status of T87944: Python API Function `bpy.data.meshes.mesh_from_object()` No Longer Works from Needs Triage to Confirmed.

I am seeing this in Release builds (not in Debug builds though).
Will dare setting this to High prio, since it looks like a regression.

Mon, May 3, 5:47 PM · Python API, BF Blender

Sun, May 2

Toke Stuart Jepsen (tokejepsen) added a comment to D10862: Expose Face Sets to Python.

I think it would be preferable to expose face sets as a builtin attribute (we have been talking recently about exposing the builtin attribute to python). I guess maybe that doesn't mean we wouldn't want to expose them here, but maybe it's redundant.

Sun, May 2, 3:51 PM · Python API, Sculpt, Paint & Texture
Kent Davis (mac4kent) added a comment to T86485: Render incorrectly with built-in shader '3D_POLYLINE_UNIFORM_COLOR'.

I am sorry I am very strong disagree with you because they said "CAN'T" No way. They did fix made it I can tell many years ago. I totally believe they can do fix everything as well. I am going show you on youtube. They can change code and match thickness line for Mac and Windows both.
Sculpting tab there error thickness line too.
See youtube.
@Everyones
https://youtu.be/8b8jRFL0W7w

Sun, May 2, 12:05 AM · Python API, BF Blender

Sat, May 1

Kent Davis (mac4kent) added a comment to T86485: Render incorrectly with built-in shader '3D_POLYLINE_UNIFORM_COLOR'.

Thank you for explain me @Germano Cavalcante (mano-wii)

Sat, May 1, 11:17 PM · Python API, BF Blender
Germano Cavalcante (mano-wii) added a comment to T86485: Render incorrectly with built-in shader '3D_POLYLINE_UNIFORM_COLOR'.

@Kent Davis (mac4kent), this report was closed (Archived) because the problem described is not a bug.
It was a user error.

Sat, May 1, 11:07 PM · Python API, BF Blender
Kent Davis (mac4kent) added a comment to T86485: Render incorrectly with built-in shader '3D_POLYLINE_UNIFORM_COLOR'.

Hello?

Sat, May 1, 10:46 PM · Python API, BF Blender

Thu, Apr 29

Hans Goudey (HooglyBoogly) updated the diff for D9697: Refactor IDProperty UI data storage.
  • Fix memory leak introduced by last commit
Thu, Apr 29, 8:45 PM · Python API, Core
Hans Goudey (HooglyBoogly) updated the diff for D9697: Refactor IDProperty UI data storage.
  • Refactor IDProperty usage in MOD_nodes.cc
  • Add IDP_ID UI data for tooltips from node sockets
Thu, Apr 29, 8:36 PM · Python API, Core
Hans Goudey (HooglyBoogly) updated the diff for D9697: Refactor IDProperty UI data storage.
  • Cleanup
Thu, Apr 29, 6:59 AM · Python API, Core
Hans Goudey (HooglyBoogly) updated the diff for D9697: Refactor IDProperty UI data storage.
  • Move versioning to versioning 300
Thu, Apr 29, 6:58 AM · Python API, Core
Hans Goudey (HooglyBoogly) updated the diff for D9697: Refactor IDProperty UI data storage.
  • Quick merge of latest master. Node socket tooltips are missing from the geometry nodes modifier, might have missed something during the merge. Will investigate tomorrow.y
Thu, Apr 29, 6:51 AM · Python API, Core

Wed, Apr 28

Kent Davis (mac4kent) added a comment to T86485: Render incorrectly with built-in shader '3D_POLYLINE_UNIFORM_COLOR'.

What is Archived?

Wed, Apr 28, 11:03 PM · Python API, BF Blender
Campbell Barton (campbellbarton) moved T86803: enum_items not working with dynamic EnumProperty from Backlog to Long-Term on the Python API board.
Wed, Apr 28, 4:42 PM · Python API, BF Blender
Campbell Barton (campbellbarton) changed the subtype of T86803: enum_items not working with dynamic EnumProperty from "Report" to "To Do".

Currently enum_items only works for static items. - That is a fixed array of items.

Wed, Apr 28, 4:42 PM · Python API, BF Blender
Campbell Barton (campbellbarton) moved T84148: Python API: TRANSFORM_OT_resize unrecognized in bpy.ops.mesh.extrude_region_move (macros can change their operators during execution) from Backlog to Known Issues on the Python API board.
Wed, Apr 28, 4:19 PM · Modeling, Python API, BF Blender
Campbell Barton (campbellbarton) moved T82390: Linked sockets by Python has `is_linked` attribute as False from Backlog to Bugs (API) on the Python API board.
Wed, Apr 28, 4:18 PM · Python API, BF Blender
Campbell Barton (campbellbarton) added a comment to T85841: color style of banner in Python Console arouse ambiguity.

This seems like a reasonable change, although I don't have a strong opinion.

Wed, Apr 28, 4:15 PM · Restricted Project, Python API, User Interface, BF Blender
Campbell Barton (campbellbarton) moved T85841: color style of banner in Python Console arouse ambiguity from Backlog to Papercuts on the Python API board.
Wed, Apr 28, 4:14 PM · Restricted Project, Python API, User Interface, BF Blender
Campbell Barton (campbellbarton) moved T82812: Including node group attribute into NodeTreePath from Backlog to Under Discussion on the Python API board.
Wed, Apr 28, 4:13 PM · BF Blender, Python API
Campbell Barton (campbellbarton) changed the subtype of T82812: Including node group attribute into NodeTreePath from "Report" to "Design".
Wed, Apr 28, 4:13 PM · BF Blender, Python API
Campbell Barton (campbellbarton) renamed T85606: "event.type" prints warning when accessing unknown key types (e.g. UNKNOWNKEY) from Text Input Warnings using "event.type" in a modal operator to "event.type" prints warning when accessing unknown key types (e.g. UNKNOWNKEY).
Wed, Apr 28, 3:51 PM · Python API
Campbell Barton (campbellbarton) moved T85606: "event.type" prints warning when accessing unknown key types (e.g. UNKNOWNKEY) from Backlog to Known Issues on the Python API board.
Wed, Apr 28, 3:50 PM · Python API