Page MenuHome

PythonProject
ActivePublic

Members

  • This project does not have any members.

Watchers (10)

Details

Description

Python API for scripting and console editor.

Module Owner: @Campbell Barton (campbellbarton)

Recent Activity

Yesterday

Germano Cavalcante (mano-wii) added a comment to T67295: Blender is unable to generate a complete error message when there is bad indentation in python code.

It seems that this can even result in crash.

Mon, Jul 22, 2:18 PM · Python, BF Blender

Sat, Jul 20

Ulysse Martin (youle) updated subscribers of T67295: Blender is unable to generate a complete error message when there is bad indentation in python code.

I don't know if bpy_traceback.c changed, or if python was updated since 2.79b.

Sat, Jul 20, 12:09 PM · Python, BF Blender
Magvasi Lajos (Insula) added a comment to T66527: bpy.ops.transform.rotate works incorrect if not set "orient_matrix" value.

Also If you set the orientation type to VIEW and dont set the orient_matrix, it will use the global orientation.

Sat, Jul 20, 11:55 AM · Python, BF Blender
nBurn (nBurn) updated the task description for T67295: Blender is unable to generate a complete error message when there is bad indentation in python code.
Sat, Jul 20, 8:37 AM · Python, BF Blender
nBurn (nBurn) renamed T67295: Blender is unable to generate a complete error message when there is bad indentation in python code from bpy is not including line number when there is bad indentation to bpy is not including a line number when there is bad indentation.
Sat, Jul 20, 8:12 AM · Python, BF Blender
nBurn (nBurn) added a project to T67295: Blender is unable to generate a complete error message when there is bad indentation in python code: Python.
Sat, Jul 20, 8:11 AM · Python, BF Blender

Wed, Jul 17

Campbell Barton (campbellbarton) added a comment to T65909: Python API calling: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo..

Fixed by rB366865dd020904116086e6d9ec46b8f70c42cdd1

Wed, Jul 17, 1:24 PM · Python, BF Blender
Jasper van Nieuwenhuizen (jasperge) added a comment to T63651: `ImagePreviewCollection.load` and `ImagePreviewCollection.new` don't behave as described in the Python API docs.

Before the final release I think this should be fixed. I noticed this bug is still in the release candidate.

Wed, Jul 17, 9:43 AM · Python, BF Blender
Dalai Felinto (dfelinto) added a comment to T66725: Object not in View Layer error when trying to select a new object in a new scene from a panel..

Thanks for the report, but you are creating a new scene in your script, you need to pass the new view_layer to the select_set function:
testob.select_set(True, view_layer=scene.view_layers[0])

Wed, Jul 17, 1:23 AM · Python, BF Blender

Tue, Jul 16

Philipp Oeser (lichtwerk) added a comment to D5264: Fix object name typo in background_job template.

oh, @Campbell Barton (campbellbarton) was quicker :)

Tue, Jul 16, 9:03 AM · Python
Philipp Oeser (lichtwerk) added a comment to D5264: Fix object name typo in background_job template.

Thx for finding this @Loïc Carr (dimtion), since this is such a small and safe change, I guess it is fine if I commit this...

Tue, Jul 16, 9:02 AM · Python
Campbell Barton (campbellbarton) closed D5264: Fix object name typo in background_job template.
Tue, Jul 16, 8:59 AM · Python
D5264: Fix object name typo in background_job template is now accepted and ready to land.

Thanks, committed rB1fa61c88437aab557e38f9cb4ef12a3eab3b592e

Tue, Jul 16, 8:59 AM · Python
Loïc Carr (dimtion) updated the summary of D5264: Fix object name typo in background_job template.
Tue, Jul 16, 8:26 AM · Python
Loïc Carr (dimtion) created D5264: Fix object name typo in background_job template.
Tue, Jul 16, 8:23 AM · Python

Fri, Jul 12

Sebastian Parborg (zeddb) assigned T66725: Object not in View Layer error when trying to select a new object in a new scene from a panel. to Campbell Barton (campbellbarton).
Fri, Jul 12, 12:44 PM · Python, BF Blender
hudson barkley (snuq) added a project to T66725: Object not in View Layer error when trying to select a new object in a new scene from a panel.: Python.
Fri, Jul 12, 3:05 AM · Python, BF Blender

Thu, Jul 11

Campbell Barton (campbellbarton) added a comment to T65909: Python API calling: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo..

Note that D5222 will make this a simpler fix.

Thu, Jul 11, 10:54 AM · Python, BF Blender

Mon, Jul 8

Philipp Oeser (lichtwerk) added a project to T66527: bpy.ops.transform.rotate works incorrect if not set "orient_matrix" value: Python.

@Campbell Barton (campbellbarton) : just guessing: not sure why we are inverting spacemtx in initTransformOrientation here (if skipped for for the non-modal case, issue seems to be gone...)?

Mon, Jul 8, 1:43 PM · Python, BF Blender

Fri, Jul 5

Peter Fog (tintwotin) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

@Campbell Barton (campbellbarton) There is actually an old patch which I think may solve the API issues you mention: D1613

Fri, Jul 5, 7:00 PM · BF Blender, Python, Text Editor

Wed, Jul 3

Samuel Bernou (Pullup) added a comment to T66317: Text editor API needs a 'select_end_line_index' attribute to expose selection to the user..

Nice !
I didn't thought to compare line object itself against select_end_line.
Someone also gave me this solution on BA thread "Get / set character and line coordinate of the selection in the text editor".
Thanks for the digging.

Wed, Jul 3, 10:38 AM · Python, Text Editor
Dalai Felinto (dfelinto) added a comment to T66317: Text editor API needs a 'select_end_line_index' attribute to expose selection to the user..

I have an old addon (which is outdated) that was handling text selection with no problems:
https://developer.blender.org/diffusion/BAC/browse/master/text_editor_hastebin.py

Wed, Jul 3, 1:13 AM · Python, Text Editor

Mon, Jul 1

Samuel Bernou (Pullup) updated the task description for T66317: Text editor API needs a 'select_end_line_index' attribute to expose selection to the user..
Mon, Jul 1, 10:56 PM · Python, Text Editor
Samuel Bernou (Pullup) created T66317: Text editor API needs a 'select_end_line_index' attribute to expose selection to the user..
Mon, Jul 1, 10:51 PM · Python, Text Editor
Campbell Barton (campbellbarton) renamed T65909: Python API calling: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo. from API: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo. to Python API calling: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo..
Mon, Jul 1, 4:15 AM · Python, BF Blender

Sat, Jun 29

Aaron Carlisle (Blendify) closed T28232: Links between BGE Logic Bricks as Archived.
Sat, Jun 29, 2:46 AM · BF Blender, Python
Aaron Carlisle (Blendify) added a comment to T48099: Adress boundary error given bad input.

This task is being closed because the BGE has been removed in Blender 2.8.

Sat, Jun 29, 2:18 AM · Python, Game Python, Game Engine
Campbell Barton (campbellbarton) lowered the priority of T65909: Python API calling: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo. from Confirmed, Medium to Confirmed, Low.
Sat, Jun 29, 12:49 AM · Python, BF Blender

Fri, Jun 28

Sebastian Parborg (zeddb) added a comment to T66172: Text Editor Undo bugs.

I suspect that the reason for it failing is the same as in the initial report. If this is still an issue after that one is fixed, we can reopen this.

Fri, Jun 28, 4:56 PM · Python, Text Editor, BF Blender
Sebastian Parborg (zeddb) merged T66172: Text Editor Undo bugs into T65909: Python API calling: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo..
Fri, Jun 28, 4:56 PM · Python, BF Blender
Sebastian Parborg (zeddb) merged task T66172: Text Editor Undo bugs into T65909: Python API calling: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo..
Fri, Jun 28, 4:56 PM · Python, Text Editor, BF Blender

Thu, Jun 27

Peter Fog (tintwotin) updated the task description for T66172: Text Editor Undo bugs.
Thu, Jun 27, 11:46 AM · Python, Text Editor, BF Blender
Peter Fog (tintwotin) added projects to T66172: Text Editor Undo bugs: Text Editor, Python.
Thu, Jun 27, 11:45 AM · Python, Text Editor, BF Blender

Tue, Jun 25

Peter Fog (tintwotin) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

@Campbell Barton (campbellbarton) For some TE API suggestions Kaio/Iceythe writes:

Tue, Jun 25, 9:52 PM · BF Blender, Python, Text Editor

Mon, Jun 24

nBurn (nBurn) added a comment to D5119: Possible fix for T65824.

This would re-introduce the issue from T60777.
For this to work we'll need to add a new flag to detect 'Repeat Last', since this is a special case, unlike adjusting-the-last-operator repeat, the context may be different each time and we can't rely on property SKIP_SAVE not to store values for re-use.

Mon, Jun 24, 11:14 PM · Python, Mesh Modeling
Peter Fog (tintwotin) updated subscribers of D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .
Mon, Jun 24, 8:30 PM · BF Blender, Python, Text Editor
Peter Fog (tintwotin) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

So the first step is to locate bugs and shortcomings of the TE API?

Mon, Jun 24, 5:28 PM · BF Blender, Python, Text Editor
Campbell Barton (campbellbarton) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

If my memory serves me correct, working directly on the selection was not reliable, which made me use the clipboard instead.

Mon, Jun 24, 3:06 PM · BF Blender, Python, Text Editor
Peter Fog (tintwotin) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

If my memory serves me correct, working directly on the selection was not reliable, which made me use the clipboard instead.

Mon, Jun 24, 2:58 PM · BF Blender, Python, Text Editor
D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor now requires changes to proceed.

Using the clipboard for text tools is a hack which could interfear with the users workflow (they could have some rich text in the clipboard - unrelated to using Blender, which gets overwritten by using this tool).

Mon, Jun 24, 2:28 PM · BF Blender, Python, Text Editor
Campbell Barton (campbellbarton) added a comment to D5119: Possible fix for T65824.

Committed alternate fix rB1c94030238bb37918c4cd3256e0acb0b7099579d

Mon, Jun 24, 1:45 PM · Python, Mesh Modeling
Campbell Barton (campbellbarton) closed T65824: The span keyword in mesh.fill_grid is not working in 2.80 as Resolved by committing rB1c94030238bb: Fix T65824: Span property ignored in mesh.fill_grid.
Mon, Jun 24, 1:44 PM · Python, BF Blender
Campbell Barton (campbellbarton) added a comment to D5119: Possible fix for T65824.

This would re-introduce the issue from T60777.

Mon, Jun 24, 1:37 PM · Python, Mesh Modeling
Peter Fog (tintwotin) updated subscribers of D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .
Mon, Jun 24, 7:29 AM · BF Blender, Python, Text Editor

Jun 23 2019

William Reynish (billreynish) added a comment to D5125: New context menus added to the sidebar and menu updates in the Text Editor.

Closing this, since it's just an update to D5028. Best to keep these changes together in the same differential revision.

Jun 23 2019, 12:52 AM · Python, Text Editor

Jun 22 2019

D5125: New context menus added to the sidebar and menu updates in the Text Editor is now accepted and ready to land.
Jun 22 2019, 11:52 PM · Python, Text Editor
Peter Fog (tintwotin) updated the summary of D5125: New context menus added to the sidebar and menu updates in the Text Editor.
Jun 22 2019, 11:32 PM · Python, Text Editor
Peter Fog (tintwotin) created D5125: New context menus added to the sidebar and menu updates in the Text Editor.
Jun 22 2019, 11:28 PM · Python, Text Editor
nBurn (nBurn) updated the summary of D5119: Possible fix for T65824.
Jun 22 2019, 9:31 AM · Python, Mesh Modeling
nBurn (nBurn) updated the summary of D5119: Possible fix for T65824.
Jun 22 2019, 9:22 AM · Python, Mesh Modeling