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

Fri, Aug 17

Bastien Montagne (mont29) closed T56435: EnumProperty displays wrong labels when using expand=True as Invalid.

We do not handle user support on this tracker, only bug reports. User forums like blenderartists.org or blender.stackexchange.com should be used for that matter.

Fri, Aug 17, 5:38 PM · Python, BF Blender
Marianne Zijderveld (Marianne) created T56435: EnumProperty displays wrong labels when using expand=True.
Fri, Aug 17, 12:33 PM · Python, BF Blender

Mon, Aug 13

Campbell Barton (campbellbarton) updated the task description for T47811: Blender 2.8x / Python, Proposed Changes.
Mon, Aug 13, 4:55 AM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) abandoned D1743: Implement vec/vec element wise division.

This will be enabled in 2.8, see rBaa5a96430ea0741fac39b87fe17fb0faddadd3cf

Mon, Aug 13, 3:44 AM · Python, BF Blender

Sat, Aug 11

Andrew Hale (trumanblending) triaged T56318: Python: Cleanup incorrect usage of median as Normal priority.
Sat, Aug 11, 6:04 PM · BF Blender: 2.8, Python

Fri, Aug 10

Vuk Gardašević (lijenstina) updated the summary of D3593: Pep8: Line break before the binary operator as default.
Fri, Aug 10, 7:30 PM · Python, BF Blender: 2.8
Andrew Hale (trumanblending) closed T56276: Python: Add support for @ infix operator matrix multiplication as Resolved.

Implemented in rBaa5a96430ea0

Fri, Aug 10, 3:29 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) closed T56276: Python: Add support for @ infix operator matrix multiplication, a subtask of T47811: Blender 2.8x / Python, Proposed Changes, as Resolved.
Fri, Aug 10, 3:29 PM · BF Blender: 2.8, Python
Vuk Gardašević (lijenstina) updated the summary of D3593: Pep8: Line break before the binary operator as default.
Fri, Aug 10, 2:32 PM · Python, BF Blender: 2.8
Vuk Gardašević (lijenstina) created D3593: Pep8: Line break before the binary operator as default.
Fri, Aug 10, 2:30 PM · Python, BF Blender: 2.8
Inês Almeida (brita_) added a comment to T56276: Python: Add support for @ infix operator matrix multiplication.

If at least vector * vector doesn't do a dot product, I'm happy ^^
I wasn't aware of the @ possibility and I am also not familiar with numpy, but it definitely sounds like a good idea to follow a similar convention :)

Fri, Aug 10, 12:48 PM · BF Blender: 2.8, Python

Thu, Aug 9

Andrew Hale (trumanblending) triaged T56281: Python: Cleanup Noise Module as Normal priority.
Thu, Aug 9, 2:31 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) added a comment to T56276: Python: Add support for @ infix operator matrix multiplication.

As per review comments on D3587, I've also implemented:

  • matrix @= matrix
  • matrix *= matrix/float
  • quat @= quat
  • quat *= quat/float
Thu, Aug 9, 12:55 PM · BF Blender: 2.8, Python
Bastien Montagne (mont29) closed T56115: render man and many addons show traceback error as Invalid.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

Thu, Aug 9, 11:07 AM · Python, Platform: Windows, BF Blender
Campbell Barton (campbellbarton) added a comment to T56276: Python: Add support for @ infix operator matrix multiplication.

@Inês Almeida (brita_) / @Andrew Hale (trumanblending), what about following numpy conventions for cases which are disputable?

Thu, Aug 9, 9:46 AM · BF Blender: 2.8, Python
Inês Almeida (brita_) added a comment to T56276: Python: Add support for @ infix operator matrix multiplication.

I suggest to leave this one out, since Blender uses column vector convention. Having it, could confuse people as to the order of multiplication of the matrices.
Vector @ Matrix (vector interpreted as row vector)

Thu, Aug 9, 8:35 AM · BF Blender: 2.8, Python

Wed, Aug 8

Bastien Montagne (mont29) reassigned T56276: Python: Add support for @ infix operator matrix multiplication from Bastien Montagne (mont29) to Campbell Barton (campbellbarton).

Not sure why that’s assigned to me… Guess @Campbell Barton (campbellbarton) will want to check on that?

Wed, Aug 8, 8:21 PM · BF Blender: 2.8, Python
Andrew Hale (trumanblending) triaged T56276: Python: Add support for @ infix operator matrix multiplication as Normal priority.
Wed, Aug 8, 5:00 PM · BF Blender: 2.8, Python

Mon, Aug 6

Campbell Barton (campbellbarton) closed T55374: Blender crashes when they use vector.project function as Resolved.

Fixed rBfe8d8aa27e26f1f8e4d5e1e3fcb6fc6288ebf226

Mon, Aug 6, 4:21 AM · Python, BF Blender

Mon, Jul 30

Bastien Montagne (mont29) triaged T56115: render man and many addons show traceback error as Incomplete priority.

Your blender installation is corrupted somehow, please:

  • Give us your exact Blender, OS and GPU (including drivers) versions, as requested in the template!
  • Ensure both your OS and drivers are fully up-to-date (and use official GPU drivers, not those provided by windows or tablet/laptop maker or open source ones in linux distributions).
  • For Windows 7, at least service pack 1 is mandatory, please ensure it is installed on your machine.
  • Try to disable any running antivirus.
  • Ensure you have no python executable available in your %path% envvar.
  • 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).
Mon, Jul 30, 10:21 AM · Python, Platform: Windows, BF Blender

Fri, Jul 27

Brecht Van Lommel (brecht) added a comment to T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h.

It was actually a Cycles issue due to rBf8b9f4e9bbc1: Cycles: Resumable render implementation for Cycles.

Fri, Jul 27, 11:41 AM · Platform: Mac OS X, BF Blender, Quick Hacks, Python
Brecht Van Lommel (brecht) closed T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h as Resolved by committing rB9a080d2ea606: Fix T56092: command line arguments after -- beginning with -h don't work..
Fri, Jul 27, 11:41 AM · Platform: Mac OS X, BF Blender, Quick Hacks, Python
Arto Kitula (akitula) raised the priority of T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h from Normal to Confirmed.

Confirmed.

Fri, Jul 27, 10:19 AM · Platform: Mac OS X, BF Blender, Quick Hacks, Python
Bastien Montagne (mont29) assigned T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h to Brecht Van Lommel (brecht).

@Brecht Van Lommel (brecht), @Arto Kitula (akitula) , mind checking that one? Thanks.

Fri, Jul 27, 10:13 AM · Platform: Mac OS X, BF Blender, Quick Hacks, Python
Campbell Barton (campbellbarton) closed T55991: When switching scenes using "-S" argument in command line, scripts called by "--python-text" do not get correct scene context as Resolved by committing rB3e2dfc6db8e0: Fix T55991: Python ignores scene switch argument.
Fri, Jul 27, 8:57 AM · Python, BF Blender
Campbell Barton (campbellbarton) added a comment to T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h.

Can't redo this in Linux, looks like an OSX only issue?

Fri, Jul 27, 7:21 AM · Platform: Mac OS X, BF Blender, Quick Hacks, Python
Campbell Barton (campbellbarton) renamed T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h from Command line switch -- disables ability to use python arguments beginning with -h to OSX: Command line switch -- disables ability to use python arguments beginning with -h.
Fri, Jul 27, 7:20 AM · Platform: Mac OS X, BF Blender, Quick Hacks, Python
Campbell Barton (campbellbarton) edited projects for T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h, added: BF Blender, Platform: Mac OS X; removed Addons.
Fri, Jul 27, 7:20 AM · Platform: Mac OS X, BF Blender, Quick Hacks, Python

Thu, Jul 26

Bastien Montagne (mont29) claimed T56078: Saving images with python causes Blender to hang.

Will check yes.

Thu, Jul 26, 5:49 PM · Python, BF Blender

Wed, Jul 25

Bastien Montagne (mont29) closed T55964: Direction not normalized in isect_ray_aabb_v3_simple()? as Resolved by committing rB29d1db9ed625: Fix T55964: Direction not normalized in isect_ray_aabb_v3_simple()?.
Wed, Jul 25, 9:09 PM · Python, BF Blender
Bastien Montagne (mont29) claimed T55964: Direction not normalized in isect_ray_aabb_v3_simple()?.

Checking code of said isect_ray_aabb_v3_simple makes it obvious it does not care whether direction is normalized or not, for its 'match or not match' main result.

Wed, Jul 25, 5:41 PM · Python, BF Blender

Tue, Jul 24

Jon Hammer (jhammer) created T56092: OSX: Command line switch -- disables ability to use python arguments beginning with -h.
Tue, Jul 24, 7:01 PM · Platform: Mac OS X, BF Blender, Quick Hacks, Python
Bastien Montagne (mont29) closed T55807: Python - in an operator, setting scene frame after undo causes playback cursor to get 'stuck' as Resolved.

Fwiw, on 2.8 it seems to work OK, so will consider that issue as fixed. Thanks for the report!

Tue, Jul 24, 4:21 PM · Python, BF Blender
Bastien Montagne (mont29) assigned T55778: Cannot link object via bpy.context.collection.objects.link() after manual Delete operator invocation (*) to Brecht Van Lommel (brecht).

@Brecht Van Lommel (brecht) maybe you want to check on that one? Thanks.

Tue, Jul 24, 3:32 PM · Python, BF Blender: 2.8
Jeducious (jameshcrowther) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

YES PLEASE FOR A NEW CALLBACK! I'll add some further context to my desire to upvote this proposal. I am currently in the category of having to use 'loop kicking' (interesting term for it, but its what we have to do). We need to be able to run an event loop to capture msgs to our distributed rendering platform for blender. Msgs come back to blender from other nodes, currently we've had to use a modal operator with a timer to implement async operations. I got excited about asyncio a while back, but realised that it needed to have the same modal operator to work. If there was an event that could be subscribed to that would avoid the need to have a modal operator running this would be excellent. Modal operators when used for look kicking have some pretty undesirable drawbacks;

Tue, Jul 24, 4:42 AM · BF Blender: 2.8, Python
Iemand Iets (NumesSanguis) added a comment to T47811: Blender 2.8x / Python, Proposed Changes.

Another argument for Python 3.7 is the expanded capabilities of the asyncio library.
"The asyncio module has received many new features, usability and performance improvements. Notable changes include:"
https://docs.python.org/3/whatsnew/3.7.html#whatsnew37-asyncio

Tue, Jul 24, 4:25 AM · BF Blender: 2.8, Python

Mon, Jul 23

Christopher Anderssarian (Christopher_Anderssarian) added a project to T56078: Saving images with python causes Blender to hang: Python.
Mon, Jul 23, 2:40 PM · Python, BF Blender

Sun, Jul 22

Bastien Montagne (mont29) assigned T55374: Blender crashes when they use vector.project function to Campbell Barton (campbellbarton).

@Campbell Barton (campbellbarton) should know that area of code well. ;)

Sun, Jul 22, 6:02 PM · Python, BF Blender

Jul 20 2018

andy van dalsem (pacermike) added a comment to T31340: bpy.data.objects.foreach_set("select", seq) does nothing.

I really think this should be looked at again.

Jul 20 2018, 9:23 AM · Python, BF Blender

Jul 19 2018

nBurn (nBurn) updated the task description for T55495: BMesh vert indexes are incorrect after using view selected.
Jul 19 2018, 11:31 PM · Addons, Python

Jul 18 2018

ruben (des) closed T56024: Blender crashing after installing gpu as Resolved.
Jul 18 2018, 10:22 AM · Python, BF Blender
ruben (des) updated the task description for T56024: Blender crashing after installing gpu.
Jul 18 2018, 10:15 AM · Python, BF Blender
ruben (des) created T56024: Blender crashing after installing gpu.
Jul 18 2018, 2:05 AM · Python, BF Blender

Jul 16 2018

Sam Brubaker (rocketman) added a comment to T55991: When switching scenes using "-S" argument in command line, scripts called by "--python-text" do not get correct scene context.

Thank you @Bastien Montagne (mont29) . I did discover a workaround which was to wrap the script in a function that is appended to the app handlers. Consider the following script:

Jul 16 2018, 7:09 PM · Python, BF Blender
Bastien Montagne (mont29) assigned T55991: When switching scenes using "-S" argument in command line, scripts called by "--python-text" do not get correct scene context to Campbell Barton (campbellbarton).

Took me some time to understand what is happening here… thing is, we do some backup/sanitizing of context before executing py scripts, and among other things, arg_py_context_backup calls CTX_wm_window_set, which sets again context's Scene from active windows' screen scene…

Jul 16 2018, 5:52 PM · Python, BF Blender
Philipp Oeser (lichtwerk) closed T55527: Quaternion() returning "Quaternion((0.0, 0.0, 0.0, 0.0))" Instead of Quaternion((1.0, 0.0, 0.0, 0.0)) as Resolved by committing rB96b4e43e8dcd: Fix T55527: creating a Quaternion without args should result in identity….
Jul 16 2018, 3:15 PM · Python, BF Blender
Sam Brubaker (rocketman) created T55991: When switching scenes using "-S" argument in command line, scripts called by "--python-text" do not get correct scene context.
Jul 16 2018, 7:40 AM · Python, BF Blender

Jul 13 2018

codemanx created T55964: Direction not normalized in isect_ray_aabb_v3_simple()?.
Jul 13 2018, 3:08 PM · Python, BF Blender

Jul 12 2018

Campbell Barton (campbellbarton) updated the task description for T47811: Blender 2.8x / Python, Proposed Changes.
Jul 12 2018, 8:37 AM · BF Blender: 2.8, Python
Campbell Barton (campbellbarton) updated the task description for T47811: Blender 2.8x / Python, Proposed Changes.
Jul 12 2018, 8:37 AM · BF Blender: 2.8, Python