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

Mon, Jun 26

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).

Mon, Jun 26, 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.

Mon, Jun 26, 9:33 PM · Python, Import/Export, Addons
Paolo Acampora (pkrime) added a comment to D2713: FBX import characters with bone weights exceeding 1.0.
Mon, Jun 26, 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

Mon, Jun 26, 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

Mon, Jun 26, 5:22 PM · Python, Import/Export, Addons
Bastien Montagne (mont29) requested changes to D2713: FBX import characters with bone weights exceeding 1.0.

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). Further more, adding yet another storage here can edn up being a problem with big meshes or lots of objects (cases that are already not-so-well handled). Further more, different 'maximum weights' would lead to different normalization factor, which

Mon, Jun 26, 4:42 PM · Python, Import/Export, Addons
Campbell Barton (campbellbarton) edited the description of T47811: Blender 2.8x / Python, Proposed Changes.
Mon, Jun 26, 1:04 PM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) edited the description of T47811: Blender 2.8x / Python, Proposed Changes.
Mon, Jun 26, 1:03 PM · BF Blender: 2.8, Python
Aaron Carlisle (Blendify) closed T49781: Where to include the doc on the blend file as "Resolved".
Mon, Jun 26, 5:50 AM · Infrastructure: Websites, Python

Fri, Jun 23

Ivan Cappiello (icappiello) updated subscribers of D2713: FBX import characters with bone weights exceeding 1.0.

hey @Brendon Murphy (meta-androcto) can you please have a look at this?

Fri, Jun 23, 3:28 PM · Python, Import/Export, Addons

Thu, Jun 22

Dalai Felinto (dfelinto) closed T51863: PYAPI: CompositorNodeSwitchView have the wrong api docs as "Resolved" by committing rBbe4b5551c7a4: Fix T51863: CompositorNodeSwitchView have the wrong rna API.
Thu, Jun 22, 10:28 AM · Python, Documentation, Compositing, BF Blender

Wed, Jun 21

Aaron Carlisle (Blendify) triaged T51863: PYAPI: CompositorNodeSwitchView have the wrong api docs as "Normal" priority.
Wed, Jun 21, 9:49 PM · Python, Documentation, Compositing, BF Blender
Aaron Carlisle (Blendify) assigned T51863: PYAPI: CompositorNodeSwitchView have the wrong api docs to Dalai Felinto (dfelinto).
Wed, Jun 21, 9:49 PM · Python, Documentation, Compositing, BF Blender
Aaron Carlisle (Blendify) created T51863: PYAPI: CompositorNodeSwitchView have the wrong api docs.
Wed, Jun 21, 9:49 PM · Python, Documentation, Compositing, BF Blender

Fri, Jun 16

Bastien Montagne (mont29) closed T51810: Create example for bpy.app.translations as "Resolved" by committing rBfc4154f857ba: Fix T51810: Add minimal example of usage of translation API for non-official….
Fri, Jun 16, 4:44 PM · Documentation, Python
Bastien Montagne (mont29) added a comment to T51810: Create example for bpy.app.translations.

We do not need code example, looks like we need some stupid empty line to make sphinx happy…

Fri, Jun 16, 4:31 PM · Documentation, Python
Aaron Carlisle (Blendify) moved T51810: Create example for bpy.app.translations from Backlog to Python API on the Documentation board.
Fri, Jun 16, 5:18 AM · Documentation, Python
Aaron Carlisle (Blendify) moved T51387: Macro (bpy.types.Macro) needs proper documentation from Backlog to Python API on the Documentation board.
Fri, Jun 16, 5:18 AM · Python, Documentation
Aaron Carlisle (Blendify) closed T51473: API: images, use external image with sphinx 1.6 as "Invalid".

We decided to host this doc on the manual instead.

Fri, Jun 16, 5:17 AM · Python, Documentation
Aaron Carlisle (Blendify) closed D2621: API Docs: Add html logo by committing rBa348023196bf: PyAPI: Add HTML logo and favicon.
Fri, Jun 16, 4:02 AM · Python, BF Blender, Documentation

Thu, Jun 15

Paolo Acampora (pkrime) created D2713: FBX import characters with bone weights exceeding 1.0.
Thu, Jun 15, 6:57 PM · Python, Import/Export, Addons

Wed, Jun 14

Aaron Carlisle (Blendify) triaged T51810: Create example for bpy.app.translations as "Normal" priority.
Wed, Jun 14, 11:37 PM · Documentation, Python
Aaron Carlisle (Blendify) created T51810: Create example for bpy.app.translations.
Wed, Jun 14, 11:36 PM · Documentation, Python
Campbell Barton (campbellbarton) added a comment to T51473: API: images, use external image with sphinx 1.6.

Tsk, my bad was thinking this was related to the manual. +1.

Wed, Jun 14, 9:09 PM · Python, Documentation
Aaron Carlisle (Blendify) added a comment to T51473: API: images, use external image with sphinx 1.6.

Currently, the only images in use are on this page: https://docs.blender.org/api/current/info_tutorial_addon.html

Wed, Jun 14, 9:07 PM · Python, Documentation
Campbell Barton (campbellbarton) added a comment to T51473: API: images, use external image with sphinx 1.6.
  • What are the benefits / whats this solve?
  • What will a URL look like before/after?
Wed, Jun 14, 8:52 PM · Python, Documentation
Aaron Carlisle (Blendify) added inline comments to D2711: PYAPI: Add more information to bge video texture docs.
Wed, Jun 14, 7:02 PM · Game Engine, Python, Documentation, BF Blender
Porteries Tristan (panzergame) added inline comments to D2711: PYAPI: Add more information to bge video texture docs.
Wed, Jun 14, 6:30 PM · Game Engine, Python, Documentation, BF Blender
Porteries Tristan (panzergame) added a reviewer for D2711: PYAPI: Add more information to bge video texture docs: Benoit Bolsee (ben2610).
Wed, Jun 14, 6:20 PM · Game Engine, Python, Documentation, BF Blender
Aaron Carlisle (Blendify) created D2711: PYAPI: Add more information to bge video texture docs.
Wed, Jun 14, 5:44 PM · Game Engine, Python, Documentation, BF Blender

Fri, Jun 9

Sergey Sharybin (sergey) closed T51096: path_from_id does not work on subproperties of a custom node as "Archived".

This is a design limitation: you can never go from current property to parent, it is just unknown. So what happens here is that path_from_id() can find property, but can not construct full path to it relative to ID because you don't know where it is coming from.

Fri, Jun 9, 11:29 AM · Python, BF Blender
Sergey Sharybin (sergey) assigned T51745: extrude_face_region BMesh operator non-functioning argument to Campbell Barton (campbellbarton).

@Campbell Barton (campbellbarton) or @Bastien Montagne (mont29), mind having a look here? Thanks! :)

Fri, Jun 9, 10:49 AM · Python, Mesh Modeling, BF Blender

Thu, Jun 8

Mikhail Rachinskiy (alm) created T51745: extrude_face_region BMesh operator non-functioning argument.
Thu, Jun 8, 12:20 PM · Python, Mesh Modeling, BF Blender
Campbell Barton (campbellbarton) edited the description of T47811: Blender 2.8x / Python, Proposed Changes.
Thu, Jun 8, 11:06 AM · BF Blender: 2.8, Python

Tue, Jun 6

sunding (sunding) added a watcher for Python: sunding (sunding).
Tue, Jun 6, 7:53 AM

Sun, Jun 4

Satish Goda (satishgoda) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

I really like and support the move to Python 3.6 beyond 2.79.

Sun, Jun 4, 2:24 AM · BF Blender: 2.8, Python

Wed, May 31

zzj added a watcher for Python: zzj.
Wed, May 31, 4:00 PM

Tue, May 30

Julien DUROURE (julien) added a project to T51096: path_from_id does not work on subproperties of a custom node: Python.
Tue, May 30, 10:52 AM · Python, BF Blender

May 25 2017

Campbell Barton (campbellbarton) closed T51615: Image attribute has_data gives incorrect values as "Resolved" by committing rB1ddf67382bec: Docs: Image.has_data clarification.
May 25 2017, 11:52 AM · Python, BF Blender
Brecht Van Lommel (brecht) added a comment to T51615: Image attribute has_data gives incorrect values.

img.has_data tests if the image data is currently loaded in memory, it doesn't test if the image is valid if no attempt has been made to load it.

May 25 2017, 4:05 AM · Python, BF Blender

May 24 2017

Miki (MeshLogic) created T51615: Image attribute has_data gives incorrect values.
May 24 2017, 8:51 PM · Python, BF Blender

May 23 2017

Martin Felke (scorpion81) added a comment to T51052: CacheFile Open Operator Crashes Blender.

Seems to be an invalid pointer when this operator is directly executed from python instead of being invoked before.

May 23 2017, 8:04 PM · Python, Import/Export, BF Blender
Iso Sevens (iso_7s) added a comment to T51415: Python 3.5.2 has an issue, please replace with 3.5.3.

Thank you very much for fixing :)

May 23 2017, 11:05 AM · Python, BF Blender

May 22 2017

Sergey Sharybin (sergey) closed T51585: from_pydata function can not process numpy lists of faces as "Archived".

Surely it will be nice to support, but it is more a feature request than a bug, which we don't accept in the bug tracker.

May 22 2017, 2:59 PM · Python, Addons
toony hollawolla (yeus) created T51585: from_pydata function can not process numpy lists of faces.
May 22 2017, 11:46 AM · Python, Addons

May 19 2017

Bastien Montagne (mont29) closed T51415: Python 3.5.2 has an issue, please replace with 3.5.3 as "Resolved".

Finally we decided to update our python to 3.5.3, linux builds from the buildbot should already be updated now, other platforms will be in coming days. Considering the issue as fixed, thanks for the report.

May 19 2017, 7:48 AM · Python, BF Blender

May 16 2017

Aaron Carlisle (Blendify) closed T51114: PyAPI: Problem to compile API (sphinx_doc_gen.**) as "Resolved".

Ok closing.

May 16 2017, 8:47 PM · Documentation, Python, BF Blender
Rainer Trummer (aliasguru) added a comment to T48630: Adding Node Sockets to Node Group from Python crashes Blender.

@Brendon Murphy (meta-androcto) Indeed this has been silently fixed somewhen, that's good news! Not sure when it has been adressed, but no crashes any longer

May 16 2017, 5:37 PM · Python, Addons
Brendon Murphy (meta-androcto) closed T48630: Adding Node Sockets to Node Group from Python crashes Blender as "Archived".

archiving this task, no activity nearly 1 year, tested file in 2.78c buildbot & cannot reproduce the error.
feel free to reopen if I'm wrong here.

May 16 2017, 2:24 AM · Python, Addons

May 15 2017

Sergey Sharybin (sergey) closed T51306: EXCEPTION_ACCESS_VIOLATION After append parented objects with python (Blender 2.78) as "Resolved".

Thanks for the report, but this issue was already fixed in latest master.

May 15 2017, 2:02 PM · Python, BF Blender