PythonProject
ActivePublic

Members

  • This project does not have any members.

Properties

Description

Python API for scripting and console editor.

Module Owner: @Campbell Barton (campbellbarton)

Recent Activity

Yesterday

Tom Musgrove (letterrip) added a project to T52195: Sculpt API can no longer be used to draw strokes via python: BF Blender: Regressions.
Wed, Jul 26, 7:25 PM · BF Blender: Regressions, Python, Sculpting and Painting, BF Blender
Tom Musgrove (letterrip) assigned T52195: Sculpt API can no longer be used to draw strokes via python to Campbell Barton (campbellbarton).

Campbell, I believe it is one of these commits that caused the issue (I think the more recent of the two, but can't recall for certain.)

Wed, Jul 26, 7:14 PM · BF Blender: Regressions, Python, Sculpting and Painting, BF Blender
Tom Musgrove (letterrip) created T52195: Sculpt API can no longer be used to draw strokes via python.
Wed, Jul 26, 6:59 PM · BF Blender: Regressions, Python, Sculpting and Painting, BF Blender

Mon, Jul 24

john peterson (bliblubli) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

@john peterson (bliblubli), this isn't enough info, are you interested to create a task that includes proposed changes? (something like T51219).

Mon, Jul 24, 8:25 PM · BF Blender: 2.8, Python

Sun, Jul 23

Aleksandr Zinovev (raa) abandoned D2475: Show 'X' icon to clear value of text button.
Sun, Jul 23, 10:22 AM · Python
Brecht Van Lommel (brecht) closed T52155: Denoising parameters not accessible in Python as "Archived".

Displaying the path automatically in tooltip is not supported yet (it's an old to do, see e.g. T25746). However the properties are accessible:

bpy.context.scene.render.layers[0].cycles.use_denoising
Sun, Jul 23, 12:45 AM · Cycles, Python

Sat, Jul 22

Steffen Hauser (shauser) edited the description of T52155: Denoising parameters not accessible in Python.
Sat, Jul 22, 10:53 PM · Cycles, Python
Steffen Hauser (shauser) created T52155: Denoising parameters not accessible in Python.
Sat, Jul 22, 10:52 PM · Cycles, Python

Thu, Jul 20

Bastien Montagne (mont29) closed T52132: Internationnal unit support for default values as "Invalid".

Thanks for the suggestion, but we do not accept feature requests or suggestions on this tracker (use forums or bf-funboard ML for that).

Thu, Jul 20, 5:49 PM · BF Blender, Python
Vuk Gardašević (lijenstina) edited projects for T52132: Internationnal unit support for default values, added: Python, BF Blender; removed Addons.
Thu, Jul 20, 5:15 PM · BF Blender, Python
Campbell Barton (campbellbarton) edited the description of T47811: Blender 2.8x / Python, Proposed Changes.
Thu, Jul 20, 8:30 AM · BF Blender: 2.8, Python

Wed, Jul 19

Bastien Montagne (mont29) closed T52044: blender quit after press P key as "Invalid".

Thanks for the report, but we do not support very limited platforms like raspberry pi at all - those are considered as waaayyyyyy to limited to run a modern Blender.

Wed, Jul 19, 11:04 AM · Python, Blender File
Bastien Montagne (mont29) closed T52047: PointerPropety of ID sub type doesn't work as Operator attribute as "Invalid".

PointerProperty is not supposed to work in Operator at all (technically, we have no 'runtime' definition for Ppinter RNA property type).

Wed, Jul 19, 11:00 AM · Python, BF Blender

Mon, Jul 17

Brecht Van Lommel (brecht) closed T52090: EnumProperty weird behavior using ENUM_FLAG option with `number` items argument as "Resolved" by committing rBd268cad06a52: Fix T52090: clarify meaning of EnumProperty number when using ENUM_FLAG..
Mon, Jul 17, 6:55 PM · Python, User Interface, BF Blender
Brecht Van Lommel (brecht) added a comment to T52090: EnumProperty weird behavior using ENUM_FLAG option with `number` items argument.

I updated the documentation to describe the reason for this behavior, the numbers must be powers of two:

Mon, Jul 17, 6:55 PM · Python, User Interface, BF Blender
Mikhail Rachinskiy (alm) created T52090: EnumProperty weird behavior using ENUM_FLAG option with `number` items argument.
Mon, Jul 17, 1:18 PM · Python, User Interface, BF Blender

Sat, Jul 15

Aaron Carlisle (Blendify) closed T52040: Rename file as "Archived".

Thanks for the suggestion but the naming is still being discussed see T43623 so I would rather not make noisy commits until this is finalized on.

Sat, Jul 15, 10:29 PM · User Interface, Python
Vuk Gardašević (lijenstina) added a comment to T52040: Rename file.

Half way there:) Press the continue button and fill up the title and the summary fields and create the differential.
You don't need to assign any developer as reviewer if you are not sure who to add.

Sat, Jul 15, 10:15 PM · User Interface, Python
Anders Lindén (AndersBillLinden) added a comment to T52040: Rename file.

Differential at https://developer.blender.org/differential/diff/9010/ please let me know if I should add it somewhere to this task.

Sat, Jul 15, 4:31 PM · User Interface, Python
Vuk Gardašević (lijenstina) added a comment to T52040: Rename file.

For submitting patches to blender please consult this page:
https://wiki.blender.org/index.php/Dev:Doc/Process/Contributing_Code

Sat, Jul 15, 9:35 AM · User Interface, Python

Fri, Jul 14

Anders Lindén (AndersBillLinden) added a comment to T52040: Rename file.

I already provided a unified diff. Please tell me what more to provide!

Fri, Jul 14, 9:24 AM · User Interface, Python
Anders Lindén (AndersBillLinden) edited the description of T52040: Rename file.
Fri, Jul 14, 9:20 AM · User Interface, Python

Thu, Jul 13

Vuk Gardašević (lijenstina) added projects to T52040: Rename file: Python, User Interface.

Please can you make a differential for this patch?
Add a small description explaining the purpose of the proposed changes. After possible approval / code review it can be included in future versions (2.80 series) since we are really close to 2.79.

Thu, Jul 13, 8:11 PM · User Interface, Python
Przemyslaw Golab (n-pigeon) created T52047: PointerPropety of ID sub type doesn't work as Operator attribute.
Thu, Jul 13, 4:00 PM · Python, BF Blender
sekmani (sekmani52) created T52044: blender quit after press P key.
Thu, Jul 13, 9:51 AM · Python, Blender File
Campbell Barton (campbellbarton) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

@john peterson (bliblubli), this isn't enough info, are you interested to create a task that includes proposed changes? (something like T51219).

Thu, Jul 13, 4:53 AM · BF Blender: 2.8, Python

Wed, Jul 12

john peterson (bliblubli) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

As suggested today on IRC, making robust naming conventions for bmesh operators would help new coders to jump in. It will be very helpful for making the nodal everything work faster. At the moment, the use of for example underscores is pretty random. Having easy to search names will give more time for real coding.

Wed, Jul 12, 11:56 AM · BF Blender: 2.8, Python

Tue, Jul 11

Campbell Barton (campbellbarton) added a comment to T51745: extrude_face_region BMesh operator non-functioning argument.

The value is used, this is more of a documentation issue, committed edit.

Tue, Jul 11, 6:44 AM · Python, Mesh Modeling, BF Blender
Campbell Barton (campbellbarton) closed T51745: extrude_face_region BMesh operator non-functioning argument as "Resolved" by committing rB218c254e7211: Resolve T51745: Mesh extrude keep-orig needs edges.
Tue, Jul 11, 6:44 AM · Python, Mesh Modeling, BF Blender

Mon, Jul 10

Campbell Barton (campbellbarton) closed T51052: CacheFile Open Operator Crashes Blender as "Resolved" by committing rB2c10e8a3cfff: Fix T51052: CacheFile Open crashes from Python.
Mon, Jul 10, 9:29 AM · Python, Import/Export, BF Blender

Fri, Jul 7

Another Tux User (ntuxer) added a comment to T51983: bpy.ops.screenshot() provoke error if python script is called as command line argument.

Thanks for your precision

Fri, Jul 7, 4:21 PM · Python, BF Blender
Sergey Sharybin (sergey) added a comment to T51983: bpy.ops.screenshot() provoke error if python script is called as command line argument.

As mentioned above, UI is launched but is not being drawn at the time when your script runs.

Fri, Jul 7, 3:44 PM · Python, BF Blender
Another Tux User (ntuxer) added a comment to T51983: bpy.ops.screenshot() provoke error if python script is called as command line argument.

Thanks for your answer but, forgetting "--background" option (1st and 2nd "NOT working" cases), why are these commands not being able to a take valid screenshot since the UI is launched and can be modified by my script as you can test if you uncomment corresponding lines (so the OpenGL buffer should be readable as you mentioned, since Blender is not started in background) ?

Fri, Jul 7, 3:17 PM · Python, BF Blender
Sergey Sharybin (sergey) closed T51983: bpy.ops.screenshot() provoke error if python script is called as command line argument as "Archived".

The warning is caused by script trying to trick the system and override the context, that context is likely in inconsistent state. When running screenshot from the interface you don't need to override any of the contexts.

Fri, Jul 7, 9:48 AM · Python, BF Blender

Thu, Jul 6

Another Tux User (ntuxer) edited the description of T51983: bpy.ops.screenshot() provoke error if python script is called as command line argument.
Thu, Jul 6, 11:58 PM · Python, BF Blender
Another Tux User (ntuxer) edited the description of T51983: bpy.ops.screenshot() provoke error if python script is called as command line argument.
Thu, Jul 6, 11:57 PM · Python, BF Blender
Another Tux User (ntuxer) edited the description of T51983: bpy.ops.screenshot() provoke error if python script is called as command line argument.
Thu, Jul 6, 11:54 PM · Python, BF Blender
Another Tux User (ntuxer) created T51983: bpy.ops.screenshot() provoke error if python script is called as command line argument.
Thu, Jul 6, 11:53 PM · Python, BF Blender

Wed, Jul 5

Thomas Szepe (hg1) added a comment to D2734: Buffer Protocol for bgl.Buffer.

Actually I don't have tested it, I also don't have experience with the buffer protocol and if there are no other issues with it.
Did you have tested the buffer also with some of the other bgl function calls like glTexImage2D()?
Does slicing the buffer still work?

Wed, Jul 5, 7:42 PM · OpenGL / Gfx, Game Python, Python
Markus Kohout (ricorodriguez) changed the edit policy for D2734: Buffer Protocol for bgl.Buffer.
Wed, Jul 5, 3:05 PM · OpenGL / Gfx, Game Python, Python
Markus Kohout (ricorodriguez) added a reviewer for D2734: Buffer Protocol for bgl.Buffer: Game Engine.
Wed, Jul 5, 3:04 PM · OpenGL / Gfx, Game Python, Python
Markus Kohout (ricorodriguez) added reviewers for D2734: Buffer Protocol for bgl.Buffer: Game Python, Python.
Wed, Jul 5, 3:04 PM · OpenGL / Gfx, Game Python, Python

Mon, Jul 3

Markus Kohout (ricorodriguez) created D2734: Buffer Protocol for bgl.Buffer.
Mon, Jul 3, 9:16 PM · OpenGL / Gfx, Game Python, Python

Thu, Jun 29

Bastien Montagne (mont29) closed T51932: Edges add script bug as "Invalid".

Thanks for the report, but no bug here, python API is designed to be efficient, not to protect the developer against himself. There are billions of ways of generating a corrupted mesh from python in Blender, it's up to you to do valid things (and you can always also use Mesh.validate() method in case you do not trust your generated geometry for some reasons, e.g. when importing from other formats).

Thu, Jun 29, 8:48 PM · Collada, Python, BF Blender
Alexey (Inwader77) created T51932: Edges add script bug.
Thu, Jun 29, 5:13 PM · Collada, Python, BF Blender

Jun 26 2017

Paolo Acampora (pkrime) added a comment to D2713: FBX import characters with bone weights exceeding 1.0.

Perhaps the best option is to write an external tool: a very simple stand alone program which can normalize all the weights and save to a clean fbx file. This way we would avoid polluting blender and we would not be limited to python. We could even use the autodesk SDK (need to check their license though).

Jun 26 2017, 10:26 PM · Python, Import/Export, Addons
Bastien Montagne (mont29) added a comment to D2713: FBX import characters with bone weights exceeding 1.0.

I don’t say trying to fix those stupid weighting is bad or wrong, I say that doing so by only normalizing on a per-vertex basis is wrong. With your code, a set of weights for three vertices like that ((0.1, 0.5, 0.2), (0.2, 1.6, 0.2), (3.0, 2.4, 0.6)) would be normalized to something like that (if I followed your code correctly): ((0.1, 0.5, 0.2), (0.1, 0.8, 0.1), (0.5, 0.4, 0.1)). On set of weights remain unchanged, while the two others are scaled by different factors - you end up with vgroups totally different from input ones, not only uniformly scaled, which imho is not acceptable in general. That’s why I said 'scale them all by highest weight found', and you are done. If people want to normalize their groups afterwards, they can do it - but it should not be done silently by default, and certainly not while letting some unnormalized.

Jun 26 2017, 9:33 PM · Python, Import/Export, Addons
Paolo Acampora (pkrime) added a comment to D2713: FBX import characters with bone weights exceeding 1.0.
Jun 26 2017, 7:18 PM · Python, Import/Export, Addons
Bastien Montagne (mont29) added a comment to D2713: FBX import characters with bone weights exceeding 1.0.

Hello mont29, thanks for looking into this

This won’t work that way… Main issue with this patch is that it ignores weights below 1.0 (so they won't be scaled accordingly when bigger ones are).

All weights are scaled in the latest block (line 2189). No need to store weights below 1.0 in the dictionary, as no information is lost when we assign them to the vertex group

Jun 26 2017, 5:41 PM · Python, Import/Export, Addons
Paolo Acampora (pkrime) added a comment to D2713: FBX import characters with bone weights exceeding 1.0.

Hello mont29, thanks for looking into this

Jun 26 2017, 5:22 PM · Python, Import/Export, Addons