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

Thu, Oct 4

Philipp Oeser (lichtwerk) updated subscribers of T56953: Many (or all) links in Blender to addon documentation are broken.
Thu, Oct 4, 10:43 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Philipp Oeser (lichtwerk) updated subscribers of T56953: Many (or all) links in Blender to addon documentation are broken.

There was also T48096 and T54097, but to be honest: I am unaware of any 'final' decision on this...
Will also talk to @Campbell Barton (campbellbarton) again...

Thu, Oct 4, 10:42 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Guy Capra (alomphega) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

Please also leave me out of this and future conversation. Thanks.

Thu, Oct 4, 9:33 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Dan McGrath (dmcgrath) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

Sounds like your mess. Please leave me out of this and future conversation. Thanks

Thu, Oct 4, 7:48 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Aaron Carlisle (Blendify) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

I imported all the release notes I think we agreed that we would not migrate addon docs as for 2.8 we wont have them on the wiki anyway.

Thu, Oct 4, 3:56 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Dan McGrath (dmcgrath) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

Sounds like the old pages need to be migrated, and possibly some redirects added, exactly like you just said above. IIRC, we've discussed this several times already? I assume you've finished migrating the old wiki? I could have sworn that's why I gave you the import/export access a month or two ago.

Thu, Oct 4, 1:48 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons

Wed, Oct 3

Aaron Carlisle (Blendify) updated subscribers of T56953: Many (or all) links in Blender to addon documentation are broken.

@Dan McGrath (dmcgrath) Can you insight some wisdom here?

Wed, Oct 3, 6:13 PM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Guy Capra (alomphega) added a comment to T56953: Many (or all) links in Blender to addon documentation are broken.

Thank for the subscription here and my apologize to not have been able to find this bug was already reported there before posting my version.

Wed, Oct 3, 4:33 PM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Aaron Carlisle (Blendify) merged T57039: Add-ons documentation systematically sends to empty page - lack of documentation for add-ons into T56953: Many (or all) links in Blender to addon documentation are broken.
Wed, Oct 3, 3:09 PM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons

Sun, Sep 30

Bastien Montagne (mont29) closed T56981: python .scene_raycast returned object is not selectable as Resolved by committing rB3cd98d9ef7e6: Fix T56981: python .scene_raycast returned object is not selectable..
Sun, Sep 30, 11:56 PM · Python, BF Blender: 2.8
Bastien Montagne (mont29) reopened T56981: python .scene_raycast returned object is not selectable as "Open".

Eeek, yes indeed, actually it returns evaluated version of the object (COW, you know…), not the 'real' data from bpy.data… will fix.

Sun, Sep 30, 11:52 PM · Python, BF Blender: 2.8
stephen leger (stephen_leger) added a comment to T56981: python .scene_raycast returned object is not selectable.

Checked again with factory startup file.

Sun, Sep 30, 11:07 PM · Python, BF Blender: 2.8
Bastien Montagne (mont29) closed T56981: python .scene_raycast returned object is not selectable as Invalid.

No bug here, error message is self-explanatory really. Just how new 2.8 system works.

Sun, Sep 30, 9:48 PM · Python, BF Blender: 2.8
Bastien Montagne (mont29) closed T56952: Code to apply loc, rot scale to object with instances, and to set origin to objects with instances. Someone want to convert it to C+ ? as Archived.

Please create a differential, it’s correct way to submit patches now. :)

Sun, Sep 30, 6:50 PM · Python, Addons
stephen leger (stephen_leger) created T56981: python .scene_raycast returned object is not selectable.
Sun, Sep 30, 1:59 PM · Python, BF Blender: 2.8

Sat, Sep 29

Aaron Carlisle (Blendify) closed T56953: Many (or all) links in Blender to addon documentation are broken as Archived.

This is a known issue ever since we moved to the new wiki, and not really anything we can do except just saying that "It will be fixed in 2.8".
The documentation is still hosted temporally on https://en.blender.org/index.php/Extensions:2.6/Py/Scripts but this will be removed once we migrate the needed pages over to the new wiki.

Sat, Sep 29, 12:58 AM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons

Fri, Sep 28

Moon Caine (mooncaine) created T56953: Many (or all) links in Blender to addon documentation are broken.
Fri, Sep 28, 10:46 PM · Infrastructure: Blender Web Assets, Infrastructure: Websites, Documentation, Python, Addons
Jose Conseco (joseconseco) created T56952: Code to apply loc, rot scale to object with instances, and to set origin to objects with instances. Someone want to convert it to C+ ? .
Fri, Sep 28, 7:58 PM · Python, Addons

Sat, Sep 22

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

Fri, Sep 21

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

Sep 12 2018

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)..
Sep 12 2018, 6:32 PM · Python, Sculpting and Painting, BF Blender
Bastien Montagne (mont29) claimed T56662: Autocomplete for texture slot Crash (in console).
Sep 12 2018, 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..
Sep 12 2018, 11:52 AM · Python, BF Blender: 2.8
Bastien Montagne (mont29) claimed T56766: Bake Action Visual Keying Not Working.
Sep 12 2018, 10:48 AM · Python, BF Blender: 2.8

Sep 5 2018

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.

Sep 5 2018, 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.

Sep 5 2018, 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.

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

Sep 4 2018

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..
Sep 4 2018, 1:48 PM · Platform: Mac OS X, BF Blender, Quick Hacks, Python

Sep 3 2018

Andrew Hale (trumanblending) updated the task description for T56519: Python: Extra element-wise operations.
Sep 3 2018, 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).

Sep 3 2018, 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).
Sep 3 2018, 9:42 AM · Python, Sculpting and Painting, BF Blender