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

Today

Bastien Montagne (mont29) added a comment to T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.

There are gazillions of ways to make Blender crash with bad py code… ideally yes, that should be checked in the poll callback of the operators, but that’s not a bug.

Sat, Sep 22, 9:37 AM · BF Blender, Video Sequencer, Python
hudson barkley (snuq) added a comment to T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.

I was working with him on this script, we did end up getting it to work, and yes, the context was the problem... but regardless, shouldn't blender give an error rather than just crashing? Seems like it is still a bug.

Sat, Sep 22, 6:26 AM · BF Blender, Video Sequencer, Python

Yesterday

Bastien Montagne (mont29) closed T56859: Python 'View' functions for Sequencer/Preview makes Blender crash as Invalid.

OK finally managed to reproduce (that operator only works when VSE editor is in only-preview mode).

Fri, Sep 21, 3:30 PM · BF Blender, Video Sequencer, Python
Peter Fog (tintwotin) added a comment to T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.

Strange. It crashes here on 2.8 too.

Fri, Sep 21, 12:20 PM · BF Blender, Video Sequencer, Python
Bastien Montagne (mont29) triaged T56859: Python 'View' functions for Sequencer/Preview makes Blender crash as Incomplete priority.

Cannot reproduce any crash here with this code (once tabulation is fixed…). Please at the very least give us error message!

Fri, Sep 21, 9:57 AM · BF Blender, Video Sequencer, Python
Peter Fog (tintwotin) updated the task description for T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.
Fri, Sep 21, 4:39 AM · BF Blender, Video Sequencer, Python
Peter Fog (tintwotin) updated the task description for T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.
Fri, Sep 21, 4:38 AM · BF Blender, Video Sequencer, Python
Peter Fog (tintwotin) created T56859: Python 'View' functions for Sequencer/Preview makes Blender crash.
Fri, Sep 21, 4:37 AM · BF Blender, Video Sequencer, Python

Wed, Sep 19

Bastien Montagne (mont29) closed T56838: Quick smoke failing with Python error as Resolved by committing rB2be5621be818: Fix T56838: Quick smoke failing with Python error..
Wed, Sep 19, 10:33 AM · Python, BF Blender: 2.8
Bastien Montagne (mont29) claimed T56838: Quick smoke failing with Python error.

again…

Wed, Sep 19, 10:20 AM · Python, BF Blender: 2.8

Tue, Sep 18

Bastien Montagne (mont29) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Amir (Warrior) nothing prevents you from using system python instead of 'own' blender one, just ensuer you build with system python, disable the WITH_PYTHON_INSTALL build options, and blender will use system python, and you can use any module installed there. That would be by far the simplest solution (especially on linux, where valid system python should nearly always be available).

Tue, Sep 18, 5:30 PM · Python, Addons, BF Blender
Amir (Warrior) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Brecht Van Lommel (brecht) I think I fixed it actually but this is not a permanent solution and I'm not work if Armory is going to work properly this way.

Tue, Sep 18, 5:27 PM · Python, Addons, BF Blender
Amir (Warrior) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Brecht Van Lommel (brecht) No it shows me the following error although I ran the code above to install it.

Tue, Sep 18, 4:59 PM · Python, Addons, BF Blender
Brecht Van Lommel (brecht) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

I'm not sure I understand, doesn't bpy.ops.wm.addon_enable(module='armory') work, you just have to call it every time?

Tue, Sep 18, 4:46 PM · Python, Addons, BF Blender
Amir (Warrior) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Brecht Van Lommel (brecht) I think it's totally understandable to assume that people who compile Blender as Python module would ONLY need to use the "factory setting" functionalities, but it's not a good idea not to provide an option for others to be able to install addons :(

Tue, Sep 18, 4:45 PM · Python, Addons, BF Blender
Amir (Warrior) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Bastien Montagne (mont29) I don't have an issue running Blender with the -b flag but the reason that I'm compiling Blender as Python module is that I have many other packages that I'm using in my project and things are integrated. I do import pytorch, import cv2 etc and it's not possible to disentangle things. On the other hand, I don't think it is possible to compile a heavy code base like PyTorch and add its module into the internal Python that Blender comes with.

Tue, Sep 18, 4:40 PM · Python, Addons, BF Blender
Bastien Montagne (mont29) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Amir (Warrior) no, blender-as-module is a library, not an application. Blender with no GUI is… Blender with no GUI (run from commandline with -b option, you can even build it with WITH_HEADLESS option to actually have no available GUI at all).

Tue, Sep 18, 4:23 PM · Python, Addons, BF Blender
Amir (Warrior) added a comment to T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.

@Campbell Barton (campbellbarton) @Brecht Van Lommel (brecht) But it doesn't make sense not to be able to install addons if you're using the Python module. The Python module should be Blender with no GUI in my opinion and there shouldn't be any difference. Would you agree with that?
But still, is there a way to manually load a userpref.blend file with the Python module? How can one install addons when using the Python module?

Tue, Sep 18, 3:47 PM · Python, Addons, BF Blender
Brecht Van Lommel (brecht) closed T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module as Archived.

The Python module indeed always starts with "factory settings" by design. This is what you would normally expect from a programming API I think.

Tue, Sep 18, 10:41 AM · Python, Addons, BF Blender
Bastien Montagne (mont29) renamed T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module from Addon installation succeeds but the API is not accessible through the bpy module to blender as py module - Addon installation succeeds but the API is not accessible through the bpy module.
Tue, Sep 18, 9:32 AM · Python, Addons, BF Blender
Bastien Montagne (mont29) assigned T56829: blender as py module - Addon installation succeeds but the API is not accessible through the bpy module to Campbell Barton (campbellbarton).

@Campbell Barton (campbellbarton) will know more here, but am pretty sure blender-as-py-module does not handle at all user preferences and such? That would not make much sense at least, imho…

Tue, Sep 18, 9:31 AM · Python, Addons, BF Blender

Wed, Sep 12

Bastien Montagne (mont29) closed T56662: Autocomplete for texture slot Crash (in console) as Resolved by committing rB2ab1063616b9: Fix T56662: Autocomplete for texture slot Crash (in console)..
Wed, Sep 12, 6:32 PM · Python, Sculpting and Painting, BF Blender
Bastien Montagne (mont29) claimed T56662: Autocomplete for texture slot Crash (in console).
Wed, Sep 12, 6:31 PM · Python, Sculpting and Painting, BF Blender
Bastien Montagne (mont29) closed T56766: Bake Action Visual Keying Not Working as Resolved by committing rBe9ffe9335057: Fix T56766: Bake Action Visual Keying Not Working..
Wed, Sep 12, 11:52 AM · Python, BF Blender: 2.8
Bastien Montagne (mont29) claimed T56766: Bake Action Visual Keying Not Working.
Wed, Sep 12, 10:48 AM · Python, BF Blender: 2.8

Wed, Sep 5

David DiGioia (italianjoy) added a comment to T56662: Autocomplete for texture slot Crash (in console).

I have attached the blend file. When I open that file, select the console which already has the command typed in, and press ctrl + space, blender crashes.

Wed, Sep 5, 8:44 AM · Python, Sculpting and Painting, BF Blender
Campbell Barton (campbellbarton) added a comment to T56662: Autocomplete for texture slot Crash (in console).

Please attach the blend file that crashes.

Wed, Sep 5, 6:13 AM · Python, Sculpting and Painting, BF Blender
David DiGioia (italianjoy) added a comment to T56662: Autocomplete for texture slot Crash (in console).

After downloading the latest version of Blender (Hash 265ec400ab1) and running in factory mode, the error no longer occured. However with the default settings that I had set up, the error did occur. I have attached the printed error as a text file in case it is still of interest.

Wed, Sep 5, 4:33 AM · Python, Sculpting and Painting, BF Blender

Tue, Sep 4

Sergey Sharybin (sergey) added a commit to T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h: rC6f973c482101: Fix T56092: command line arguments after -- beginning with -h don't work..
Tue, Sep 4, 1:48 PM · Platform: Mac OS X, BF Blender, Quick Hacks, Python

Mon, Sep 3

Andrew Hale (trumanblending) updated the task description for T56519: Python: Extra element-wise operations.
Mon, Sep 3, 12:21 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) added a comment to T56519: Python: Extra element-wise operations.

@Campbell Barton (campbellbarton) / @Alexander Gavrilov (angavrilov)
Given that quaternions are somewhat more specialised than the other types, I've removed any changes to element-wise ops for them in D3642 (i.e. they behave as before).

Mon, Sep 3, 12:18 PM · BF Blender: 2.8, Python
Bastien Montagne (mont29) triaged T56662: Autocomplete for texture slot Crash (in console) as Incomplete priority.

Cannot reproduce either. Please:

  • Try to re-download and re-install Blender.
  • Try the latest build from our buildbot.
  • Try to start Blender in factory settings (--factory-startup commandline option) (this will ensure whether this is a userpref or addon issue or not).
  • Launch Blender from the command line with -d option and attach as text file here any error printed out in the console (do not paste it directly in comment).
Mon, Sep 3, 9:42 AM · Python, Sculpting and Painting, BF Blender
Campbell Barton (campbellbarton) added a comment to T56662: Autocomplete for texture slot Crash (in console).

Cant redo the crash w/ 2.79 release, master 7ff1750218bf3c2ef4c57f9ea4a12b738f4b7264 or blender2.8 ad68470d447dfb3864ed3e159dc0951bbf8547c6

Mon, Sep 3, 7:10 AM · Python, Sculpting and Painting, BF Blender
David DiGioia (italianjoy) created T56662: Autocomplete for texture slot Crash (in console).
Mon, Sep 3, 6:37 AM · Python, Sculpting and Painting, BF Blender

Sun, Sep 2

Alexander Gavrilov (angavrilov) added a comment to T56519: Python: Extra element-wise operations.

Quaternions are really points on a unit 4D sphere, so non-normalized quaternions only makes sense as an intermediate result during some kind of interpolation. Adding a float to all components is indeed quite pointless.

Sun, Sep 2, 12:57 PM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) added a comment to T56519: Python: Extra element-wise operations.

In general am in favor of supporting these, a few points.

Sun, Sep 2, 12:43 PM · BF Blender: 2.8, Python
lexomir (lexomir) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

I am currently using scene_update in my addon to check for object name changes, new objects, and filesystem changes. Please provide an alternative before removing.

Sun, Sep 2, 1:51 AM · BF Blender: 2.8, Python

Fri, Aug 31

Diego Gangl (januz) added a comment to T56616: Python: BMesh Operators: Allow Users to Provide Geometry Using Types and Flags.

I like where this proposal is going, but how would we make other "queries" like this:

Fri, Aug 31, 4:02 PM · BF Blender: 2.8, Python

Thu, Aug 30

Andrew Hale (trumanblending) triaged T56621: Python: Selection, Hiding, and View Layers API as Normal priority.
Thu, Aug 30, 6:33 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) triaged T56620: Python: New Material IO API as Normal priority.
Thu, Aug 30, 6:11 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) triaged T56616: Python: BMesh Operators: Allow Users to Provide Geometry Using Types and Flags as Normal priority.
Thu, Aug 30, 2:57 PM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) updated the task description for T47811: Blender 2.8x / Python, Proposed Changes.
Thu, Aug 30, 9:09 AM · BF Blender: 2.8, Python

Wed, Aug 29

Andrew Hale (trumanblending) updated the task description for T47811: Blender 2.8x / Python, Proposed Changes.
Wed, Aug 29, 5:22 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) updated the task description for T56602: Python: Implement BMesh Pointer Args for BMesh Operators.
Wed, Aug 29, 3:00 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) triaged T56602: Python: Implement BMesh Pointer Args for BMesh Operators as Normal priority.
Wed, Aug 29, 2:57 PM · BF Blender: 2.8, Python

Tue, Aug 28

Campbell Barton (campbellbarton) updated the task description for T47811: Blender 2.8x / Python, Proposed Changes.
Tue, Aug 28, 5:49 AM · BF Blender: 2.8, Python

Mon, Aug 27

Brecht Van Lommel (brecht) closed T56572: view2d.view_to_region() returns wrong value as Archived.

Pass clip=False to avoid this clipping:
https://docs.blender.org/api/blender_python_api_master/bpy.types.View2D.html#bpy.types.View2D.view_to_region

Mon, Aug 27, 6:00 PM · OpenGL / Gfx, Python, BF Blender
Andrew Hale (trumanblending) closed T56496: Python: BMesh Operator Enums as Resolved.
Mon, Aug 27, 5:10 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) closed T56496: Python: BMesh Operator Enums, a subtask of T47811: Blender 2.8x / Python, Proposed Changes, as Resolved.
Mon, Aug 27, 5:10 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) added a comment to T56496: Python: BMesh Operator Enums.

Closed by 1e6a5eb08791, refer to D3635 for details.

Mon, Aug 27, 5:10 PM · BF Blender: 2.8, Python